1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

All projects can be converted to C or C++ and all C++ projects can be converted back to C

This commit is contained in:
Judy N. Green 2002-11-13 21:17:55 +00:00
parent db8f9c2d4c
commit 60a60db5dd

View file

@ -58,20 +58,12 @@ public class ConvertToStdMakeProjectWizardPage extends ConvertProjectWizardPage
} }
/** /**
* Method isCandidate returns projects that have * Method isCandidate returns true for all projects.
* no "C" or "C++" Nature, but are Projects in the Eclipse sense.
* *
* @param project * @param project
* @return boolean * @return boolean
*/ */
public boolean isCandidate(IProject project) { public boolean isCandidate(IProject project) {
boolean noCNature = false; return true; // all
try {
noCNature = !project.hasNature(CProjectNature.C_NATURE_ID)
|| !project.hasNature(CCProjectNature.CC_NATURE_ID);
} catch (CoreException e) {
noCNature = true;
}
return noCNature;
} }
} }