1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

2004-08-21 Alain Magloire

Hardcode The CEditor id and the ASM id for the
	CView openEditor.

	* src/org/eclipse/cdt/internal/ui/util/EditorUtility.java
	* plugin.xml
This commit is contained in:
Alain Magloire 2004-08-23 00:20:58 +00:00
parent 76418574f4
commit bca745ef20
3 changed files with 17 additions and 5 deletions

View file

@ -1,3 +1,11 @@
2004-08-21 Alain Magloire
Hardcode The CEditor id and the ASM id for the
CView openEditor.
* src/org/eclipse/cdt/internal/ui/util/EditorUtility.java
* plugin.xml
2004-08-21 Alain Magloire
Fix for 69756

View file

@ -363,7 +363,7 @@
<editor
default="true"
name="%CEditor.name"
extensions="c, cc, cpp, cxx, h, hh, hpp"
extensions="c,C,cc,cpp,cxx,h,hh,hpp"
icon="icons/full/obj16/c_file_obj.gif"
class="org.eclipse.cdt.internal.ui.editor.CEditor"
contributorClass="org.eclipse.cdt.internal.ui.editor.CEditorActionContributor"
@ -372,7 +372,7 @@
</editor>
<editor
name="%AsmEditor.name"
extensions="s"
extensions="s,asm,S"
icon="icons/full/obj16/s_file_obj.gif"
class="org.eclipse.cdt.internal.ui.editor.asm.AsmTextEditor"
id="org.eclipse.cdt.ui.editor.asm.AsmEditor">

View file

@ -161,7 +161,7 @@ public class EditorUtility {
private static void closedProject(IProject project) {
MessageBox errorMsg = new MessageBox(CUIPlugin.getActiveWorkbenchShell(), SWT.ICON_ERROR | SWT.OK);
errorMsg.setText(CUIPlugin.getResourceString("EditorUtility.closedproject")); //$NON-NLS-1$
String desc= CUIPlugin.getResourceString("Editorutility.closedproject.description");
String desc= CUIPlugin.getResourceString("Editorutility.closedproject.description"); //$NON-NLS-1$
errorMsg.setMessage (MessageFormat.format(desc, new Object[]{project.getName()})); //$NON-NLS-1$
errorMsg.open();
@ -337,9 +337,13 @@ public class EditorUtility {
// Choose an a file base on the extension.
if (tunit != null) {
if (tunit.isCLanguage()) {
return getEditorID("No_ExIsTeNt_FiLe.c");//$NON-NLS-1$
return "org.eclipse.cdt.ui.editor.CEditor"; //$NON-NLS-1$
//return getEditorID("No_ExIsTeNt_FiLe.c");//$NON-NLS-1$
} else if (tunit.isCXXLanguage()) {
return getEditorID("No_ExIsTeNt_FiLe.cpp");//$NON-NLS-1$
return "org.eclipse.cdt.ui.editor.CEditor"; //$NON-NLS-1$
//return getEditorID("No_ExIsTeNt_FiLe.cpp");//$NON-NLS-1$
} else if (tunit.isASMLanguage()) {
return "org.eclipse.cdt.ui.editor.asm.AsmEditor"; //$NON-NLS-1$
}
}