Package org.eclipse.debug.ui

Examples of org.eclipse.debug.ui.StringVariableSelectionDialog


      }
    });
    fVariables = createPushButton(standardGroup, LaunchConfigurationsMessages.CommonTab_9, null);
    fVariables.addSelectionListener(new SelectionListener() {
      public void widgetSelected(SelectionEvent e) {
        StringVariableSelectionDialog dialog = new StringVariableSelectionDialog(getShell());
        dialog.open();
        String variable = dialog.getVariableExpression();
        if (variable != null) {
          fFileText.insert(variable);
        }
      }
View Full Code Here


    /**
     * 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);
        }
    }
View Full Code Here

        fPgrmArgVariableButton = createPushButton(group, "Variables...", null);
        fPgrmArgVariableButton.setFont(font);
        fPgrmArgVariableButton.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
        fPgrmArgVariableButton.addSelectionListener(new SelectionListener() {
            public void widgetSelected(SelectionEvent e) {
                StringVariableSelectionDialog dialog = new StringVariableSelectionDialog(getShell());
                dialog.open();
                String variable = dialog.getVariableExpression();
                if (variable != null) {
                    fVMArgumentsText.insert(variable);
                }
            }
View Full Code Here

        Button pgrmArgVariableButton = createPushButton(group, buttonLabel, null);

        pgrmArgVariableButton.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
        pgrmArgVariableButton.addSelectionListener(new SelectionListener() {
            public void widgetSelected(SelectionEvent e) {
                StringVariableSelectionDialog dialog = new StringVariableSelectionDialog(getShell());
                dialog.open();
                String variable = dialog.getVariableExpression();
                if (variable != null) {
                    fPrgmArgumentsText.insert(variable);
                }
            }
View Full Code Here

        PHPDebugUIMessages.PHPExecutableLaunchTab_variables, null);
    pgrmArgVariableButton.setLayoutData(new GridData(
        GridData.HORIZONTAL_ALIGN_END));
    pgrmArgVariableButton.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        StringVariableSelectionDialog dialog = new StringVariableSelectionDialog(
            getShell());
        dialog.open();
        String variable = dialog.getVariableExpression();
        if (variable != null) {
          fPrgmArgumentsText.insert(variable);
          fPrgmArgumentsText.setFont(parent.getFont());
        }
      }
View Full Code Here

   * field. Prompt the user for a variable and enter the result
   * in the given field.
   */
  private static void handleVariablesButtonSelected(Text textField) {
    final Shell shell = textField.getShell();
    StringVariableSelectionDialog dialog = new StringVariableSelectionDialog(shell);
    dialog.open();
    String variable = dialog.getVariableExpression();
    if (variable != null) {
      textField.insert(variable);
    }
  }
View Full Code Here

            setFile(file);
        }
    }

    private void selectVariable() {
        StringVariableSelectionDialog dialog = new StringVariableSelectionDialog(getShell());
        dialog.open();
        String variable = dialog.getVariableExpression();
        if (variable != null) {
            addVariable(variable);
        }
    }
View Full Code Here

       
    /**
     * 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) {
            fResourceBaseText.insert(variableText);
        }
    }
View Full Code Here

TOP

Related Classes of org.eclipse.debug.ui.StringVariableSelectionDialog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.