X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=plugins%2Fnet.mograsim.logic.model.editor%2Fsrc%2Fnet%2Fmograsim%2Flogic%2Fmodel%2Feditor%2Fui%2FDialogManager.java;h=509c524ee06f41aaebf45d48daaa2cb4743e0e29;hb=HEAD;hp=df7455e66e2fa12420c83fb249fa91640d39f55d;hpb=7d05144c25daa53e60fc9ed9fd503546a86567f8;p=Mograsim.git diff --git a/plugins/net.mograsim.logic.model.editor/src/net/mograsim/logic/model/editor/ui/DialogManager.java b/plugins/net.mograsim.logic.model.editor/src/net/mograsim/logic/model/editor/ui/DialogManager.java index df7455e6..509c524e 100644 --- a/plugins/net.mograsim.logic.model.editor/src/net/mograsim/logic/model/editor/ui/DialogManager.java +++ b/plugins/net.mograsim.logic.model.editor/src/net/mograsim/logic/model/editor/ui/DialogManager.java @@ -35,12 +35,12 @@ public class DialogManager protected String[] result; - public FlexibleInputsDialog(String title, String acceptLabel, String cancelLabel, String... inputs) + public FlexibleInputsDialog(String title, String acceptLabel, String cancelLabel) { - this(false, title, acceptLabel, cancelLabel, inputs); + this(false, title, acceptLabel, cancelLabel); } - public FlexibleInputsDialog(boolean resizable, String title, String acceptLabel, String cancelLabel, String... inputs) + public FlexibleInputsDialog(boolean resizable, String title, String acceptLabel, String cancelLabel) { super(new Shell(SWT.CLOSE | (resizable ? SWT.RESIZE | SWT.MAX : 0) | SWT.TITLE | SWT.MIN | SWT.ON_TOP | SWT.APPLICATION_MODAL)); this.title = title; @@ -84,10 +84,7 @@ public class DialogManager b1.setText(acceptLabel); Button b2 = new Button(shell, SWT.PUSH); - b2.addListener(SWT.Selection, e -> - { - shell.dispose(); - }); + b2.addListener(SWT.Selection, e -> shell.dispose()); b2.setText(cancelLabel); shell.pack();