-
Notifications
You must be signed in to change notification settings - Fork 4
/
GlobalVariableSelectionDialog.java
42 lines (32 loc) · 1.19 KB
/
GlobalVariableSelectionDialog.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package com.xored.q7.quality.mockups.issues.parts.internal;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
public class GlobalVariableSelectionDialog extends Dialog {
private static final String TITLE = "Global Variable Selector";
public GlobalVariableSelectionDialog() {
super(Display.getDefault().getActiveShell());
setShellStyle(getShellStyle() | SWT.RESIZE);
}
protected void configureShell(Shell newShell) {
super.configureShell(newShell);
newShell.setText(TITLE);
newShell.setSize(650, 300);
}
protected Control createDialogArea(Composite parent) {
Composite composite = (Composite) super.createDialogArea(parent);
composite.setLayout(new FillLayout(SWT.HORIZONTAL));
Label label = new Label(composite, SWT.NONE);
label.setText("No vars found");
return composite;
}
protected void createButtonsForButtonBar(Composite parent) {
super.createButtonsForButtonBar(parent);
getButton(OK).setEnabled(true);
}
}