Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian de Alwis2012-04-30 11:05:36 -0400
committerBrian de Alwis2012-04-30 11:05:36 -0400
commit7f0a539ddcaca209a036c47467cfe7a923ec48f2 (patch)
treec6b0be5c34b46948f5cf335ace39f26d49bfe116
parent4d9f7931a662556f7d2c14cc072c7e24c8bb4e4d (diff)
downloadorg.eclipse.e4.tools-7f0a539ddcaca209a036c47467cfe7a923ec48f2.tar.gz
org.eclipse.e4.tools-7f0a539ddcaca209a036c47467cfe7a923ec48f2.tar.xz
org.eclipse.e4.tools-7f0a539ddcaca209a036c47467cfe7a923ec48f2.zip
CSS Spy: avoid creating "Cancel" button since there's no support for cancellation
-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 6a55e106..70cb2248 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
@@ -163,6 +163,11 @@ public class CssSpyDialog extends Dialog {
setShellStyle(SWT.DIALOG_TRIM | SWT.RESIZE/* | SWT.PRIMARY_MODAL */);
}
+ protected void configureShell(Shell newShell) {
+ super.configureShell(newShell);
+ newShell.setText("CSS Spy");
+ }
+
public Widget getSpecimen() {
return specimen;
}
@@ -821,8 +826,8 @@ public class CssSpyDialog extends Dialog {
protected void createButtonsForButtonBar(Composite parent) {
createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL,
true);
- createButton(parent, IDialogConstants.CANCEL_ID,
- IDialogConstants.CANCEL_LABEL, false);
+ // createButton(parent, IDialogConstants.CANCEL_ID,
+ // IDialogConstants.CANCEL_LABEL, false);
}
/**

Back to the top