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:
parent
db8f9c2d4c
commit
60a60db5dd
1 changed files with 3 additions and 11 deletions
|
@ -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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue