mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-27 02:45:32 +02:00
added nature id to CProject
add scannerinfo upon project configure
This commit is contained in:
parent
8e163f4d5e
commit
de5291751a
2 changed files with 6 additions and 0 deletions
|
@ -69,6 +69,7 @@
|
||||||
name="%makeproject.name"
|
name="%makeproject.name"
|
||||||
point="org.eclipse.cdt.core.CProject">
|
point="org.eclipse.cdt.core.CProject">
|
||||||
<cproject
|
<cproject
|
||||||
|
natureID="org.eclipse.cdt.make.core.makeNature"
|
||||||
class="org.eclipse.cdt.make.internal.core.MakeProject">
|
class="org.eclipse.cdt.make.internal.core.MakeProject">
|
||||||
</cproject>
|
</cproject>
|
||||||
</extension>
|
</extension>
|
||||||
|
|
|
@ -24,6 +24,11 @@ public class MakeProject implements ICOwner {
|
||||||
cproject.remove(CCorePlugin.BUILD_SCANNER_INFO_UNIQ_ID);
|
cproject.remove(CCorePlugin.BUILD_SCANNER_INFO_UNIQ_ID);
|
||||||
cproject.remove(CCorePlugin.BUILDER_MODEL_ID);
|
cproject.remove(CCorePlugin.BUILDER_MODEL_ID);
|
||||||
cproject.create(CCorePlugin.BUILD_SCANNER_INFO_UNIQ_ID, MakeScannerProvider.INTERFACE_IDENTITY);
|
cproject.create(CCorePlugin.BUILD_SCANNER_INFO_UNIQ_ID, MakeScannerProvider.INTERFACE_IDENTITY);
|
||||||
|
Preferences makePrefs = MakeCorePlugin.getDefault().getPluginPreferences();
|
||||||
|
String id = makePrefs.getString(CCorePlugin.PREF_BINARY_PARSER);
|
||||||
|
if (id != null && id.length() != 0) {
|
||||||
|
cproject.create(CCorePlugin.BINARY_PARSER_UNIQ_ID, id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void update(ICDescriptor cproject, String extensionID) throws CoreException {
|
public void update(ICDescriptor cproject, String extensionID) throws CoreException {
|
||||||
|
|
Loading…
Add table
Reference in a new issue