コード例 #1
0
 /** 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);
   }
 }
コード例 #2
0
 private void variablesButtonSelected(Text text) {
   StringVariableSelectionDialog dialog = new StringVariableSelectionDialog(getShell());
   if (dialog.open() == StringVariableSelectionDialog.OK) {
     text.append(dialog.getVariableExpression());
   }
 }
コード例 #3
0
ファイル: SettingsBlock.java プロジェクト: NVIDIA/cdt-nsight
 /**
  * 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();
 }