Package org.eclipse.ui.dialogs

Examples of org.eclipse.ui.dialogs.ContainerSelectionDialog.open()


  private void handleBrowse() {
    ContainerSelectionDialog dialog = new ContainerSelectionDialog(
        getShell(), ResourcesPlugin.getWorkspace().getRoot(), false,
        Messages.getString("MaudeGUI.WIZ_SELECTNEWCONT")); //$NON-NLS-1$
    if (dialog.open() == ContainerSelectionDialog.OK) {
      Object[] result = dialog.getResult();
      if (result.length == 1) {
        containerText.setText(((Path) result[0]).toString());
      }
    }
View Full Code Here


  private void handleBrowse() {
    ContainerSelectionDialog dialog = new ContainerSelectionDialog(
        getShell(), ResourcesPlugin.getWorkspace().getRoot(), false,
        "Select new file container");
    if (dialog.open() == ContainerSelectionDialog.OK) {
      Object[] result = dialog.getResult();
      if (result.length == 1) {
        containerText.setText(((Path) result[0]).toString());
      }
    }
View Full Code Here

      IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();

      ContainerSelectionDialog dialog = new ContainerSelectionDialog(
          getShell(), root, false, CodegenWizardPlugin
              .getResourceString("page3.containerbox.title"));
      if (dialog.open() == ContainerSelectionDialog.OK) {
        Object[] result = dialog.getResult();
        if (result.length == 1) {
          Path path = ((Path) result[0]);
          if (root.exists(path)) {
            //Fixing issue AXIS2-4008 by retrieving the project path instead of appending it to the workspace root.
View Full Code Here

      ContainerSelectionDialog dialog = new ContainerSelectionDialog(
          getShell(), root, false,
          CodegenWizardPlugin
              .getResourceString("page3.containerbox.title"));
      if (dialog.open() == ContainerSelectionDialog.OK) {
        Object[] result = dialog.getResult();
        if (result.length == 1) {
          Path path = ((Path) result[0]);
          if (root.exists(path)) {
            // Fixing issue AXIS2-4008 by retrieving the project
View Full Code Here

     */

    private void handleBrowse() {
        ContainerSelectionDialog dialog = new ContainerSelectionDialog(getShell(), ResourcesPlugin
                .getWorkspace().getRoot(), false, "Select new file container");
        if (dialog.open() == ContainerSelectionDialog.OK) {
            Object[] result = dialog.getResult();
            if (result.length == 1) {
                containerText.setText(((Path) result[0]).toString());
            }
        }
View Full Code Here

      new ContainerSelectionDialog(
        getShell(),
        ResourcesPlugin.getWorkspace().getRoot(),
        false,
        "Select new file container");
    if (dialog.open() == ContainerSelectionDialog.OK) {
      Object[] result = dialog.getResult();
      if (result.length == 1) {
        containerText.setText(((Path)result[0]).toOSString());
      }
    }
View Full Code Here

  private void handleBrowse() {
    ContainerSelectionDialog dialog = new ContainerSelectionDialog(
        getShell(), ResourcesPlugin.getWorkspace().getRoot(), false,
        "Select new file container");
    if (dialog.open() == ContainerSelectionDialog.OK) {
      Object[] result = dialog.getResult();
      if (result.length == 1) {
        containerText.setText(((Path) result[0]).toString());
      }
    }
View Full Code Here

  private void handleBrowse() {
    ContainerSelectionDialog dialog = new ContainerSelectionDialog(
        getShell(), ResourcesPlugin.getWorkspace().getRoot(), false,
        "Select new file container");
    if (dialog.open() == Window.OK) {
      Object[] result = dialog.getResult();
      if (result.length == 1) {
        containerText.setText(((Path) result[0]).toString());
      }
    }
View Full Code Here

    browseLink.setText(Messages.NewDocumentWizardDefinePage_link_browse_text); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
    browseLink.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent selectionEvent) {
        ContainerSelectionDialog containerSelectionDialog = new ContainerSelectionDialog(getShell(),
            ResourcesPlugin.getWorkspace().getRoot(), false, Messages.NewDocumentWizardDefinePage_dialog_container_message);
        if(containerSelectionDialog.open() == Window.OK) {         
          Object[] objects = containerSelectionDialog.getResult();
          if(objects.length > 0) {
            Object object = objects[0];           
            if(object instanceof IPath) {
              textFolder.setText(((IPath)object).toString());
View Full Code Here

  private void handleBrowse()
  {
    ContainerSelectionDialog dialog = new ContainerSelectionDialog(
        getShell(), ResourcesPlugin.getWorkspace().getRoot(), false,
        "Select a source folder");
    if (dialog.open() == ContainerSelectionDialog.OK)
    {
      Object[] result = dialog.getResult();
      if (result.length == 1)
      {
        containerText.setText(((Path) result[0]).toString());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.