1 package net.sourceforge.phpdt.externaltools.launchConfigurations;
3 /***********************************************************************************************************************************
4 * Copyright (c) 2000, 2002 IBM Corp. All rights reserved. This file is made available under the terms of the Common Public License
5 * v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/cpl-v10.html
6 **********************************************************************************************************************************/
10 import net.sourceforge.phpdt.externaltools.group.IGroupDialogPage;
11 import net.sourceforge.phpdt.externaltools.internal.dialog.ExternalToolVariableForm;
12 import net.sourceforge.phpdt.externaltools.internal.model.ExternalToolsImages;
13 import net.sourceforge.phpdt.externaltools.internal.registry.ExternalToolVariable;
14 import net.sourceforge.phpdt.externaltools.model.IExternalToolConstants;
15 import net.sourceforge.phpdt.externaltools.model.ToolUtil;
16 import net.sourceforge.phpdt.externaltools.variable.ExpandVariableContext;
17 import net.sourceforge.phpeclipse.PHPeclipsePlugin;
18 import net.sourceforge.phpeclipse.externaltools.ExternalToolsPlugin;
20 import org.eclipse.core.resources.IResource;
21 import org.eclipse.core.resources.ResourcesPlugin;
22 import org.eclipse.core.runtime.CoreException;
23 import org.eclipse.core.runtime.IPath;
24 import org.eclipse.core.runtime.IStatus;
25 import org.eclipse.core.runtime.MultiStatus;
26 import org.eclipse.debug.core.ILaunchConfiguration;
27 import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
28 import org.eclipse.debug.ui.AbstractLaunchConfigurationTab;
29 import org.eclipse.debug.ui.ILaunchConfigurationTab;
30 import org.eclipse.jface.dialogs.IDialogConstants;
31 import org.eclipse.jface.dialogs.IMessageProvider;
32 import org.eclipse.jface.preference.IPreferenceStore;
33 import org.eclipse.swt.SWT;
34 import org.eclipse.swt.events.ModifyEvent;
35 import org.eclipse.swt.events.ModifyListener;
36 import org.eclipse.swt.events.SelectionAdapter;
37 import org.eclipse.swt.events.SelectionEvent;
38 import org.eclipse.swt.events.SelectionListener;
39 import org.eclipse.swt.graphics.Font;
40 import org.eclipse.swt.graphics.Image;
41 import org.eclipse.swt.layout.GridData;
42 import org.eclipse.swt.layout.GridLayout;
43 import org.eclipse.swt.widgets.Button;
44 import org.eclipse.swt.widgets.Combo;
45 import org.eclipse.swt.widgets.Composite;
46 import org.eclipse.swt.widgets.Control;
47 import org.eclipse.swt.widgets.DirectoryDialog;
48 import org.eclipse.swt.widgets.FileDialog;
49 import org.eclipse.swt.widgets.Label;
50 import org.eclipse.swt.widgets.Shell;
51 import org.eclipse.swt.widgets.Text;
52 import org.eclipse.ui.dialogs.ContainerSelectionDialog;
53 import org.eclipse.ui.dialogs.ResourceSelectionDialog;
54 import org.eclipse.ui.dialogs.SelectionDialog;
56 public class ExternalToolsMainTab extends AbstractLaunchConfigurationTab {
58 protected Combo locationField;
60 protected Text workDirectoryField;
62 protected Button fileLocationButton;
64 protected Button workspaceLocationButton;
66 protected Button fileWorkingDirectoryButton;
68 protected Button workspaceWorkingDirectoryButton;
70 protected Button runBackgroundButton;
72 protected Text argumentField;
74 protected Button variableButton;
76 protected SelectionAdapter selectionAdapter;
78 protected ModifyListener modifyListener = new ModifyListener() {
79 public void modifyText(ModifyEvent e) {
80 updateLaunchConfigurationDialog();
85 * @see org.eclipse.debug.ui.ILaunchConfigurationTab#createControl(org.eclipse.swt.widgets.Composite)
87 public void createControl(Composite parent) {
88 Composite mainComposite = new Composite(parent, SWT.NONE);
89 setControl(mainComposite);
90 GridLayout layout = new GridLayout();
91 layout.numColumns = 2;
92 GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
93 mainComposite.setLayout(layout);
94 mainComposite.setLayoutData(gridData);
95 mainComposite.setFont(parent.getFont());
96 createLocationComponent(mainComposite);
97 createWorkDirectoryComponent(mainComposite);
98 createArgumentComponent(mainComposite);
99 createVerticalSpacer(mainComposite, 2);
100 createRunBackgroundComponent(mainComposite);
104 * Creates the controls needed to edit the location attribute of an external tool
107 * the composite to create the controls in
109 protected void createLocationComponent(Composite parent) {
110 Font font = parent.getFont();
112 Composite composite = new Composite(parent, SWT.NONE);
113 GridLayout layout = new GridLayout();
114 layout.marginWidth = 0;
115 layout.marginHeight = 0;
116 layout.numColumns = 1;
117 GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
118 composite.setLayout(layout);
119 composite.setLayoutData(gridData);
121 Label label = new Label(composite, SWT.NONE);
122 label.setText(ExternalToolsLaunchConfigurationMessages.getString("ExternalToolsMainTab.&Location___2")); //$NON-NLS-1$
125 final IPreferenceStore store = PHPeclipsePlugin.getDefault().getPreferenceStore();
126 locationField = new Combo(composite, SWT.DROP_DOWN | SWT.BORDER);
127 GridData data = new GridData(GridData.FILL_HORIZONTAL);
128 data.widthHint = IDialogConstants.ENTRY_FIELD_WIDTH;
129 locationField.setLayoutData(data);
130 locationField.setFont(font);
131 locationField.add(store.getString(PHPeclipsePlugin.PHP_RUN_PREF), 0);
132 locationField.add(store.getString(PHPeclipsePlugin.APACHE_RUN_PREF), 1);
133 locationField.add(store.getString(PHPeclipsePlugin.MYSQL_RUN_PREF), 2);
134 locationField.add(store.getString(PHPeclipsePlugin.XAMPP_START_PREF), 3);
135 locationField.add(store.getString(PHPeclipsePlugin.XAMPP_STOP_PREF), 4);
136 Composite buttonComposite = new Composite(parent, SWT.NONE);
137 layout = new GridLayout();
138 layout.marginWidth = 0;
139 layout.marginHeight = 0;
140 layout.numColumns = 1;
141 gridData = new GridData(GridData.HORIZONTAL_ALIGN_END);
142 buttonComposite.setLayout(layout);
143 buttonComposite.setLayoutData(gridData);
144 buttonComposite.setFont(font);
146 createVerticalSpacer(buttonComposite, 1);
148 workspaceLocationButton = createPushButton(buttonComposite, ExternalToolsLaunchConfigurationMessages
149 .getString("ExternalToolsMainTab.&Browse_Workspace..._3"), null); //$NON-NLS-1$
150 workspaceLocationButton.addSelectionListener(new SelectionAdapter() {
151 public void widgetSelected(SelectionEvent evt) {
152 handleWorkspaceLocationButtonSelected();
155 fileLocationButton = createPushButton(buttonComposite, ExternalToolsLaunchConfigurationMessages
156 .getString("ExternalToolsMainTab.Brows&e_File_System..._4"), null); //$NON-NLS-1$
157 fileLocationButton.addSelectionListener(new SelectionAdapter() {
158 public void widgetSelected(SelectionEvent evt) {
159 handleLocationButtonSelected();
165 * Creates the controls needed to edit the working directory attribute of an external tool
168 * the composite to create the controls in
170 protected void createWorkDirectoryComponent(Composite parent) {
171 Font font = parent.getFont();
173 Composite composite = new Composite(parent, SWT.NONE);
174 GridLayout layout = new GridLayout();
175 layout.marginWidth = 0;
176 layout.marginHeight = 0;
177 layout.numColumns = 1;
178 GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
179 composite.setLayout(layout);
180 composite.setLayoutData(gridData);
182 Label label = new Label(composite, SWT.NONE);
183 label.setText(ExternalToolsLaunchConfigurationMessages.getString("ExternalToolsMainTab.Working_&Directory__5")); //$NON-NLS-1$
186 workDirectoryField = new Text(composite, SWT.BORDER);
187 GridData data = new GridData(GridData.FILL_HORIZONTAL);
188 data.widthHint = IDialogConstants.ENTRY_FIELD_WIDTH;
189 workDirectoryField.setLayoutData(data);
190 workDirectoryField.setFont(font);
192 Composite buttonComposite = new Composite(parent, SWT.NONE);
193 layout = new GridLayout();
194 layout.marginWidth = 0;
195 layout.marginHeight = 0;
196 layout.numColumns = 1;
197 gridData = new GridData(GridData.HORIZONTAL_ALIGN_END);
198 buttonComposite.setLayout(layout);
199 buttonComposite.setLayoutData(gridData);
200 buttonComposite.setFont(font);
202 createVerticalSpacer(buttonComposite, 1);
203 workspaceWorkingDirectoryButton = createPushButton(buttonComposite, ExternalToolsLaunchConfigurationMessages
204 .getString("ExternalToolsMainTab.Browse_Wor&kspace..._6"), null); //$NON-NLS-1$
205 workspaceWorkingDirectoryButton.addSelectionListener(new SelectionAdapter() {
206 public void widgetSelected(SelectionEvent evt) {
207 handleWorkspaceWorkingDirectoryButtonSelected();
210 fileWorkingDirectoryButton = createPushButton(buttonComposite, ExternalToolsLaunchConfigurationMessages
211 .getString("ExternalToolsMainTab.Browse_F&ile_System..._7"), null); //$NON-NLS-1$
212 fileWorkingDirectoryButton.addSelectionListener(new SelectionAdapter() {
213 public void widgetSelected(SelectionEvent evt) {
214 handleFileWorkingDirectoryButtonSelected();
220 * Creates the controls needed to edit the argument and prompt for argument attributes of an external tool
223 * the composite to create the controls in
225 protected void createArgumentComponent(Composite parent) {
226 Font font = parent.getFont();
228 Label label = new Label(parent, SWT.NONE);
229 label.setText(ExternalToolsLaunchConfigurationMessages.getString("ExternalToolsOptionTab.&Arguments___1")); //$NON-NLS-1$
230 GridData data = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
231 data.horizontalSpan = 2;
232 label.setLayoutData(data);
235 argumentField = new Text(parent, SWT.BORDER);
236 data = new GridData(GridData.FILL_HORIZONTAL);
237 data.widthHint = IDialogConstants.ENTRY_FIELD_WIDTH;
238 argumentField.setLayoutData(data);
239 argumentField.setFont(font);
240 argumentField.addModifyListener(new ModifyListener() {
241 public void modifyText(ModifyEvent e) {
242 updateLaunchConfigurationDialog();
246 variableButton = createPushButton(parent, ExternalToolsLaunchConfigurationMessages
247 .getString("ExternalToolsOptionTab.Varia&bles..._2"), null); //$NON-NLS-1$
248 variableButton.addSelectionListener(new SelectionAdapter() {
249 public void widgetSelected(SelectionEvent e) {
250 VariableSelectionDialog dialog = new VariableSelectionDialog(getShell());
251 if (dialog.open() == SelectionDialog.OK) {
252 argumentField.insert(dialog.getForm().getSelectedVariable());
257 Label instruction = new Label(parent, SWT.NONE);
259 .setText(ExternalToolsLaunchConfigurationMessages
260 .getString("ExternalToolsOptionTab.Note__Enclose_an_argument_containing_spaces_using_double-quotes_(__)._Not_applicable_for_variables._3")); //$NON-NLS-1$
261 data = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
262 data.horizontalSpan = 2;
263 instruction.setLayoutData(data);
264 instruction.setFont(font);
268 * Creates the controls needed to edit the run in background attribute of an external tool
271 * the composite to create the controls in
273 protected void createRunBackgroundComponent(Composite parent) {
274 runBackgroundButton = new Button(parent, SWT.CHECK);
275 runBackgroundButton.setText(ExternalToolsLaunchConfigurationMessages
276 .getString("ExternalToolsOptionTab.Run_tool_in_bac&kground_4")); //$NON-NLS-1$
277 GridData data = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
278 runBackgroundButton.setLayoutData(data);
279 runBackgroundButton.setFont(parent.getFont());
280 runBackgroundButton.addSelectionListener(getSelectionAdapter());
284 * @see org.eclipse.debug.ui.ILaunchConfigurationTab#setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)
286 public void setDefaults(ILaunchConfigurationWorkingCopy configuration) {
287 configuration.setAttribute(IExternalToolConstants.ATTR_RUN_IN_BACKGROUND, false);
291 * @see org.eclipse.debug.ui.ILaunchConfigurationTab#initializeFrom(org.eclipse.debug.core.ILaunchConfiguration)
293 public void initializeFrom(ILaunchConfiguration configuration) {
294 updateLocation(configuration);
295 updateWorkingDirectory(configuration);
296 updateArgument(configuration);
297 updateRunBackground(configuration);
300 protected void updateWorkingDirectory(ILaunchConfiguration configuration) {
301 String workingDir = ""; //$NON-NLS-1$
303 workingDir = configuration.getAttribute(IExternalToolConstants.ATTR_WORKING_DIRECTORY, ""); //$NON-NLS-1$
304 } catch (CoreException ce) {
305 ExternalToolsPlugin.getDefault().log(
306 ExternalToolsLaunchConfigurationMessages.getString("ExternalToolsMainTab.Error_reading_configuration_10"), ce); //$NON-NLS-1$
308 workDirectoryField.setText(workingDir);
309 workDirectoryField.addModifyListener(modifyListener);
313 protected void updateLocation(ILaunchConfiguration configuration) {
314 String location = ""; //$NON-NLS-1$
316 location = configuration.getAttribute(IExternalToolConstants.ATTR_LOCATION, ""); //$NON-NLS-1$
317 } catch (CoreException ce) {
318 ExternalToolsPlugin.getDefault().log(
319 ExternalToolsLaunchConfigurationMessages.getString("ExternalToolsMainTab.Error_reading_configuration_10"), ce); //$NON-NLS-1$
321 locationField.setText(location);
322 locationField.addModifyListener(modifyListener);
325 protected void updateArgument(ILaunchConfiguration configuration) {
326 String arguments = ""; //$NON-NLS-1$
328 arguments = configuration.getAttribute(IExternalToolConstants.ATTR_TOOL_ARGUMENTS, ""); //$NON-NLS-1$
329 } catch (CoreException ce) {
330 ExternalToolsPlugin.getDefault().log(
331 ExternalToolsLaunchConfigurationMessages.getString("ExternalToolsOptionTab.Error_reading_configuration_7"), ce); //$NON-NLS-1$
333 argumentField.setText(arguments);
336 protected void updateRunBackground(ILaunchConfiguration configuration) {
337 boolean runInBackgroud = true;
339 runInBackgroud = configuration.getAttribute(IExternalToolConstants.ATTR_RUN_IN_BACKGROUND, false);
340 } catch (CoreException ce) {
341 ExternalToolsPlugin.getDefault().log(
342 ExternalToolsLaunchConfigurationMessages.getString("ExternalToolsOptionTab.Error_reading_configuration_7"), ce); //$NON-NLS-1$
344 runBackgroundButton.setSelection(runInBackgroud);
348 * @see org.eclipse.debug.ui.ILaunchConfigurationTab#performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)
350 public void performApply(ILaunchConfigurationWorkingCopy configuration) {
351 String location = locationField.getText().trim();
352 if (location.length() == 0) {
353 configuration.setAttribute(IExternalToolConstants.ATTR_LOCATION, (String) null);
355 configuration.setAttribute(IExternalToolConstants.ATTR_LOCATION, location);
358 String workingDirectory = workDirectoryField.getText().trim();
359 if (workingDirectory.length() == 0) {
360 configuration.setAttribute(IExternalToolConstants.ATTR_WORKING_DIRECTORY, (String) null);
362 configuration.setAttribute(IExternalToolConstants.ATTR_WORKING_DIRECTORY, workingDirectory);
365 setAttribute(IExternalToolConstants.ATTR_RUN_IN_BACKGROUND, configuration, runBackgroundButton.getSelection(), false);
367 String arguments = argumentField.getText().trim();
368 if (arguments.length() == 0) {
369 configuration.setAttribute(IExternalToolConstants.ATTR_TOOL_ARGUMENTS, (String) null);
371 configuration.setAttribute(IExternalToolConstants.ATTR_TOOL_ARGUMENTS, arguments);
376 * @see org.eclipse.debug.ui.ILaunchConfigurationTab#getName()
378 public String getName() {
379 return ExternalToolsLaunchConfigurationMessages.getString("ExternalToolsMainTab.&Main_17"); //$NON-NLS-1$
383 * @see ILaunchConfigurationTab#isValid(org.eclipse.debug.core.ILaunchConfiguration)
385 public boolean isValid(ILaunchConfiguration launchConfig) {
386 setErrorMessage(null);
388 return validateLocation() && validateWorkDirectory();
392 * Validates the content of the location field.
394 protected boolean validateLocation() {
395 String value = locationField.getText().trim();
396 if (value.length() < 1) {
397 setErrorMessage(ExternalToolsLaunchConfigurationMessages
398 .getString("ExternalToolsMainTab.External_tool_location_cannot_be_empty_18")); //$NON-NLS-1$
403 // Translate field contents to the actual file location so we
404 // can check to ensure the file actually exists.
405 MultiStatus multiStatus = new MultiStatus(IExternalToolConstants.PLUGIN_ID, 0, "", null); //$NON-NLS-1$
406 value = ToolUtil.expandFileLocation(value, ExpandVariableContext.EMPTY_CONTEXT, multiStatus);
407 if (!multiStatus.isOK()) {
408 IStatus[] children = multiStatus.getChildren();
409 if (children.length > 0) {
410 setErrorMessage(children[0].getMessage());
416 File file = new File(value);
417 if (!file.exists()) { // The file does not exist.
418 setErrorMessage(ExternalToolsLaunchConfigurationMessages
419 .getString("ExternalToolsMainTab.External_tool_location_does_not_exist_19")); //$NON-NLS-1$
422 if (!file.isFile()) {
423 setErrorMessage(ExternalToolsLaunchConfigurationMessages
424 .getString("ExternalToolsMainTab.External_tool_location_specified_is_not_a_file_20")); //$NON-NLS-1$
431 * Validates the content of the working directory field.
433 protected boolean validateWorkDirectory() {
435 String value = workDirectoryField.getText().trim();
436 if (value.length() > 0) {
437 // Translate field contents to the actual directory location so we
438 // can check to ensure the directory actually exists.
439 MultiStatus multiStatus = new MultiStatus(IExternalToolConstants.PLUGIN_ID, 0, "", null); //$NON-NLS-1$
440 value = ToolUtil.expandDirectoryLocation(value, ExpandVariableContext.EMPTY_CONTEXT, multiStatus);
441 if (!multiStatus.isOK()) {
442 IStatus[] children = multiStatus.getChildren();
443 if (children.length > 0) {
444 setErrorMessage(children[0].getMessage());
449 File file = new File(value);
450 if (!file.exists()) { // The directory does not exist.
451 setErrorMessage(ExternalToolsLaunchConfigurationMessages
452 .getString("ExternalToolsMainTab.External_tool_working_directory_does_not_exist_or_is_invalid_21")); //$NON-NLS-1$
459 protected void handleLocationButtonSelected() {
460 FileDialog fileDialog = new FileDialog(getShell(), SWT.NONE);
461 fileDialog.setFileName(locationField.getText());
462 String text = fileDialog.open();
464 locationField.setText(text);
469 * Prompts the user for a workspace location within the workspace and sets the location as a String containing the workspace_loc
470 * variable or <code>null</code> if no location was obtained from the user.
472 protected void handleWorkspaceLocationButtonSelected() {
473 ResourceSelectionDialog dialog;
474 dialog = new ResourceSelectionDialog(getShell(), ResourcesPlugin.getWorkspace().getRoot(),
475 ExternalToolsLaunchConfigurationMessages.getString("ExternalToolsMainTab.Select_a_resource_22")); //$NON-NLS-1$
477 Object[] results = dialog.getResult();
478 if (results == null || results.length < 1) {
481 IResource resource = (IResource) results[0];
482 StringBuffer buf = new StringBuffer();
483 ToolUtil.buildVariableTag(IExternalToolConstants.VAR_WORKSPACE_LOC, resource.getFullPath().toString(), buf);
484 String text = buf.toString();
486 locationField.setText(text);
491 * Prompts the user for a working directory location within the workspace and sets the working directory as a String containing
492 * the workspace_loc variable or <code>null</code> if no location was obtained from the user.
494 protected void handleWorkspaceWorkingDirectoryButtonSelected() {
495 ContainerSelectionDialog containerDialog;
496 containerDialog = new ContainerSelectionDialog(getShell(), ResourcesPlugin.getWorkspace().getRoot(), false,
497 ExternalToolsLaunchConfigurationMessages.getString("ExternalToolsMainTab.&Select_a_directory__23")); //$NON-NLS-1$
498 containerDialog.open();
499 Object[] resource = containerDialog.getResult();
501 if (resource != null && resource.length > 0) {
502 text = ToolUtil.buildVariableTag(IExternalToolConstants.VAR_RESOURCE_LOC, ((IPath) resource[0]).toString());
505 workDirectoryField.setText(text);
509 protected void handleFileWorkingDirectoryButtonSelected() {
510 DirectoryDialog dialog = new DirectoryDialog(getShell(), SWT.SAVE);
511 dialog.setMessage(ExternalToolsLaunchConfigurationMessages.getString("ExternalToolsMainTab.&Select_a_directory__23")); //$NON-NLS-1$
512 dialog.setFilterPath(workDirectoryField.getText());
513 String text = dialog.open();
515 workDirectoryField.setText(text);
520 * @see org.eclipse.debug.ui.ILaunchConfigurationTab#getImage()
522 public Image getImage() {
523 return ExternalToolsImages.getImage(IExternalToolConstants.IMG_TAB_MAIN);
527 * Method getSelectionAdapter.
529 * @return SelectionListener
531 protected SelectionListener getSelectionAdapter() {
532 if (selectionAdapter == null) {
533 selectionAdapter = new SelectionAdapter() {
534 public void widgetSelected(SelectionEvent e) {
535 updateLaunchConfigurationDialog();
539 return selectionAdapter;
542 private class VariableSelectionDialog extends SelectionDialog {
543 private ExternalToolVariableForm form;
545 private VariableSelectionDialog(Shell parent) {
547 setTitle(ExternalToolsLaunchConfigurationMessages.getString("ExternalToolsOptionTab.Select_variable_10")); //$NON-NLS-1$
550 protected Control createDialogArea(Composite parent) {
551 // Create the dialog area
552 Composite composite = (Composite) super.createDialogArea(parent);
553 ExternalToolVariable[] variables = ExternalToolsPlugin.getDefault().getArgumentVariableRegistry().getArgumentVariables();
554 form = new ExternalToolVariableForm(ExternalToolsLaunchConfigurationMessages
555 .getString("ExternalToolsOptionTab.&Choose_a_variable__11"), variables); //$NON-NLS-1$
556 form.createContents(composite, new IGroupDialogPage() {
557 public GridData setButtonGridData(Button button) {
558 GridData data = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
559 data.heightHint = convertVerticalDLUsToPixels(IDialogConstants.BUTTON_HEIGHT);
560 int widthHint = convertHorizontalDLUsToPixels(IDialogConstants.BUTTON_WIDTH);
561 data.widthHint = Math.max(widthHint, button.computeSize(SWT.DEFAULT, SWT.DEFAULT, true).x);
562 button.setLayoutData(data);
566 public void setMessage(String newMessage, int newType) {
567 VariableSelectionDialog.this.setMessage(newMessage);
570 public void updateValidState() {
573 public int convertHeightHint(int chars) {
574 return convertHeightInCharsToPixels(chars);
577 public String getMessage() {
578 if (!form.isValid()) {
579 return ExternalToolsLaunchConfigurationMessages.getString("ExternalToolsOptionTab.Invalid_selection_12"); //$NON-NLS-1$
584 public int getMessageType() {
585 if (!form.isValid()) {
586 return IMessageProvider.ERROR;
594 private ExternalToolVariableForm getForm() {