Skip to main content
summaryrefslogtreecommitdiffstats
path: root/xlc
diff options
context:
space:
mode:
authorChris Recoskie2009-02-04 10:19:59 -0500
committerChris Recoskie2009-02-04 10:19:59 -0500
commit18122f05d47718b8bf5265bebf962e07acb8de25 (patch)
tree61207d9ca42eb2903d9d954555090d410ef8ab07 /xlc
parent38bde2611cc38f8a4fba11009b20051448011068 (diff)
downloadorg.eclipse.cdt-18122f05d47718b8bf5265bebf962e07acb8de25.tar.gz
org.eclipse.cdt-18122f05d47718b8bf5265bebf962e07acb8de25.tar.xz
org.eclipse.cdt-18122f05d47718b8bf5265bebf962e07acb8de25.zip
RESOLVED - bug 237176: XL C/C++ Compiler Preferences page is annoying
https://bugs.eclipse.org/bugs/show_bug.cgi?id=237176
Diffstat (limited to 'xlc')
-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 edf7538500..a3e25a189e 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