|
Lines 46-52
Link Here
|
| 46 |
private final Image warnImage; |
46 |
private final Image warnImage; |
| 47 |
private Text servletNameTextField; |
47 |
private Text servletNameTextField; |
| 48 |
private Text entryPointTextField; |
48 |
private Text entryPointTextField; |
| 49 |
private Button terminatePreviousCheckBox; |
|
|
| 50 |
private Button openBrowserCheckBox; |
49 |
private Button openBrowserCheckBox; |
| 51 |
private Button internalBrowserRadioButton; |
50 |
private Button internalBrowserRadioButton; |
| 52 |
private Button externalBrowserRadioButton; |
51 |
private Button externalBrowserRadioButton; |
|
Lines 124-130
Link Here
|
| 124 |
try { |
123 |
try { |
| 125 |
servletNameTextField.setText( rapConfig.getServletName() ); |
124 |
servletNameTextField.setText( rapConfig.getServletName() ); |
| 126 |
entryPointTextField.setText( rapConfig.getEntryPoint() ); |
125 |
entryPointTextField.setText( rapConfig.getEntryPoint() ); |
| 127 |
terminatePreviousCheckBox.setSelection( rapConfig.getTerminatePrevious() ); |
|
|
| 128 |
manualPortCheckBox.setSelection( rapConfig.getUseManualPort() ); |
126 |
manualPortCheckBox.setSelection( rapConfig.getUseManualPort() ); |
| 129 |
portSpinner.setSelection( rapConfig.getPort() ); |
127 |
portSpinner.setSelection( rapConfig.getPort() ); |
| 130 |
contextPathCheckBox.setSelection( rapConfig.getUseManualContextPath() ); |
128 |
contextPathCheckBox.setSelection( rapConfig.getUseManualContextPath() ); |
|
Lines 155-161
Link Here
|
| 155 |
RAPLaunchConfig rapConfig = new RAPLaunchConfig( config ); |
153 |
RAPLaunchConfig rapConfig = new RAPLaunchConfig( config ); |
| 156 |
rapConfig.setServletName( servletNameTextField.getText() ); |
154 |
rapConfig.setServletName( servletNameTextField.getText() ); |
| 157 |
rapConfig.setEntryPoint( entryPointTextField.getText() ); |
155 |
rapConfig.setEntryPoint( entryPointTextField.getText() ); |
| 158 |
rapConfig.setTerminatePrevious( terminatePreviousCheckBox.getSelection() ); |
|
|
| 159 |
rapConfig.setOpenBrowser( openBrowserCheckBox.getSelection() ); |
156 |
rapConfig.setOpenBrowser( openBrowserCheckBox.getSelection() ); |
| 160 |
rapConfig.setBrowserMode( getBrowserMode() ); |
157 |
rapConfig.setBrowserMode( getBrowserMode() ); |
| 161 |
portSpinner.setEnabled( manualPortCheckBox.getSelection() ); |
158 |
portSpinner.setEnabled( manualPortCheckBox.getSelection() ); |
|
Lines 230-236
Link Here
|
| 230 |
group.setText( LaunchMessages.MainTab_ServletAndEntryPoint ); |
227 |
group.setText( LaunchMessages.MainTab_ServletAndEntryPoint ); |
| 231 |
createServletNamePart( group ); |
228 |
createServletNamePart( group ); |
| 232 |
createEntryPointPart( group ); |
229 |
createEntryPointPart( group ); |
| 233 |
createSessionPart( group ); |
|
|
| 234 |
} |
230 |
} |
| 235 |
|
231 |
|
| 236 |
private void createServletNamePart( Composite parent ) { |
232 |
private void createServletNamePart( Composite parent ) { |
|
Lines 263-276
Link Here
|
| 263 |
} ); |
259 |
} ); |
| 264 |
} |
260 |
} |
| 265 |
|
261 |
|
| 266 |
private void createSessionPart( Composite parent ) { |
|
|
| 267 |
terminatePreviousCheckBox = new Button( parent, SWT.CHECK ); |
| 268 |
terminatePreviousCheckBox.setLayoutData( spanHorizontal( 3, 0 ) ); |
| 269 |
String text = LaunchMessages.MainTab_TerminatePrevious; |
| 270 |
terminatePreviousCheckBox.setText( text ); |
| 271 |
terminatePreviousCheckBox.addSelectionListener( selectionListener ); |
| 272 |
} |
| 273 |
|
| 274 |
private void createBrowserModeSection( Composite parent ) { |
262 |
private void createBrowserModeSection( Composite parent ) { |
| 275 |
Group group = new Group( parent, SWT.NONE ); |
263 |
Group group = new Group( parent, SWT.NONE ); |
| 276 |
group.setLayoutData( fillHorizontal.create() ); |
264 |
group.setLayoutData( fillHorizontal.create() ); |