debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/newwizard/OtherSettingsDialog.java
author dadubrow
Wed, 20 Oct 2010 09:35:54 -0500
changeset 2163 f0a9f2d04d4a
parent 1013 83255eb26cdb
permissions -rw-r--r--
Refactor data model for new launch wizard
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
956
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
     1
/*
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
     2
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
     3
* All rights reserved.
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
     4
* This component and the accompanying materials are made available
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
     5
* under the terms of the License "Eclipse Public License v1.0"
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
     6
* which accompanies this distribution, and is available
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
     8
*
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
     9
* Initial Contributors:
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    11
*
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    12
* Contributors:
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    13
*
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    14
* Description: 
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    15
*
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    16
*/
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    17
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    18
package com.nokia.cdt.internal.debug.launch.newwizard;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    19
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    20
import org.eclipse.core.runtime.IStatus;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    21
import org.eclipse.core.runtime.Status;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    22
import org.eclipse.jface.layout.GridDataFactory;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    23
import org.eclipse.jface.layout.GridLayoutFactory;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    24
import org.eclipse.swt.SWT;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    25
import org.eclipse.swt.events.ControlAdapter;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    26
import org.eclipse.swt.events.ControlEvent;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    27
import org.eclipse.swt.events.SelectionAdapter;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    28
import org.eclipse.swt.events.SelectionEvent;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    29
import org.eclipse.swt.widgets.Button;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    30
import org.eclipse.swt.widgets.Composite;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    31
import org.eclipse.swt.widgets.Control;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    32
import org.eclipse.swt.widgets.Label;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    33
import org.eclipse.swt.widgets.Link;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    34
import org.eclipse.swt.widgets.Shell;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    35
import org.eclipse.ui.dialogs.PreferencesUtil;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    36
2163
f0a9f2d04d4a Refactor data model for new launch wizard
dadubrow
parents: 1013
diff changeset
    37
import com.nokia.cdt.internal.debug.launch.newwizard.IOtherSettingsWizardData.EBuildBeforeLaunchOption;
956
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    38
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    39
/**
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    40
 *	This dialog allows in-depth configuration of the other settings in the launch.
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    41
 *  Currently this only covers the build-before-launch options.
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    42
 */
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    43
public class OtherSettingsDialog extends AbstractLaunchSettingsDialog {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    44
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    45
	private Button fDisableBuildButton;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    46
	private Button fEnableBuildButton;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    47
	private Button fWorkspaceSettingsButton;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    48
	private Link fWorkspaceSettingsLink;
2163
f0a9f2d04d4a Refactor data model for new launch wizard
dadubrow
parents: 1013
diff changeset
    49
	private IOtherSettingsWizardData otherSettingsWizardData;
956
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    50
2163
f0a9f2d04d4a Refactor data model for new launch wizard
dadubrow
parents: 1013
diff changeset
    51
	protected OtherSettingsDialog(Shell shell, IWizardData data) {
956
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    52
		super(shell, data);
2163
f0a9f2d04d4a Refactor data model for new launch wizard
dadubrow
parents: 1013
diff changeset
    53
		otherSettingsWizardData = (IOtherSettingsWizardData) data;
956
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    54
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    55
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    56
	
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    57
	/* (non-Javadoc)
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    58
	 * @see org.eclipse.jface.dialogs.Dialog#createDialogArea(org.eclipse.swt.widgets.Composite)
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    59
	 */
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    60
	@Override
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    61
	protected Control createDialogArea(Composite parent) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    62
		Composite composite = initDialogArea(parent, 
969
b0dd389735fb externalize strings
dadubrow
parents: 956
diff changeset
    63
				Messages.getString("OtherSettingsDialog.Title"),  //$NON-NLS-1$
956
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    64
				LaunchWizardHelpIds.WIZARD_DIALOG_OTHER_SETTINGS);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    65
969
b0dd389735fb externalize strings
dadubrow
parents: 956
diff changeset
    66
		String description = Messages.getString("OtherSettingsDialog.Desc1") +  //$NON-NLS-1$
b0dd389735fb externalize strings
dadubrow
parents: 956
diff changeset
    67
		Messages.getString("OtherSettingsDialog.Desc2") + //$NON-NLS-1$
b0dd389735fb externalize strings
dadubrow
parents: 956
diff changeset
    68
		Messages.getString("OtherSettingsDialog.Desc3"); //$NON-NLS-1$
956
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    69
		
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    70
		final Label label = new Label(composite, SWT.WRAP);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    71
		label.setText(description);
1011
ac82c32cc589 bug 10773 - fix initial text of finish button + tweak width of other settings dialog to wrap text
dadubrow
parents: 993
diff changeset
    72
		GridDataFactory.fillDefaults().grab(true, false).hint(400, SWT.DEFAULT).applyTo(label);
956
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    73
		
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    74
		// spacer
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    75
		new Label(composite, SWT.NONE);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    76
		
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    77
		final Composite radio = new Composite(composite, SWT.NONE);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    78
		GridLayoutFactory.fillDefaults().numColumns(2).applyTo(radio);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    79
		GridDataFactory.fillDefaults().grab(true, true).applyTo(radio);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    80
		
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    81
		composite.addControlListener(new ControlAdapter() {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    82
			@Override
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    83
			public void controlResized(ControlEvent e) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    84
				label.pack();
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    85
			}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    86
		});
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    87
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    88
		fDisableBuildButton = new Button(radio, SWT.RADIO);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    89
		fDisableBuildButton.setText(Messages.getString("OtherSettingsDialog.DisableButtonLabel")); //$NON-NLS-1$
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    90
		fDisableBuildButton.setToolTipText(Messages.getString("OtherSettingsDialog.DisableButtonToolTip")); //$NON-NLS-1$
969
b0dd389735fb externalize strings
dadubrow
parents: 956
diff changeset
    91
		fDisableBuildButton.setData(UID, "OtherSettingsDialog.disableBuildButton"); //$NON-NLS-1$
956
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    92
		
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    93
		GridDataFactory.fillDefaults().span(2, 1).applyTo(fDisableBuildButton);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    94
		
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    95
		fDisableBuildButton.addSelectionListener(new SelectionAdapter() {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    96
			@Override
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    97
			public void widgetSelected(SelectionEvent e) {
2163
f0a9f2d04d4a Refactor data model for new launch wizard
dadubrow
parents: 1013
diff changeset
    98
				otherSettingsWizardData.setBuildBeforeLaunchOption(EBuildBeforeLaunchOption.NEVER);
956
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    99
			}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   100
		});
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   101
		
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   102
		
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   103
		fEnableBuildButton = new Button(radio, SWT.RADIO);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   104
		fEnableBuildButton.setText(Messages.getString("OtherSettingsDialog.EnableButtonLabel")); //$NON-NLS-1$
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   105
		fEnableBuildButton.setToolTipText(Messages.getString("OtherSettingsDialog.EnableButtonToolTip")); //$NON-NLS-1$
969
b0dd389735fb externalize strings
dadubrow
parents: 956
diff changeset
   106
		fEnableBuildButton.setData(UID, "OtherSettingsDialog.enableBuildButon"); //$NON-NLS-1$
956
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   107
		
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   108
		GridDataFactory.fillDefaults().span(2, 1).applyTo(fEnableBuildButton);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   109
		
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   110
		fEnableBuildButton.addSelectionListener(new SelectionAdapter() {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   111
			@Override
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   112
			public void widgetSelected(SelectionEvent e) {
2163
f0a9f2d04d4a Refactor data model for new launch wizard
dadubrow
parents: 1013
diff changeset
   113
				otherSettingsWizardData.setBuildBeforeLaunchOption(EBuildBeforeLaunchOption.ALWAYS);
956
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   114
			}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   115
		});
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   116
		
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   117
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   118
		fWorkspaceSettingsButton = new Button(radio, SWT.RADIO);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   119
		fWorkspaceSettingsButton.setText(Messages.getString("OtherSettingsDialog.WorkspaceSettingsButtonLabel")); //$NON-NLS-1$
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   120
		fWorkspaceSettingsButton.setToolTipText(Messages.getString("OtherSettingsDialog.WorkspaceSettingsButtonToolTip")); //$NON-NLS-1$
969
b0dd389735fb externalize strings
dadubrow
parents: 956
diff changeset
   121
		fWorkspaceSettingsButton.setData(UID, "OtherSettingsDialog.workspaceSettingsButton"); //$NON-NLS-1$
956
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   122
		
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   123
		GridDataFactory.swtDefaults().span(1, 1).applyTo(fWorkspaceSettingsButton);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   124
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   125
		fWorkspaceSettingsButton.addSelectionListener(new SelectionAdapter() {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   126
			@Override
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   127
			public void widgetSelected(SelectionEvent e) {
2163
f0a9f2d04d4a Refactor data model for new launch wizard
dadubrow
parents: 1013
diff changeset
   128
				otherSettingsWizardData.setBuildBeforeLaunchOption(EBuildBeforeLaunchOption.USE_WORKSPACE_SETTING);
956
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   129
			}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   130
		});
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   131
		
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   132
		
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   133
		fWorkspaceSettingsLink = new Link(radio, SWT.NONE);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   134
		fWorkspaceSettingsLink.setText(Messages.getString("OtherSettingsDialog.WorkspaceSettingsLinkLabel")); //$NON-NLS-1$
969
b0dd389735fb externalize strings
dadubrow
parents: 956
diff changeset
   135
		fWorkspaceSettingsLink.setData(UID, "OtherSettingsDialog.workspaceSettingsLink"); //$NON-NLS-1$
956
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   136
		
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   137
		GridDataFactory.swtDefaults().align(SWT.RIGHT, SWT.CENTER).grab(true, false).span(1, 1).applyTo(fWorkspaceSettingsLink);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   138
		
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   139
		fWorkspaceSettingsLink.addSelectionListener(new SelectionAdapter() {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   140
			public void widgetSelected(SelectionEvent e) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   141
				PreferencesUtil.createPreferenceDialogOn(
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   142
						radio.getShell(), 
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   143
						Messages.getString("OtherSettingsDialog.WorkspaceSettingsPageID"), //$NON-NLS-1$
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   144
						null, 
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   145
						null).open();
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   146
				validate();
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   147
			}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   148
		});
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   149
		
2163
f0a9f2d04d4a Refactor data model for new launch wizard
dadubrow
parents: 1013
diff changeset
   150
		switch (otherSettingsWizardData.getBuildBeforeLaunch()) {
956
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   151
		case ALWAYS:
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   152
			fEnableBuildButton.setSelection(true);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   153
			fEnableBuildButton.setFocus();
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   154
			break;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   155
		case NEVER:
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   156
			fDisableBuildButton.setSelection(true);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   157
			fDisableBuildButton.setFocus();
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   158
			break;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   159
		case USE_WORKSPACE_SETTING:
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   160
			fWorkspaceSettingsButton.setSelection(true);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   161
			fWorkspaceSettingsButton.setFocus();
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   162
			break;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   163
		}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   164
		
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   165
		validate();
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   166
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   167
		return radio;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   168
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   169
	
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   170
	@Override
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   171
	protected void validate() {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   172
		IStatus status = Status.OK_STATUS;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   173
		updateStatus(status);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   174
		
969
b0dd389735fb externalize strings
dadubrow
parents: 956
diff changeset
   175
		String wsState = ""; //$NON-NLS-1$
2163
f0a9f2d04d4a Refactor data model for new launch wizard
dadubrow
parents: 1013
diff changeset
   176
		if (otherSettingsWizardData.isWorkspaceBuildBeforeLaunch())
969
b0dd389735fb externalize strings
dadubrow
parents: 956
diff changeset
   177
			wsState = Messages.getString("OtherSettingsDialog.EnabledLabel"); //$NON-NLS-1$
956
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   178
		else
969
b0dd389735fb externalize strings
dadubrow
parents: 956
diff changeset
   179
			wsState = Messages.getString("OtherSettingsDialog.DisabledLabel"); //$NON-NLS-1$
956
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   180
		
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   181
		fWorkspaceSettingsButton.setText(
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   182
				Messages.getString("OtherSettingsDialog.WorkspaceSettingsButtonLabel") + //$NON-NLS-1$
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   183
				wsState);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   184
		fWorkspaceSettingsButton.pack();
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   185
		
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   186
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   187
}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   188