mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
RESOLVED - bug 237176: XL C/C++ Compiler Preferences page is annoying
https://bugs.eclipse.org/bugs/show_bug.cgi?id=237176
This commit is contained in:
parent
38bde2611c
commit
18122f05d4
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue