mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
This commit is contained in:
parent
71ace4a897
commit
51efd3ae86
2 changed files with 12 additions and 2 deletions
|
@ -1,3 +1,6 @@
|
|||
2003-11-14 David Inglis
|
||||
Fixed bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=46685
|
||||
|
||||
2003-11-11 Sean Evoy
|
||||
There is a duplicate set of these string resources in the standard make
|
||||
UI plugin, so there is little need to keep these resources in the common UI
|
||||
|
|
|
@ -151,7 +151,10 @@ public class BinaryParserBlock extends AbstractBinaryParserPage {
|
|||
ICDescriptor desc = CCorePlugin.getDefault().getCProjectDescription(getContainer().getProject());
|
||||
ICExtensionReference[] ref = desc.get(CCorePlugin.BINARY_PARSER_UNIQ_ID);
|
||||
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) {
|
||||
|
@ -162,7 +165,11 @@ public class BinaryParserBlock extends AbstractBinaryParserPage {
|
|||
if (id == null || id.length() == 0) {
|
||||
initial = point.getExtension(CCorePlugin.DEFAULT_BINARY_PARSER_UNIQ_ID).getLabel();
|
||||
} else {
|
||||
initial = point.getExtension(id).getLabel();
|
||||
IExtension ext = point.getExtension(id);
|
||||
if (ext != null) {
|
||||
initial = ext.getLabel();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue