Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnsgar Radermacher2015-09-22 09:27:35 +0000
committerAnsgar Radermacher2015-09-22 09:28:02 +0000
commit01a42bf3cdc388fdcec1487918f617f47eab5ccb (patch)
tree784a036e4fcf93f0b36deb7e8129e8f273195685 /extraplugins/codegen
parent7efcd94f70b9ca169d6a637fdb23f5cfd836eee7 (diff)
downloadorg.eclipse.papyrus-01a42bf3cdc388fdcec1487918f617f47eab5ccb.tar.gz
org.eclipse.papyrus-01a42bf3cdc388fdcec1487918f617f47eab5ccb.tar.xz
org.eclipse.papyrus-01a42bf3cdc388fdcec1487918f617f47eab5ccb.zip
478005 - [QDesigner] The first generation of code fails with an NPE
Diffstat (limited to 'extraplugins/codegen')
-rw-r--r--extraplugins/codegen/org.eclipse.papyrus.cpp.cdtproject/src/org/eclipse/papyrus/cpp/cdtproject/C_CppProjectSupport.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/extraplugins/codegen/org.eclipse.papyrus.cpp.cdtproject/src/org/eclipse/papyrus/cpp/cdtproject/C_CppProjectSupport.java b/extraplugins/codegen/org.eclipse.papyrus.cpp.cdtproject/src/org/eclipse/papyrus/cpp/cdtproject/C_CppProjectSupport.java
index e5bb131bdd8..f86106b7577 100644
--- a/extraplugins/codegen/org.eclipse.papyrus.cpp.cdtproject/src/org/eclipse/papyrus/cpp/cdtproject/C_CppProjectSupport.java
+++ b/extraplugins/codegen/org.eclipse.papyrus.cpp.cdtproject/src/org/eclipse/papyrus/cpp/cdtproject/C_CppProjectSupport.java
@@ -108,7 +108,7 @@ public class C_CppProjectSupport implements ILangProjectSupport {
ICProjectDescriptionManager mngr =
CoreModel.getDefault().getProjectDescriptionManager();
- ICProjectDescription cdesc = mngr.getProjectDescription(m_project, true);
+ ICProjectDescription cdesc = mngr.getProjectDescription(project, true);
// loop over all configurations
for (ICConfigurationDescription configDescr : cdesc.getConfigurations()) {
@@ -171,9 +171,9 @@ public class C_CppProjectSupport implements ILangProjectSupport {
main.setOption(cfTool, opt, settings.libPaths.toArray(new String[0]));
}
}
- mngr.setProjectDescription(m_project, cdesc, true, null);
+ mngr.setProjectDescription(project, cdesc, true, null);
}
- ManagedBuildManager.saveBuildInfo(m_project, true);
+ ManagedBuildManager.saveBuildInfo(project, true);
} catch (BuildException be) {
throw new RuntimeException(be.getMessage());
} catch (CoreException ce) {
@@ -222,6 +222,4 @@ public class C_CppProjectSupport implements ILangProjectSupport {
owner = owner.getOwner();
}
}
-
- static IProject m_project;
}

Back to the top