mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-29 20:05:35 +02:00
Fix for [Bug 180133] DBCS3.3: Convert C/C++ project wizard won't be launched
This commit is contained in:
parent
df98c2f9cf
commit
53773e5ade
2 changed files with 10 additions and 0 deletions
|
@ -17,3 +17,4 @@ ProjectConverter.5=the specified project can not be converted
|
||||||
ProjectConverter.6=the project conversion failed
|
ProjectConverter.6=the project conversion failed
|
||||||
ProjectConverter.7=targets conversion
|
ProjectConverter.7=targets conversion
|
||||||
ProjectConverter.8=the project conversion failed due to unknown reason
|
ProjectConverter.8=the project conversion failed due to unknown reason
|
||||||
|
ProjectConverter.9=the given project is not a valid CDT project
|
||||||
|
|
|
@ -390,6 +390,15 @@ public class ProjectConverter implements ICProjectConverter {
|
||||||
// }
|
// }
|
||||||
|
|
||||||
ICProjectDescription des = CCorePlugin.getDefault().getProjectDescription(project, false);
|
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();
|
ICConfigurationDescription cfgs[] = des.getConfigurations();
|
||||||
if(cfgs.length != 1){
|
if(cfgs.length != 1){
|
||||||
if(throwExceptions)
|
if(throwExceptions)
|
||||||
|
|
Loading…
Add table
Reference in a new issue