1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-29 03:45:35 +02:00

Fix for [Bug 180133] DBCS3.3: Convert C/C++ project wizard won't be launched

This commit is contained in:
Mikhail Sennikovsky 2007-03-30 08:06:28 +00:00
parent df98c2f9cf
commit 53773e5ade
2 changed files with 10 additions and 0 deletions

View file

@ -17,3 +17,4 @@ ProjectConverter.5=the specified project can not be converted
ProjectConverter.6=the project conversion failed
ProjectConverter.7=targets conversion
ProjectConverter.8=the project conversion failed due to unknown reason
ProjectConverter.9=the given project is not a valid CDT project

View file

@ -390,6 +390,15 @@ public class ProjectConverter implements ICProjectConverter {
// }
ICProjectDescription des = CCorePlugin.getDefault().getProjectDescription(project, false);
if(des == null){
if(throwExceptions)
throw new CoreException(new Status(IStatus.ERROR,
ManagedBuilderCorePlugin.getUniqueIdentifier(),
DataProviderMessages.getString("ProjectConverter.9"))); //$NON-NLS-1$
return false;
}
ICConfigurationDescription cfgs[] = des.getConfigurations();
if(cfgs.length != 1){
if(throwExceptions)