1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-08 17:45:24 +02:00
David Inglis 2003-11-14 17:56:29 +00:00
parent 4fa34d40f6
commit 5e41c259a0
2 changed files with 12 additions and 2 deletions

View file

@ -1,3 +1,6 @@
2003-11-14 David Inglis
Fixed bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=46685
2003-11-13 Sean Evoy 2003-11-13 Sean Evoy
There is a duplicate set of string resources in the standard and managed make There is a duplicate set of string resources in the standard and managed make
UI plugins, so there is little need to keep these resources in the common UI UI plugins, so there is little need to keep these resources in the common UI

View file

@ -146,7 +146,10 @@ public class BinaryParserBlock extends AbstractBinaryParserPage {
ICDescriptor desc = CCorePlugin.getDefault().getCProjectDescription(getContainer().getProject()); ICDescriptor desc = CCorePlugin.getDefault().getCProjectDescription(getContainer().getProject());
ICExtensionReference[] ref = desc.get(CCorePlugin.BINARY_PARSER_UNIQ_ID); ICExtensionReference[] ref = desc.get(CCorePlugin.BINARY_PARSER_UNIQ_ID);
if (ref.length > 0) { if (ref.length > 0) {
initial = point.getExtension(ref[0].getID()).getLabel(); IExtension ext = point.getExtension(ref[0].getID());
if (ext != null) {
initial = ext.getLabel();
}
} }
} catch (CoreException e) { } catch (CoreException e) {
@ -157,7 +160,11 @@ public class BinaryParserBlock extends AbstractBinaryParserPage {
if (id == null || id.length() == 0) { if (id == null || id.length() == 0) {
initial = point.getExtension(CCorePlugin.DEFAULT_BINARY_PARSER_UNIQ_ID).getLabel(); initial = point.getExtension(CCorePlugin.DEFAULT_BINARY_PARSER_UNIQ_ID).getLabel();
} else { } else {
initial = point.getExtension(id).getLabel(); IExtension ext = point.getExtension(id);
if (ext != null) {
initial = ext.getLabel();
}
} }
} }