Skip to content

Commit

Permalink
[#1280] Environment State Dialog is not resizable
Browse files Browse the repository at this point in the history
  • Loading branch information
eparovyshnaya committed Feb 16, 2024
1 parent a6cd7da commit 5aef016
Showing 1 changed file with 12 additions and 7 deletions.
Expand Up @@ -53,6 +53,18 @@ protected Control createDialogArea(Composite parent) {
return folder;
}

@Override
protected void configureShell(Shell shell) {
super.configureShell(shell);
shell.setSize(500, 700);
shell.setText(EnvironmentStateDialogMessages.EnvironmentStatesDialog_title);
}

@Override
protected final boolean isResizable() {
return true;
}

private void installTabPerEnvironment(TabFolder folder, RuntimeEnvironment environment) {
TabItem item = new TabItem(folder, SWT.NONE);
item.setText(environment.id().identifier());
Expand Down Expand Up @@ -81,13 +93,6 @@ private Composite display(ScrolledComposite scrolled, RuntimeEnvironment environ
return composite;
}

@Override
protected void configureShell(Shell shell) {
super.configureShell(shell);
shell.setSize(500, 700);
shell.setText(EnvironmentStateDialogMessages.EnvironmentStatesDialog_title);
}

private String state(RuntimeEnvironment environment) {
try {
return environment.state();
Expand Down

0 comments on commit 5aef016

Please sign in to comment.