Package org.eclipse.dltk.internal.ui.wizards.dialogfields

Examples of org.eclipse.dltk.internal.ui.wizards.dialogfields.IStringButtonAdapter


   * TODO: Create autocomplete on field. TODO: Add image decorator (small icon
   * next to label pointing that autocomplete is avaiable)
   */
  protected void createSuperClassControls() {

    superClassField = new StringButtonDialogField(new IStringButtonAdapter() {

      @Override
      public void changeControlPressed(DialogField field) {

        OpenTypeSelectionDialog2 dialog = getDialog(NewElementWizardPage.CLASSES,
View Full Code Here


        updatePageCompletion();
      }
    });
   

    sourcePath = new StringButtonDialogField(new IStringButtonAdapter() {
      @Override
      public void changeControlPressed(DialogField field) {
        DirectoryDialog dialog = new DirectoryDialog(getShell(), SWT.OPEN);
        dialog.setMessage("Select an existing composer project");
        source = dialog.open();
View Full Code Here

   
    Composite container = new Composite(parent, SWT.NONE);
    GridLayoutFactory.fillDefaults().equalWidth(false).numColumns(3).applyTo(container);
    GridDataFactory.fillDefaults().grab(true, true).applyTo(container);
   
    containerPath = new StringButtonDialogField(new IStringButtonAdapter() {
     
      @Override
      public void changeControlPressed(DialogField field) {
        openDialog();
      }
View Full Code Here

        projectName = projectNameField.getText();
        validateSettings();
      }
    });

    sourceButton = new StringButtonDialogField(new IStringButtonAdapter() {
      @Override
      public void changeControlPressed(DialogField field) {
        try {
          DirectoryDialog dialog = new DirectoryDialog(getShell());
          String result = dialog.open();
          if (result != null) {
            sourceButton.setText(result);
            sourcePath = new Path(result);
            enableButtons();
            scanSourceFolder();
          }
        } catch (Exception e) {
          Logger.logException(e);
        }
      }
    });

    sourceButton.setButtonLabel("Browse");
    sourceButton.setLabelText("Source folder");
    sourceButton.doFillIntoGrid(container, 3);
    sourceButton.getTextControl(null).setEnabled(false);

    containerButton = new StringButtonDialogField(new IStringButtonAdapter() {
      @Override
      public void changeControlPressed(DialogField field) {

        try {
          FileDialog dialog = new FileDialog(getShell());
          //dialog.setFilterExtensions(new String[]{"xml"});
          String result = dialog.open();
          String relativePath = getRelativePath(result);
          if (result != null && relativePath != null) {
            containerButton.setText(relativePath);
            containerPath= new Path(relativePath);
            validateSettings();
          }
        } catch (Exception e) {
          Logger.logException(e);
        }

      }
    });

    LayoutUtil.setHorizontalGrabbing(sourceButton.getTextControl(null));

    containerButton.setButtonLabel("Browse");
    containerButton.setLabelText("Dumped container");
    containerButton.doFillIntoGrid(container, 3);

    consoleButton = new StringButtonDialogField(new IStringButtonAdapter() {
      @Override
      public void changeControlPressed(DialogField field) {
        FileDialog dialog = new FileDialog(getShell());
        String result = dialog.open();
        String relativePath = getRelativePath(result);
View Full Code Here

TOP

Related Classes of org.eclipse.dltk.internal.ui.wizards.dialogfields.IStringButtonAdapter

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.