Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSopot Cela2012-12-12 11:12:14 +0000
committerSopot Cela2012-12-12 11:12:14 +0000
commite7cb002985859e26550d043db1e540d32b3a27fa (patch)
tree98368f87699ac185aa3519835e8a98c250d71d96 /bundles/org.eclipse.e4.tools.css.spy
parentccc4aa3ef044b1ad210276b019411786bb7c9ff7 (diff)
downloadorg.eclipse.e4.tools-e7cb002985859e26550d043db1e540d32b3a27fa.tar.gz
org.eclipse.e4.tools-e7cb002985859e26550d043db1e540d32b3a27fa.tar.xz
org.eclipse.e4.tools-e7cb002985859e26550d043db1e540d32b3a27fa.zip
Bug 396388 - Increase rules compliance on e4 code
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.java8
1 files changed, 2 insertions, 6 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 f986d15f..f22e3808 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
@@ -281,7 +281,7 @@ public class CssSpyDialog extends Dialog {
if (decl != null) {
sb.append(decl.getCssText());
}
- } catch (Throwable e) {
+ } catch (Exception e) {
sb.append(e);
}
}
@@ -358,10 +358,6 @@ public class CssSpyDialog extends Dialog {
}
// emulate a transparent background as per SWT Snippet180
Shell selectedShell = getShell(selected);
- if (selectedShell != null) {
- // bounds = slectedShell.getDisplay().map(null, selectedShell,
- // bounds);
- }
// create the highlight; want it to appear on top
Shell highlight = new Shell(selectedShell, SWT.NO_TRIM | SWT.MODELESS
| SWT.NO_FOCUS | SWT.ON_TOP);
@@ -621,7 +617,7 @@ public class CssSpyDialog extends Dialog {
}
CSSPropertyProvider provider = (CSSPropertyProvider) element;
provider.setValue((String) value);
- } catch (Throwable e) {
+ } catch (Exception e) {
MessageDialog.openError(getShell(), "Error",
"Unable to set property:\n\n"
+ e.getMessage());

Back to the top