projects
/
Mograsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Restructured the Preferences system
[Mograsim.git]
/
plugins
/
net.mograsim.logic.model.editor
/
src
/
net
/
mograsim
/
logic
/
model
/
editor
/
ui
/
DialogManager.java
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
df7455e
..
509c524
100644
(file)
--- 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;
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;
{
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);
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();
b2.setText(cancelLabel);
shell.pack();