Java 类org.eclipse.ui.dialogs.ContainerSelectionDialog 实例源码

项目:convertigo-eclipse    文件:SampleNewWizardPage.java   
/**
 * 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());
        }
    }
}
项目:limpet    文件:NewWizardPage.java   
/**
 * Uses the standard container selection dialog to choose the new value for the container field.
 */

private void handleBrowse()
{
  final ContainerSelectionDialog dialog =
      new ContainerSelectionDialog(getShell(), ResourcesPlugin.getWorkspace()
          .getRoot(), false, "Select new file container");
  if (dialog.open() == Window.OK)
  {
    final Object[] result = dialog.getResult();
    if (result.length == 1)
    {
      containerText.setText(((Path) result[0]).toString());
    }
  }
}
项目:mytourbook    文件:ResourceBundleNewWizardPage.java   
/**
 * Uses the standard container selection dialog to
 * choose the new value for the container field.
 */

/*default*/ void handleBrowse() {
    ContainerSelectionDialog dialog =
        new ContainerSelectionDialog(
            getShell(),
            ResourcesPlugin.getWorkspace().getRoot(),
            false,
            MessagesEditorPlugin.getString(
                    "editor.wiz.selectFolder")); //$NON-NLS-1$
    if (dialog.open() == Window.OK) {
        Object[] result = dialog.getResult();
        if (result.length == 1) {
            containerText.setText(((Path)result[0]).toOSString());
        }
    }
}
项目:mytourbook    文件:ResourceBundleNewWizardPage.java   
/**
 * Uses the standard container selection dialog to
 * choose the new value for the container field.
 */

/*default*/ void handleBrowse() {
    ContainerSelectionDialog dialog =
        new ContainerSelectionDialog(
            getShell(),
            ResourcesPlugin.getWorkspace().getRoot(),
            false,
            MessagesEditorPlugin.getString(
                    "editor.wiz.selectFolder")); //$NON-NLS-1$
    if (dialog.open() == Window.OK) {
        Object[] result = dialog.getResult();
        if (result.length == 1) {
            containerText.setText(((Path)result[0]).toOSString());
        }
    }
}
项目:mytourbook    文件:ResourceBundleNewWizardPage.java   
/**
 * Uses the standard container selection dialog to
 * choose the new value for the container field.
 */

/*default*/ void handleBrowse() {
    ContainerSelectionDialog dialog =
        new ContainerSelectionDialog(
            getShell(),
            ResourcesPlugin.getWorkspace().getRoot(),
            false,
            MessagesEditorPlugin.getString(
                    "editor.wiz.selectFolder")); //$NON-NLS-1$
    if (dialog.open() == Window.OK) {
        Object[] result = dialog.getResult();
        if (result.length == 1) {
            containerText.setText(((Path)result[0]).toOSString());
        }
    }
}
项目:anatlyzer    文件:ExplanationComposite.java   
public void saveWitness(AtlProblemExplanation explanation) {
    IWitnessModel witness = explanation.getWitness();
    if ( witness != null ) {

        ContainerSelectionDialog dialog = new ContainerSelectionDialog(getShell(), null, true, "Select a folder to save the witness");
        dialog.setTitle("Container Selection");
        if ( dialog.open() == Window.OK ) {
            Resource r = witness.getModelAsOriginal();

            Object[] files = dialog.getResult();
            if ( files.length > 0 ) {
                String path = ResourcesPlugin.getWorkspace().getRoot().getFile(((Path) files[0]).append("witness.xmi")).getLocation().toOSString();
                try {
                    r.save(new FileOutputStream(path), null);
                    System.out.println("Witness saved: " + path);
                } catch (IOException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
                    throw new RuntimeException(e);
                }
            }

        }
    }
}
项目:dawnsci    文件:H5ResourcePage.java   
/**
   * Queries the user to supply a container resource.
   *
   * @return the path to an existing or new container, or <code>null</code> if the
   *    user cancelled the dialog
   */
  protected IPath queryForContainer(IContainer initialSelection, String msg,
          String title) {
      ContainerSelectionDialog dialog = new ContainerSelectionDialog(
              getControl().getShell(), initialSelection,
              false, msg);
      if (title != null) {
    dialog.setTitle(title);
}
      dialog.showClosedProjects(false);
      dialog.open();
      Object[] result = dialog.getResult();
      if (result != null && result.length == 1) {
          return (IPath) result[0];
      }
      return null;
  }
项目:birt    文件:IDEResourcePageHelper.java   
protected void handleBrowseWorkspace( )
{
    ContainerSelectionDialog dialog = new ContainerSelectionDialog( getControl( ).getShell( ),
            ResourcesPlugin.getWorkspace( ).getRoot( ),
            true,
            ContainerSelectionDialog_Message );
    if ( dialog.open( ) == Window.OK )
    {
        Object[] result = dialog.getResult( );
        if ( result.length == 0 )
            return;
        IPath path = (IPath) result[0];
        //fLocationText.setText("${workspace_loc:" + path.makeRelative().toString() + "}"); //$NON-NLS-1$ //$NON-NLS-2$
        notifyTextChange( "${workspace_loc:" //$NON-NLS-1$
                + path.makeRelative( ).toString( )
                + "}" ); //$NON-NLS-1$
    }
}
项目:Pydev    文件:PyMoveResourceAction.java   
private IPath pyQueryDestinationResource() {
    // start traversal at root resource, should probably start at a
    // better location in the tree
    String title;
    if (selected.size() == 1) {
        title = "Choose destination for ''" + selected.get(0).getName() + "'':";
    } else {
        title = "Choose destination for " + selected.size() + " selected resources:";
    }
    ContainerSelectionDialog dialog = new ContainerSelectionDialog(shellProvider.getShell(),
            selected.get(0).getParent(), true, title);
    dialog.setTitle("Move Resources");
    dialog.setValidator(this);
    dialog.showClosedProjects(false);
    dialog.open();
    Object[] result = dialog.getResult();
    if (result != null && result.length == 1) {
        return (IPath) result[0];
    }
    return null;
}
项目:Pydev    文件:WorkingDirectoryBlock.java   
/**
 * Show a dialog that lets the user select a working directory from 
 * the workspace
 */
private void handleWorkspaceDirBrowseButtonSelected() {
    IContainer currentContainer = getContainer();
    if (currentContainer == null) {
        currentContainer = ResourcesPlugin.getWorkspace().getRoot();
    }
    ContainerSelectionDialog dialog = new ContainerSelectionDialog(getShell(), currentContainer, false,
            "Select a workspace relative working directory");
    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$
    }
}
项目:Pydev    文件:PyCodeCoverageView.java   
@Override
public void run() {
    ContainerSelectionDialog dialog = new ContainerSelectionDialog(getSite().getShell(), null, false,
            "Choose folder to be analyzed in the code-coverage");
    dialog.showClosedProjects(false);
    if (dialog.open() != Window.OK) {
        return;
    }
    Object[] objects = dialog.getResult();
    if (objects.length == 1) { //only one folder can be selected
        if (objects[0] instanceof IPath) {
            IPath p = (IPath) objects[0];

            IWorkspace w = ResourcesPlugin.getWorkspace();
            IContainer folderForLocation = (IContainer) w.getRoot().findMember(p);
            setSelectedContainer(folderForLocation);
        }
    }
}
项目:DialogScriptDSL    文件:DialogScriptSelectionAdapter.java   
/**
 * Uses the standard container selection dialog to choose the new value for
 * the container field.
 */
public void handleBrowse() {
  IWorkspace _workspace = ResourcesPlugin.getWorkspace();
  IWorkspaceRoot _root = _workspace.getRoot();
  ContainerSelectionDialog _containerSelectionDialog = new ContainerSelectionDialog(this.shell, _root, false, 
    "Select new file container");
  final ContainerSelectionDialog dialog = _containerSelectionDialog;
  int _open = dialog.open();
  boolean _equals = (_open == ContainerSelectionDialog.OK);
  if (_equals) {
    final Object[] result = dialog.getResult();
    int _length = result.length;
    boolean _equals_1 = (_length == 1);
    if (_equals_1) {
      Object _get = result[0];
      String _string = ((Path) _get).toString();
      this.containerText.setText(_string);
    }
  }
}
项目:cuina    文件:MapCreationPage.java   
private void selectFolder()
{
    ContainerSelectionDialog chooser = new ContainerSelectionDialog(
            getShell(), folder, false, "Wähle ein Verzeichnis");
    chooser.showClosedProjects(false);
    if (chooser.open() != Window.OK) return;

    Object[] results = chooser.getResult();
    if(results.length == 1)
    {
        if(results[0] instanceof IPath)
        {
            IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
            URI uri = root.findMember((IPath)results[0]).getLocationURI();

            IContainer[] folders = root.findContainersForLocationURI(uri);
            if(folders != null && folders.length > 0)
            {
                folder = (IFolder) folders[0];
                inFolder.setText((folder != null) ? folder.getFullPath().toString() : "");
                update();
            }
        }
    }
}
项目:eclipse-rbe    文件:ResourceBundleNewWizardPage.java   
/**
 * Uses the standard container selection dialog to
 * choose the new value for the container field.
 */

/*default*/ void handleBrowse() {
    ContainerSelectionDialog dialog =
        new ContainerSelectionDialog(
            getShell(),
            ResourcesPlugin.getWorkspace().getRoot(),
            false,
            RBEPlugin.getString(
                    "editor.wiz.selectFolder")); //$NON-NLS-1$
    if (dialog.open() == Window.OK) {
        Object[] result = dialog.getResult();
        if (result.length == 1) {
            containerText.setText(((Path)result[0]).toOSString());
        }
    }
}
项目:neoscada    文件:NewArchiveWizardPage.java   
/**
 * Uses the standard container selection dialog to choose the new value for the container field.
 */

private void handleBrowse ()
{
    final ContainerSelectionDialog dialog = new ContainerSelectionDialog ( getShell (), ResourcesPlugin.getWorkspace ().getRoot (), false, "Select new file container" );
    if ( dialog.open () == Window.OK )
    {
        final Object[] result = dialog.getResult ();
        if ( result.length == 1 )
        {
            this.containerText.setText ( ( (Path)result[0] ).toString () );
        }
    }
}
项目:Open_Source_ECOA_Toolset_AS5    文件:CompImplMainPage.java   
/**
 * 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]).toString());
        }
    }
}
项目:Open_Source_ECOA_Toolset_AS5    文件:IntDeploymentMainPage.java   
/**
 * 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]).toString());
        }
    }
}
项目:Open_Source_ECOA_Toolset_AS5    文件:TypesMainPage.java   
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());
        }
    }
}
项目:Open_Source_ECOA_Toolset_AS5    文件:IntLogicalSysMainPage.java   
/**
 * 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]).toString());
        }
    }
}
项目:Open_Source_ECOA_Toolset_AS5    文件:ServicesMainPage.java   
/**
 * 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]).toString());
        }
    }
}
项目:Open_Source_ECOA_Toolset_AS5    文件:FinalAssemblyMainPage.java   
/**
 * 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]).toString());
        }
    }
}
项目:Open_Source_ECOA_Toolset_AS5    文件:CompDefMainPage.java   
/**
 * 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]).toString());
        }
    }
}
项目:Open_Source_ECOA_Toolset_AS5    文件:InitAssemblyMainPage.java   
/**
 * 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]).toString());
        }
    }
}
项目:ec4e    文件:NewEditorConfigFileWizardPage.java   
/**
 * 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,
            EditorConfigMessages.NewEditorConfigFileWizardPage_containerSelectionDialog_title);
    if (dialog.open() == ContainerSelectionDialog.OK) {
        Object[] result = dialog.getResult();
        if (result.length == 1) {
            folderText.setText(((Path) result[0]).toString());
        }
    }
}
项目:visuflow-plugin    文件:TargetHandlerDialog.java   
/**
 * 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) {
            containerSourceText.setText(((Path) result[0]).toString());
        }
    }
}
项目:visuflow-plugin    文件:TargetHandlerDialog.java   
private void handleBrowse2() {
    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) {
            containerTargetText.setText(((Path) result[0]).toString());
        }
    }
}
项目:visuflow-plugin    文件:WizardPageHandler.java   
/**
 * This method handles project selection. It displays the user, all the projects in current workspace and let user
 * select the project
 **/
private void handleProjectBrowse() {
    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) {
            containerTargetText.setText(((Path) result[0]).toString());
        }
    }
}
项目:bdf2    文件:SampleNewWizardPage.java   
/**
 * 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]).toString());
        }
    }
}
项目:DarwinSPL    文件:DwprofileNewFileWizardPage.java   
/**
 * 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]).toString());
        }
    }
}
项目:DarwinSPL    文件:HyexpressionNewFileWizardPage.java   
/**
 * 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]).toString());
        }
    }
}
项目:DarwinSPL    文件:HyvalidityformulaNewFileWizardPage.java   
/**
 * 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]).toString());
        }
    }
}
项目:DarwinSPL    文件:HydatavalueNewFileWizardPage.java   
/**
 * 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]).toString());
        }
    }
}
项目:DarwinSPL    文件:HymappingNewFileWizardPage.java   
/**
 * 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]).toString());
        }
    }
}
项目:DarwinSPL    文件:HyconstraintsNewFileWizardPage.java   
/**
 * 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]).toString());
        }
    }
}
项目:DarwinSPL    文件:HymanifestNewFileWizardPage.java   
/**
 * 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]).toString());
        }
    }
}
项目:uml2solidity    文件:AbstractUml2SolidityLaunchConfigurationTab.java   
public void handleChooseContainer(Text base_target_text,String dialogTitel) {
    IContainer initialRoot = toContainer(base_target_text.getText());
    ContainerSelectionDialog containerSelectionDialog = new ContainerSelectionDialog(getShell(),
            initialRoot, false, dialogTitel);
    containerSelectionDialog.open();
    Object[] result = containerSelectionDialog.getResult();
    if (result != null && result.length == 1) {
        IPath container = (IPath) result[0];
        base_target_text.setText(container.toString());
    }
    validatePage();
}
项目:hybris-commerce-eclipse-plugin    文件:NewImpexWizardPage.java   
private void handleBrowse() {
    ContainerSelectionDialog dialog = new ContainerSelectionDialog(getShell(), ResourcesPlugin.getWorkspace()
                    .getRoot(), false, "Select Project/Folder");
    if (dialog.open() == ContainerSelectionDialog.OK) {
        Object[] result = dialog.getResult();
        if (result.length == 1) {
            containerText.setText(((Path) result[0]).toString());
        }
    }
}
项目:ncl30-eclipse    文件:NCLNewWizardPage.java   
/**
 * Uses the standard container selection dialog to choose the new value for
 * the container field.
 */

protected 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());
        }
    }
}
项目:fluentmark    文件:FluentMkNewWizardPage.java   
/**
 * 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]).toString());
        }
    }
}
项目:typescript.java    文件:NewClassWizardPage.java   
/**
 * 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]).toString());
        }
    }
}