Skip to main content
summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMarkus Schorn2009-07-24 05:15:47 -0400
committerMarkus Schorn2009-07-24 05:15:47 -0400
commit678612112b9c0f1ea2bc5f7c7052b6ad109029a7 (patch)
treea7c2a1359c869815cbf5b7f16f7ec84dc2de0aae /core
parentf79ded2f1d40ce403f2533148c7528e15acd4313 (diff)
downloadorg.eclipse.cdt-678612112b9c0f1ea2bc5f7c7052b6ad109029a7.tar.gz
org.eclipse.cdt-678612112b9c0f1ea2bc5f7c7052b6ad109029a7.tar.xz
org.eclipse.cdt-678612112b9c0f1ea2bc5f7c7052b6ad109029a7.zip
Trigger re-index when editing relevant properties, bug 144085.
Diffstat (limited to 'core')
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/newui/AbstractPage.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/newui/AbstractPage.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/newui/AbstractPage.java
index fac391600e..38afca6295 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/newui/AbstractPage.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/newui/AbstractPage.java
@@ -15,6 +15,7 @@ package org.eclipse.cdt.ui.newui;
import java.io.File;
import java.lang.reflect.InvocationTargetException;
+import java.lang.reflect.Method;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
@@ -689,6 +690,24 @@ implements
}
break;
}
+ } else if (tabtab instanceof AbstractCPropertyTab){
+ // attempt to access API that will be introduced in CDT 6.1 (bug 144085)
+ try {
+ Class<?> clazz= tabtab.getClass();
+ Method meth = clazz.getDeclaredMethod("isIndexerAffected"); //$NON-NLS-1$
+ if (meth != null) {
+ Object result = meth.invoke(tabtab);
+ if (result instanceof Boolean && ((Boolean) result).booleanValue())
+ return true;
+ }
+ } catch (SecurityException e) {
+ } catch (NoSuchMethodException e) {
+ } catch (IllegalArgumentException e) {
+ } catch (IllegalAccessException e) {
+ } catch (InvocationTargetException e) {
+ // the method was called and has thrown an exception.
+ CUIPlugin.log(e);
+ }
}
}
}

Back to the top