Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlc/org.eclipse.cdt.managedbuilder.xlc.ui/src/org/eclipse/cdt/managedbuilder/xlc/ui/properties/XLCompilerPropertyPage.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlc/org.eclipse.cdt.managedbuilder.xlc.ui/src/org/eclipse/cdt/managedbuilder/xlc/ui/properties/XLCompilerPropertyPage.java b/xlc/org.eclipse.cdt.managedbuilder.xlc.ui/src/org/eclipse/cdt/managedbuilder/xlc/ui/properties/XLCompilerPropertyPage.java
index edf7538500c..a3e25a189e2 100644
--- a/xlc/org.eclipse.cdt.managedbuilder.xlc.ui/src/org/eclipse/cdt/managedbuilder/xlc/ui/properties/XLCompilerPropertyPage.java
+++ b/xlc/org.eclipse.cdt.managedbuilder.xlc.ui/src/org/eclipse/cdt/managedbuilder/xlc/ui/properties/XLCompilerPropertyPage.java
@@ -66,7 +66,7 @@ public class XLCompilerPropertyPage extends FieldEditorPreferencePage implements
addField(fPathEditor);
- IProject project = ((IResource) getElement()).getProject();
+ IProject project = ((IResource) (getElement().getAdapter(IResource.class))).getProject();
String currentPath = null;
@@ -152,7 +152,7 @@ public class XLCompilerPropertyPage extends FieldEditorPreferencePage implements
public boolean performOk() {
// store the value in the owner text field
try {
- IProject project = ((IResource) getElement()).getProject();
+ IProject project = ((IResource) (getElement().getAdapter(IResource.class))).getProject();
project.setPersistentProperty(new QualifiedName("", //$NON-NLS-1$
PreferenceConstants.P_XL_COMPILER_ROOT), fPathEditor

Back to the top