1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

The 'getDefaultEditor' method returns 'null' for file names that don't have an extension and are not registered with some editor. Use the default text editor in this case.

This commit is contained in:
Mikhail Khodjaiants 2003-01-15 18:17:33 +00:00
parent eb8766b158
commit 2cb1edc4a8
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2003-01-15 Mikhail Khodjaiants
The 'getDefaultEditor' method returns 'null' for file names that don't have an extension and
are not registered with some editor. Use the default text editor in this case.
* CDTDebugModelPresentation.java
2003-01-14 Mikhail Khodjaiants
Added the 'Add Address Breakpoint' action to the workbench 'Run' menu.
* AddAddressBreakpointActionDelegate.java

View file

@ -169,6 +169,7 @@ public class CDTDebugModelPresentation extends LabelProvider
IEditorDescriptor descriptor = registry.getDefaultEditor( input.getName() );
if ( descriptor != null )
return descriptor.getId();
return registry.getDefaultEditor().getId();
}
return null;
}