Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Herrmann2017-01-27 22:20:58 +0000
committerStephan Herrmann2017-03-05 18:21:39 +0000
commit49986ae8ff60604ea081c8f586580215c71d8384 (patch)
treeb3a2269550c9c3ade09145b0a0c6ef4348225a61
parent4b16c7b0c9487e4197c5330732ccebfb813af265 (diff)
downloadorg.eclipse.objectteams-49986ae8ff60604ea081c8f586580215c71d8384.tar.gz
org.eclipse.objectteams-49986ae8ff60604ea081c8f586580215c71d8384.tar.xz
org.eclipse.objectteams-49986ae8ff60604ea081c8f586580215c71d8384.zip
Bug 510218: Never invoke the callin marker creater on type j.l.Object
-rw-r--r--plugins/org.eclipse.objectteams.otdt.ui/src/org/eclipse/objectteams/otdt/internal/ui/callinmarkers/CallinMarkerCreator2.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/org.eclipse.objectteams.otdt.ui/src/org/eclipse/objectteams/otdt/internal/ui/callinmarkers/CallinMarkerCreator2.java b/plugins/org.eclipse.objectteams.otdt.ui/src/org/eclipse/objectteams/otdt/internal/ui/callinmarkers/CallinMarkerCreator2.java
index 21b68ad5f..c026a421e 100644
--- a/plugins/org.eclipse.objectteams.otdt.ui/src/org/eclipse/objectteams/otdt/internal/ui/callinmarkers/CallinMarkerCreator2.java
+++ b/plugins/org.eclipse.objectteams.otdt.ui/src/org/eclipse/objectteams/otdt/internal/ui/callinmarkers/CallinMarkerCreator2.java
@@ -270,6 +270,14 @@ public class CallinMarkerCreator2 extends JavaEditorActivationListener
*/
public void updateCallinMarkers(final IMarkableJavaElement target, IStatusLineManager statusLine)
{
+ IJavaElement javaElement = target.getJavaElement();
+ IJavaElement pack = javaElement.getAncestor(IJavaElement.PACKAGE_FRAGMENT);
+ if (pack != null) {
+ if (pack.getElementName().startsWith("java.lang")) //$NON-NLS-1$
+ return;
+ if (pack.getElementName().equals("java.io") && javaElement.getElementName().startsWith("Serializable")) //$NON-NLS-1$ //$NON-NLS-2$
+ return;
+ }
CallinMarkerJob job = new CallinMarkerJob(target) {
protected void updateMarkers(IProgressMonitor monitor) throws Exception {
updateCallinMarkers(target, monitor);

Back to the top