1
0
Fork 0
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:
Mikhail Sennikovsky 2007-05-07 12:36:44 +00:00
parent 21c0055276
commit 1ddccb2b11
5 changed files with 12 additions and 2 deletions

View file

@ -195,4 +195,6 @@ public interface IProjectType extends IBuildObject, IBuildObjectPropertiesContai
public String getNameAttribute();
public IBuildPropertyValue getBuildArtefactType();
boolean isSystemObject();
}

View file

@ -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;
}

View file

@ -782,4 +782,8 @@ public class ProjectType extends BuildObject implements IProjectType, IBuildProp
}
return null;
}
public boolean isSystemObject() {
return isTestProjectType() || getConvertToId().length() != 0;
}
}

View file

@ -46,4 +46,8 @@ public class TestProjectType implements IProjectType {
public IBuildPropertyValue getBuildArtefactType() {
return null;
}
public boolean isSystemObject() {
return isTestProjectType();
}
}

View file

@ -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