Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/CssSpyPart.java')
-rw-r--r--bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/CssSpyPart.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/CssSpyPart.java b/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/CssSpyPart.java
index 826a328e..9569c123 100644
--- a/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/CssSpyPart.java
+++ b/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/CssSpyPart.java
@@ -874,18 +874,18 @@ public class CssSpyPart
Shell controlShell = (control == null) ? display.getActiveShell() : control.getShell();
Shell spyPartShell = outer.getShell();
- if (spyPartShell != controlShell)
+ if (p != cssPart)
+ {
+ // Must remove the highlights if selected
+ disposeHighlights();
+
+ } else if (spyPartShell != controlShell)
{
// A widget has been selected in another shell.. We can display the
// corresponding control as a specimen
shown = null;
setSpecimen(control);
}
- else if (p != cssPart)
- {
- // Must remove the highlights if selected
- disposeHighlights();
- }
}

Back to the top