mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
ui: cleanup - remove duplicated logic
same operations will be performed in `createSouthPanel()`
This commit is contained in:
@@ -1076,19 +1076,7 @@ public abstract class DialogWrapper {
|
||||
*/
|
||||
@NotNull
|
||||
protected Action[] createActions() {
|
||||
if (getHelpId() == null) {
|
||||
if (SystemInfo.isMac) {
|
||||
return new Action[]{getCancelAction(), getOKAction()};
|
||||
}
|
||||
|
||||
return new Action[]{getOKAction(), getCancelAction()};
|
||||
}
|
||||
else {
|
||||
if (SystemInfo.isMac) {
|
||||
return new Action[]{getHelpAction(), getCancelAction(), getOKAction()};
|
||||
}
|
||||
return new Action[]{getOKAction(), getCancelAction(), getHelpAction()};
|
||||
}
|
||||
return new Action[]{getOKAction(), getCancelAction(), getHelpAction()};
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user