/** The working dir variables button has been selected */
 private void handleWorkingDirVariablesButtonSelected() {
   StringVariableSelectionDialog dialog = new StringVariableSelectionDialog(getShell());
   dialog.open();
   String variableText = dialog.getVariableExpression();
   if (variableText != null) {
     fOtherWorkingText.insert(variableText);
   }
 }
 private void variablesButtonSelected(Text text) {
   StringVariableSelectionDialog dialog = new StringVariableSelectionDialog(getShell());
   if (dialog.open() == StringVariableSelectionDialog.OK) {
     text.append(dialog.getVariableExpression());
   }
 }
Exemple #3
0
 /**
  * Prompts the user to choose and configure a variable and returns the resulting string, suitable
  * to be used as an attribute.
  */
 private String getVariable() {
   StringVariableSelectionDialog dialog = new StringVariableSelectionDialog(getShell());
   dialog.open();
   return dialog.getVariableExpression();
 }