Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#1280] Environment State Dialog is not resizable #1281

Merged
merged 2 commits into from
Feb 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2020, 2021 ArSysOp
* Copyright (c) 2020, 2024 ArSysOp
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
Expand All @@ -9,6 +9,7 @@
*
* Contributors:
* ArSysOp - initial API and implementation
* ArSysOp - further support
*******************************************************************************/
package org.eclipse.passage.lic.internal.jface.dialogs.licensing;

Expand Down Expand Up @@ -53,6 +54,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 +94,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
Loading