Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Recoskie2009-02-04 10:19:44 -0500
committerChris Recoskie2009-02-04 10:19:44 -0500
commitc11a5d344ee43ec33ea33c0e6f499ef2b92c0e14 (patch)
tree5323d2396ab9d08450275cad22e07b62fda5a5f5
parent76173183100894560fcd162ed3ce9bed63a01d8e (diff)
downloadorg.eclipse.cdt-c11a5d344ee43ec33ea33c0e6f499ef2b92c0e14.tar.gz
org.eclipse.cdt-c11a5d344ee43ec33ea33c0e6f499ef2b92c0e14.tar.xz
org.eclipse.cdt-c11a5d344ee43ec33ea33c0e6f499ef2b92c0e14.zip
RESOLVED - bug 237176: XL C/C++ Compiler Preferences page is annoying
https://bugs.eclipse.org/bugs/show_bug.cgi?id=237176
-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 a7ba60a341..be2884a7c5 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
@@ -69,7 +69,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;
@@ -154,7 +154,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