Package org.eclipse.debug.ui

Examples of org.eclipse.debug.ui.StringVariableSelectionDialog


        }
    }

    private String getVariable()
    {
        StringVariableSelectionDialog dialog = new StringVariableSelectionDialog(
            getShell());
        dialog.open();
        return dialog.getVariableExpression();
    }
View Full Code Here


            new GridData(GridData.HORIZONTAL_ALIGN_END));
        fPerlArgVariableButton.addSelectionListener(new SelectionListener()
        {
            public void widgetSelected(SelectionEvent e)
            {
                StringVariableSelectionDialog dialog =
                    new StringVariableSelectionDialog(getShell());
                dialog.open();
                String variable = dialog.getVariableExpression();
                if (variable != null)
                {
                    fPerlArgumentsText.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

      }
    });
    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

            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

        final Text commandText ) {
      final Button button = new Button( parent, SWT.NONE );
    button.addSelectionListener(new SelectionAdapter() {
       
        public void widgetSelected( final SelectionEvent e ) {
          final StringVariableSelectionDialog dialog = new StringVariableSelectionDialog(
              PlatformUI.getWorkbench().getActiveWorkbenchWindow()
                  .getShell() );
        dialog.open();
          final String var = dialog.getVariableExpression();
        commandText.insert(var);
      }
    });
    button.setText("Variables...");
  }
View Full Code Here

    final Button button = new Button( getFieldEditorParent(), SWT.NONE );
    button.addSelectionListener( new SelectionAdapter() {

      public void widgetSelected( final SelectionEvent e ) {
        final StringVariableSelectionDialog dialog = new StringVariableSelectionDialog(
            PlatformUI.getWorkbench().getActiveWorkbenchWindow()
            .getShell() );
        dialog.open();
        final String var = dialog.getVariableExpression();
        comp.getTextControl( getFieldEditorParent() ).insert( var );
      }
    } );
    button.setText( "Variables..." );
    GridData data = new GridData();
View Full Code Here

   
    fPgrmArgVariableButton = SWTFactory.createPushButton(composite, LauncherMessages.VMArgumentsBlock_4, null);
    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);
        }
      }
      public void widgetDefaultSelected(SelectionEvent e) {
View Full Code Here

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

    String buttonLabel = "Variables..."
    Button pgrmArgVariableButton = createPushButton(group, buttonLabel, 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);
        }
      }
    });
   
    Group groupNode = new Group(comp, SWT.NONE);
    groupNode.setFont(font);
    groupNode.setLayout(new GridLayout());
    groupNode.setLayoutData(new GridData(GridData.FILL_BOTH));
   
    groupNode.setText("Node Arguments");
   
    fNodeArgumentsText = new Text(groupNode, SWT.MULTI | SWT.WRAP | SWT.BORDER | SWT.V_SCROLL);
    fNodeArgumentsText.addTraverseListener(new TraverseListener() {
      public void keyTraversed(TraverseEvent e) {
        switch (e.detail) {
          case SWT.TRAVERSE_ESCAPE:
          case SWT.TRAVERSE_PAGE_NEXT:
          case SWT.TRAVERSE_PAGE_PREVIOUS:
            e.doit = true;
            break;
          case SWT.TRAVERSE_RETURN:
          case SWT.TRAVERSE_TAB_NEXT:
          case SWT.TRAVERSE_TAB_PREVIOUS:
            if ((fPrgmArgumentsText.getStyle() & SWT.SINGLE) != 0) {
              e.doit = true;
            } else {
              if (!fPrgmArgumentsText.isEnabled() || (e.stateMask & SWT.MODIFIER_MASK) != 0) {
                e.doit = true;
              }
            }
            break;
        }
      }
    });
    GridData gd2 = new GridData(GridData.FILL_BOTH);
    gd2.heightHint = 40;
    gd2.widthHint = 100;
    fNodeArgumentsText.setLayoutData(gd2);
    fNodeArgumentsText.setFont(font);
    fNodeArgumentsText.addModifyListener(new ModifyListener() {
      public void modifyText(ModifyEvent evt) {
        scheduleUpdateJob();
      }
    });
    //ControlAccessibleListener.addListener(fPrgmArgumentsText, group.getText());
   
    String buttonLabel2 = "Variables..."
    Button pgrmArgVariableButton2 = createPushButton(groupNode, buttonLabel2, null);
    pgrmArgVariableButton2.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
    pgrmArgVariableButton2.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        StringVariableSelectionDialog dialog = new StringVariableSelectionDialog(getShell());
        dialog.open();
        String variable = dialog.getVariableExpression();
        if (variable != null) {
                    fNodeArgumentsText.insert(variable);
        }
      }
    });
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.