mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 17:35:35 +02:00
Use the C editor instead of the default editor for files without extensions.
This commit is contained in:
parent
38540e1407
commit
6cf0504156
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
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
|
||||
|
|
|
@ -35,6 +35,7 @@ import org.eclipse.cdt.debug.internal.core.sourcelookup.DisassemblyManager;
|
|||
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 @@ public class CDTDebugModelPresentation extends LabelProvider
|
|||
IEditorDescriptor descriptor = registry.getDefaultEditor( input.getName() );
|
||||
if ( descriptor != null )
|
||||
return descriptor.getId();
|
||||
return registry.getDefaultEditor().getId();
|
||||
return CUIPlugin.EDITOR_ID;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue