Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-patch] Use the C editor instead of the default editor for files without extensions

Index: ChangeLog
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.ui/ChangeLog,v
retrieving revision 1.77
diff -u -r1.77 ChangeLog
--- ChangeLog 17 Jan 2003 20:50:56 -0000 1.77
+++ ChangeLog 17 Jan 2003 21:45:40 -0000
@@ -1,4 +1,8 @@
 2003-01-17 Mikhail Khodjaiants
+ Use the C editor instead of the default editor for files without extensions.
+ * CDTDebugModelPresentation.java
+
+2003-01-17 Mikhail Khodjaiants
  Added the handlers for the 'Create' and 'Terminate' events to the 'Shared Libraries' view.
  * SharedLibrariesViewEventHandler.java
 
Index: src/org/eclipse/cdt/debug/internal/ui/CDTDebugModelPresentation.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDTDebugModelPresentation.java,v
retrieving revision 1.33
diff -u -r1.33 CDTDebugModelPresentation.java
--- src/org/eclipse/cdt/debug/internal/ui/CDTDebugModelPresentation.java 17 Jan 2003 19:31:40 -0000 1.33
+++ src/org/eclipse/cdt/debug/internal/ui/CDTDebugModelPresentation.java 17 Jan 2003 21:45:40 -0000
@@ -35,6 +35,7 @@
 import org.eclipse.cdt.debug.internal.ui.editors.DisassemblyEditorInput;
 import org.eclipse.cdt.debug.ui.CDebugUIPlugin;
 import org.eclipse.cdt.internal.ui.util.ExternalEditorInput;
+import org.eclipse.cdt.ui.CUIPlugin;
 import org.eclipse.core.resources.IFile;
 import org.eclipse.core.resources.IMarker;
 import org.eclipse.core.resources.IResource;
@@ -170,7 +171,7 @@
    IEditorDescriptor descriptor = registry.getDefaultEditor( input.getName() );
    if ( descriptor != null )
     return descriptor.getId();
-   return registry.getDefaultEditor().getId();
+   return CUIPlugin.EDITOR_ID;
   }
   return null;
  }

Back to the top