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

UI changes for serverwiz2 #55

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
20 changes: 10 additions & 10 deletions src/com/ibm/ServerWizard2/view/MainDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public class MainDialog extends Dialog {
*/
public MainDialog(Shell parentShell) {
super(parentShell);
setShellStyle(SWT.BORDER | SWT.MIN | SWT.MAX | SWT.RESIZE | SWT.APPLICATION_MODAL);
setShellStyle(SWT.BORDER | SWT.MIN | SWT.MAX | SWT.RESIZE | SWT.APPLICATION_MODAL | SWT.COLOR_WIDGET_BORDER);
}

protected void configureShell(Shell newShell) {
Expand All @@ -152,7 +152,7 @@ protected Control createDialogArea(Composite parent) {
gl_container.verticalSpacing = 0;
container.setLayout(gl_container);

composite = new Composite(container, SWT.NONE);
composite = new Composite(container, SWT.COLOR_WIDGET_BORDER);

RowLayout rl_composite = new RowLayout(SWT.HORIZONTAL);
rl_composite.spacing = 20;
Expand All @@ -164,7 +164,7 @@ protected Control createDialogArea(Composite parent) {
gd_composite.heightHint = 154;
composite.setLayoutData(gd_composite);

sashForm_1 = new SashForm(container, SWT.BORDER | SWT.VERTICAL);
sashForm_1 = new SashForm(container, SWT.BORDER | SWT.VERTICAL | SWT.COLOR_WIDGET_BORDER);
GridData gd_sashForm_1 = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);
gd_sashForm_1.heightHint = 375;
gd_sashForm_1.widthHint = 712;
Expand All @@ -178,7 +178,7 @@ protected Control createDialogArea(Composite parent) {
buttonRow1.setLayout(rl_buttonRow1);

this.createButtonsForButtonBar2(buttonRow1);
new Label(buttonRow1, SWT.NONE);
new Label(buttonRow1, SWT.COLOR_WIDGET_BORDER);
new Label(buttonRow1, SWT.NONE);
new Label(buttonRow1, SWT.NONE);
new Label(buttonRow1, SWT.NONE);
Expand All @@ -198,7 +198,7 @@ protected Control createDialogArea(Composite parent) {
sashForm = new SashForm(sashForm_1, SWT.NONE);

// Target Instances View
tree = new Tree(sashForm, SWT.BORDER | SWT.VIRTUAL);
tree = new Tree(sashForm, SWT.BORDER | SWT.VIRTUAL | SWT.BOLD | SWT.COLOR_WIDGET_BORDER);
tree.setHeaderVisible(true);
tree.setFont(SWTResourceManager.getFont("Arial", 9, SWT.NORMAL));
columnName = new TreeColumn(tree, 0);
Expand Down Expand Up @@ -252,8 +252,8 @@ protected Control createDialogArea(Composite parent) {
combo.setLayoutData(gd_combo);
combo.setFont(SWTResourceManager.getFont("Arial", 9, SWT.NORMAL));

btnAddTarget = new Button(compositeInstance, SWT.NONE);
btnAddTarget.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));
btnAddTarget = new Button(compositeInstance, SWT.COLOR_RED);
btnAddTarget.setLayoutData(new GridData(SWT.FILL | SWT.COLOR_RED, SWT.CENTER, false, false, 1, 1));
btnAddTarget.setFont(SWTResourceManager.getFont("Arial", 9, SWT.NORMAL));
btnAddTarget.setText("Add Instance");
btnAddTarget.setEnabled(false);
Expand All @@ -263,7 +263,7 @@ protected Control createDialogArea(Composite parent) {
lblName.setFont(SWTResourceManager.getFont("Arial", 9, SWT.NORMAL));
lblName.setText("Custom Name:");

txtInstanceName = new Text(compositeInstance, SWT.BORDER);
txtInstanceName = new Text(compositeInstance, SWT.BORDER | SWT.BOLD | SWT.COLOR_WIDGET_BORDER);
GridData gd_txtInstanceName = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);
gd_txtInstanceName.widthHint = 175;
txtInstanceName.setLayoutData(gd_txtInstanceName);
Expand Down Expand Up @@ -353,12 +353,12 @@ protected Control createDialogArea(Composite parent) {
+ "1. Select parent instance in Instance Tree\r\n"
+ "2. Select new instance type in dropdown\r\n"
+ "3. (Optional) Enter custom name\r\n" + "4. Click \"Add Instance\"");
lblInstanceDirections.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLUE));
lblInstanceDirections.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));
stackLayout.topControl = this.lblInstanceDirections;

lblBusDirections = new Label(compositeDir, SWT.NONE);
lblBusDirections.setFont(SWTResourceManager.getFont("Arial", 8, SWT.NORMAL));
lblBusDirections.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLUE));
lblBusDirections.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));
lblBusDirections
.setText("Steps for adding a new connection:\r\n"
+ "1. Select a bus type from dropdown\r\n"
Expand Down