Commit 9dc860d8 authored by Matija Obreza's avatar Matija Obreza
Browse files

Allow resizable dialogs

parent 09384ece
......@@ -33,6 +33,7 @@ import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.layout.RowData;
public class VerifierDialog extends Dialog {
......@@ -48,7 +49,7 @@ public class VerifierDialog extends Dialog {
* @param style
*/
public VerifierDialog(Shell parent, int style) {
super(parent, SWT.DIALOG_TRIM);
super(parent, SWT.DIALOG_TRIM | SWT.RESIZE);
setText("SWT Dialog");
}
......@@ -76,7 +77,7 @@ public class VerifierDialog extends Dialog {
* Create contents of the dialog.
*/
private void createContents() {
shlEstablishLinkTo = new Shell(getParent(), getStyle());
shlEstablishLinkTo = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.RESIZE);
shlEstablishLinkTo.setSize(491, 199);
shlEstablishLinkTo.setText("Establish link to server");
GridLayout gl_shlEstablishLinkTo = new GridLayout(2, false);
......@@ -135,6 +136,7 @@ public class VerifierDialog extends Dialog {
composite.setLayout(new RowLayout(SWT.HORIZONTAL));
Button btnOk = new Button(composite, SWT.NONE);
btnOk.setLayoutData(new RowData(108, SWT.DEFAULT));
btnOk.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
......
......@@ -101,8 +101,8 @@ public class WorkspaceDialog extends Dialog {
* Create contents of the dialog.
*/
private void createContents() {
shlWorkspaceLauncher = new Shell(getParent(), SWT.CLOSE | SWT.TITLE);
shlWorkspaceLauncher.setSize(600, 168);
shlWorkspaceLauncher = new Shell(getParent(), SWT.CLOSE | SWT.RESIZE | SWT.TITLE);
shlWorkspaceLauncher.setSize(650, 194);
shlWorkspaceLauncher.setText("Workspace Launcher");
shlWorkspaceLauncher.setLayout(new BorderLayout(0, 0));
......@@ -176,7 +176,7 @@ public class WorkspaceDialog extends Dialog {
fl_composite_2.marginHeight = 10;
composite_2.setLayout(fl_composite_2);
Label lblSelectWorkspaceDirectory = new Label(composite_2, SWT.WRAP | SWT.CENTER);
Label lblSelectWorkspaceDirectory = new Label(composite_2, SWT.CENTER);
lblSelectWorkspaceDirectory.setBackground(SWTResourceManager.getColor(SWT.COLOR_TITLE_INACTIVE_BACKGROUND));
lblSelectWorkspaceDirectory.setText("Select workspace directory where your configuration and databases are stored.");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment