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 ff082c6
Showing 1 changed file with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
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);
}

Check warning on line 61 in bundles/org.eclipse.passage.lic.jface/src/org/eclipse/passage/lic/internal/jface/dialogs/licensing/EnvironmentStateDialog.java

View check run for this annotation

Codecov / codecov/patch

bundles/org.eclipse.passage.lic.jface/src/org/eclipse/passage/lic/internal/jface/dialogs/licensing/EnvironmentStateDialog.java#L58-L61

Added lines #L58 - L61 were not covered by tests

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

Check warning on line 65 in bundles/org.eclipse.passage.lic.jface/src/org/eclipse/passage/lic/internal/jface/dialogs/licensing/EnvironmentStateDialog.java

View check run for this annotation

Codecov / codecov/patch

bundles/org.eclipse.passage.lic.jface/src/org/eclipse/passage/lic/internal/jface/dialogs/licensing/EnvironmentStateDialog.java#L65

Added line #L65 was not covered by tests
}

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 ff082c6

Please sign in to comment.