mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 00:45:28 +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"
|
||||
point="org.eclipse.cdt.core.CProject">
|
||||
<cproject
|
||||
natureID="org.eclipse.cdt.make.core.makeNature"
|
||||
class="org.eclipse.cdt.make.internal.core.MakeProject">
|
||||
</cproject>
|
||||
</extension>
|
||||
|
|
|
@ -24,6 +24,11 @@ public class MakeProject implements ICOwner {
|
|||
cproject.remove(CCorePlugin.BUILD_SCANNER_INFO_UNIQ_ID);
|
||||
cproject.remove(CCorePlugin.BUILDER_MODEL_ID);
|
||||
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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue