mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 00:45:28 +02:00
Fix to not display the "converToId" project types in the NPW
This commit is contained in:
parent
21c0055276
commit
1ddccb2b11
5 changed files with 12 additions and 2 deletions
|
@ -195,4 +195,6 @@ public interface IProjectType extends IBuildObject, IBuildObjectPropertiesContai
|
|||
public String getNameAttribute();
|
||||
|
||||
public IBuildPropertyValue getBuildArtefactType();
|
||||
|
||||
boolean isSystemObject();
|
||||
}
|
||||
|
|
|
@ -2490,7 +2490,7 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
|||
return true;
|
||||
|
||||
if(getProjectType() != null)
|
||||
return getProjectType().isTestProjectType();
|
||||
return getProjectType().isSystemObject();
|
||||
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -782,4 +782,8 @@ public class ProjectType extends BuildObject implements IProjectType, IBuildProp
|
|||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public boolean isSystemObject() {
|
||||
return isTestProjectType() || getConvertToId().length() != 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -46,4 +46,8 @@ public class TestProjectType implements IProjectType {
|
|||
public IBuildPropertyValue getBuildArtefactType() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public boolean isSystemObject() {
|
||||
return isTestProjectType();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -67,7 +67,7 @@ public class ManagedBuildWizard extends AbstractCWizard {
|
|||
while(it.hasNext()) {
|
||||
String s = (String)it.next();
|
||||
IProjectType pt = (IProjectType)sm.get(s);
|
||||
if (pt.isAbstract() || pt.isTestProjectType()) continue;
|
||||
if (pt.isAbstract() || pt.isSystemObject()) continue;
|
||||
if (supportedOnly && !pt.isSupported()) continue; // not supported
|
||||
String nattr = pt.getNameAttribute();
|
||||
if (nattr == null || nattr.length() == 0) continue; // new proj style
|
||||
|
|
Loading…
Add table
Reference in a new issue