Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian de Alwis2014-02-13 15:03:56 +0000
committerBrian de Alwis2014-02-13 15:03:56 +0000
commit92fd5c2cf87d66ec3ed102280716880f25af0a3c (patch)
tree3efbb99d4d3f15407878955a337a55eba5575d17 /bundles/org.eclipse.e4.tools.css.spy
parent8e4b86fbeb3af9bde8281cf3a38a20d9791bea40 (diff)
downloadorg.eclipse.e4.tools-92fd5c2cf87d66ec3ed102280716880f25af0a3c.tar.gz
org.eclipse.e4.tools-92fd5c2cf87d66ec3ed102280716880f25af0a3c.tar.xz
org.eclipse.e4.tools-92fd5c2cf87d66ec3ed102280716880f25af0a3c.zip
[CSS Spy] Add Shell parent helper info
Diffstat (limited to 'bundles/org.eclipse.e4.tools.css.spy')
-rw-r--r--bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/CssSpyDialog.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/CssSpyDialog.java b/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/CssSpyDialog.java
index 17b3464f..cb03dd6e 100644
--- a/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/CssSpyDialog.java
+++ b/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/CssSpyDialog.java
@@ -306,9 +306,14 @@ public class CssSpyDialog extends Dialog {
element.getClass().getName());
// this is useful for diagnosing issues
+ if (element.getNativeWidget() instanceof Shell
+ && ((Shell) element.getNativeWidget()).getParent() != null) {
+ Shell nw = (Shell) element.getNativeWidget();
+ sb.append("\n\nShell parent: ").append(nw.getParent());
+ }
if (element.getNativeWidget() instanceof Composite) {
- sb.append("\n\nSWT Layout: ").append(
- ((Composite) element.getNativeWidget()).getLayout());
+ Composite nw = (Composite) element.getNativeWidget();
+ sb.append("\n\nSWT Layout: ").append(nw.getLayout());
}
Rectangle bounds = getBounds(selected);
if (bounds != null) {

Back to the top