|
Lines 51-57
Link Here
|
| 51 |
private final Image warnImage; |
51 |
private final Image warnImage; |
| 52 |
private Text servletNameTextField; |
52 |
private Text servletNameTextField; |
| 53 |
private Text entryPointTextField; |
53 |
private Text entryPointTextField; |
| 54 |
private Button terminatePreviousCheckBox; |
|
|
| 55 |
private Button openBrowserCheckBox; |
54 |
private Button openBrowserCheckBox; |
| 56 |
private Button internalBrowserRadioButton; |
55 |
private Button internalBrowserRadioButton; |
| 57 |
private Button externalBrowserRadioButton; |
56 |
private Button externalBrowserRadioButton; |
|
Lines 130-136
Link Here
|
| 130 |
try { |
129 |
try { |
| 131 |
servletNameTextField.setText( rapConfig.getServletName() ); |
130 |
servletNameTextField.setText( rapConfig.getServletName() ); |
| 132 |
entryPointTextField.setText( rapConfig.getEntryPoint() ); |
131 |
entryPointTextField.setText( rapConfig.getEntryPoint() ); |
| 133 |
terminatePreviousCheckBox.setSelection( rapConfig.getTerminatePrevious() ); |
|
|
| 134 |
manualPortCheckBox.setSelection( rapConfig.getUseManualPort() ); |
132 |
manualPortCheckBox.setSelection( rapConfig.getUseManualPort() ); |
| 135 |
portSpinner.setSelection( rapConfig.getPort() ); |
133 |
portSpinner.setSelection( rapConfig.getPort() ); |
| 136 |
contextPathCheckBox.setSelection( rapConfig.getUseManualContextPath() ); |
134 |
contextPathCheckBox.setSelection( rapConfig.getUseManualContextPath() ); |
|
Lines 164-170
Link Here
|
| 164 |
RAPLaunchConfig rapConfig = new RAPLaunchConfig( config ); |
162 |
RAPLaunchConfig rapConfig = new RAPLaunchConfig( config ); |
| 165 |
rapConfig.setServletName( servletNameTextField.getText() ); |
163 |
rapConfig.setServletName( servletNameTextField.getText() ); |
| 166 |
rapConfig.setEntryPoint( entryPointTextField.getText() ); |
164 |
rapConfig.setEntryPoint( entryPointTextField.getText() ); |
| 167 |
rapConfig.setTerminatePrevious( terminatePreviousCheckBox.getSelection() ); |
|
|
| 168 |
rapConfig.setOpenBrowser( openBrowserCheckBox.getSelection() ); |
165 |
rapConfig.setOpenBrowser( openBrowserCheckBox.getSelection() ); |
| 169 |
rapConfig.setBrowserMode( getBrowserMode() ); |
166 |
rapConfig.setBrowserMode( getBrowserMode() ); |
| 170 |
portSpinner.setEnabled( manualPortCheckBox.getSelection() ); |
167 |
portSpinner.setEnabled( manualPortCheckBox.getSelection() ); |
|
Lines 240-246
Link Here
|
| 240 |
group.setText( LaunchMessages.MainTab_ServletAndEntryPoint ); |
237 |
group.setText( LaunchMessages.MainTab_ServletAndEntryPoint ); |
| 241 |
createServletNamePart( group ); |
238 |
createServletNamePart( group ); |
| 242 |
createEntryPointPart( group ); |
239 |
createEntryPointPart( group ); |
| 243 |
createSessionPart( group ); |
|
|
| 244 |
} |
240 |
} |
| 245 |
|
241 |
|
| 246 |
private void createServletNamePart( Composite parent ) { |
242 |
private void createServletNamePart( Composite parent ) { |
|
Lines 273-286
Link Here
|
| 273 |
} ); |
269 |
} ); |
| 274 |
} |
270 |
} |
| 275 |
|
271 |
|
| 276 |
private void createSessionPart( Composite parent ) { |
|
|
| 277 |
terminatePreviousCheckBox = new Button( parent, SWT.CHECK ); |
| 278 |
terminatePreviousCheckBox.setLayoutData( spanHorizontal( 3, 0 ) ); |
| 279 |
String text = LaunchMessages.MainTab_TerminatePrevious; |
| 280 |
terminatePreviousCheckBox.setText( text ); |
| 281 |
terminatePreviousCheckBox.addSelectionListener( selectionListener ); |
| 282 |
} |
| 283 |
|
| 284 |
private void createBrowserModeSection( Composite parent ) { |
272 |
private void createBrowserModeSection( Composite parent ) { |
| 285 |
Group group = new Group( parent, SWT.NONE ); |
273 |
Group group = new Group( parent, SWT.NONE ); |
| 286 |
group.setLayoutData( fillHorizontal.create() ); |
274 |
group.setLayoutData( fillHorizontal.create() ); |