Package org.eclipse.ui.dialogs

Examples of org.eclipse.ui.dialogs.ContainerSelectionDialog


   * Uses the standard container selection dialog to
   * choose the new value for the container field.
   */

  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) {
        applicationPath.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]).toOSString());
View Full Code Here

   * Uses the standard container selection dialog to
   * choose the new value for the container field.
   */

  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]).toOSString());
      }
    }
  }
View Full Code Here

       
        //Get the root path of the project as a container
        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

  /**
   * Uses the standard container selection dialog to
   * choose the new value for the container field.
   */
  private void handleBrowse() {
    ContainerSelectionDialog dialog =
      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

  /**
   * Uses the standard container selection dialog to
   * choose the new value for the container field.
   */
  private void handleCFUnitBrowse() {
    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) {
       
        // 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

  /**
   * Uses the standard container selection dialog to choose the new value for
   * the container field.
   */
  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

     * Uses the standard container selection dialog to choose the new value for
     * the container field.
     */

    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

    private void handleWorkspaceDirBrowseButtonSelected() {
        IContainer currentContainer= getContainer();
        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

     * the container field.
     */

    private void handleBrowse()
    {
        ContainerSelectionDialog dialog = new ContainerSelectionDialog(
                getShell(), ResourcesPlugin.getWorkspace().getRoot(), false,
                "Select new 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

Related Classes of org.eclipse.ui.dialogs.ContainerSelectionDialog

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.