Package org.eclipse.ui.dialogs

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


      ResourcesPlugin.getWorkspace().getRoot(),
      true,
      "Select new file container"
    );
   
    if (dialog.open() == ContainerSelectionDialog.OK) {
      Object[] result = dialog.getResult();
      if (result.length == 1) {
        this.cfcBean.setPath(((Path)result[0]).toOSString());
        this.cfcPath.setText(this.cfcBean.getPath());
      }
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) {
        applicationPath.setText(((Path)result[0]).toOSString());
      }
    }
View Full Code Here

        false,

        "Select new file container");

    if (dialog.open() == ContainerSelectionDialog.OK) {

      Object[] result = dialog.getResult();

      if (result.length == 1) {
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

        IContainer container = (IContainer)getElement();
       
       
        ContainerSelectionDialog select = new ContainerSelectionDialog(getShell(), container, false, "Select a path for this mapping");
       
        if(select.open() == IDialogConstants.OK_ID){
       
          if(select.getResult().length ==1 ){
            Path configPath = (Path)select.getResult()[0];
            System.out.println("Clicked ok" + configPath.toString());
            pathValueText.setText(configPath.toString());
View Full Code Here

      new ContainerSelectionDialog(
        getShell(),
        ResourcesPlugin.getWorkspace().getRoot(),
        false,
        "Select CFUnit Location");
    if (dialog.open() == ContainerSelectionDialog.OK) {
      Object[] result = dialog.getResult();
      if (result.length == 1) {
        containerText.setText(((Path)result[0]).toOSString());
      }
    }
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) {
       
        // Convert the path to a dot-nation location which can be used by ColdFusion
        String path = ((Path)result[0]).toString().replace('/', '.');
View Full Code Here

  private void handleBrowse() {
    ContainerSelectionDialog dialog = new ContainerSelectionDialog(
            getShell(), ResourcesPlugin.getWorkspace().getRoot(), false,
            "Select new source file location");

    if (dialog.open() == Window.OK) {
      Object[] result = dialog.getResult();
      if (result.length == 1) {
        sourceFolderName.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) {
                locationText.setText(((Path) result[0]).toOSString());
            }
        }
View Full Code Here

        if (currentContainer == null) {
            currentContainer = ResourcesPlugin.getWorkspace().getRoot();
        }
        ContainerSelectionDialog dialog = new ContainerSelectionDialog(getShell(), currentContainer, false, "Select a &workspace relative resource base directory:"); // LauncherMessages.WorkingDirectoryBlock_4
        dialog.showClosedProjects(false);
        dialog.open();
        Object[] results = dialog.getResult();     
        if ((results != null) && (results.length > 0) && (results[0] instanceof IPath)) {
            IPath path = (IPath)results[0];
            String containerName = path.makeRelative().toString();
            setOtherWorkingDirectoryText("${workspace_loc:" + containerName + "}"); //$NON-NLS-1$ //$NON-NLS-2$
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.