Package org.eclipse.ui.dialogs

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


        dialog.setMessage("Select a project:");
        dialog.setComparator(new ViewerComparator());

        dialog.setInput(ResourcesPlugin.getWorkspace().getRoot());

        if (dialog.open() == Window.OK)
        {
          if (dialog.getFirstResult() != null
              && dialog.getFirstResult() instanceof IProject

          )
View Full Code Here


        dialog.setMessage("Select a project:");
        dialog.setComparator(new ViewerComparator());

        dialog.setInput(ResourcesPlugin.getWorkspace().getRoot());

        if (dialog.open() == Window.OK)
        {
          if (dialog.getFirstResult() != null
              && dialog.getFirstResult() instanceof IProject

          )
View Full Code Here

        dialog.setMessage("Select a scenario:");
        dialog.setComparator(new ViewerComparator());
        dialog.addFilter(new FileExtensionFilter("script", "script2"));
        dialog.setInput(ResourcesPlugin.getWorkspace().getRoot().getProject(fProjectText.getText()).getFolder("scenarios"));

        if (dialog.open() == Window.OK)
        {
          if (dialog.getFirstResult() != null)
          {
            fScenarioText.setText(((IFile) dialog.getFirstResult()).getProjectRelativePath().toString());
            removeScenarioButton.setEnabled(true);
View Full Code Here

        dialog.setMessage("Select a 20-Sim Model:");
        dialog.setComparator(new ViewerComparator());
        dialog.addFilter(new FileExtensionFilter("emx"));
        dialog.setInput(ResourcesPlugin.getWorkspace().getRoot().getProject(fProjectText.getText()).getFolder("model_ct"));

        if (dialog.open() == Window.OK)
        {
          if (dialog.getFirstResult() != null)
          {
            ctPath.setText(((IFile) dialog.getFirstResult()).getProjectRelativePath().toString());
View Full Code Here

          }
        });

        dialog.setInput(ResourcesPlugin.getWorkspace().getRoot());

        if (dialog.open() == Window.OK)
        {
          if (dialog.getFirstResult() != null
              && dialog.getFirstResult() instanceof IProject

          )
View Full Code Here

            {
              dialog.setInput(project.getFolder("model_de/architectures"));
            }
          }
        }
        if (dialog.open() == Window.OK)
        {
          if (dialog.getFirstResult() != null)
          {
            fArchitecturePathText.setText(((IFile) dialog.getFirstResult()).getProjectRelativePath().toString());
View Full Code Here

          }
        });

        dialog.setInput(ResourcesPlugin.getWorkspace().getRoot());

        if (dialog.open() == Window.OK)
        {
          if (dialog.getFirstResult() != null
              && dialog.getFirstResult() instanceof IProject

          )
View Full Code Here

          IProject project = getProject();
          dialog.setInput(project);
        }
         
       
        if (dialog.open() == Window.OK)
        {
          if (dialog.getFirstResult() != null)
          {
            fPathToConfigsText.setText(((IFolder) dialog.getFirstResult()).getProjectRelativePath().toString());
View Full Code Here

        } catch (CoreException e1)
        {
          DestecsDebugPlugin.log(e1);
        }

        if (dialog.open() == Window.OK)
        {
          if (dialog.getFirstResult() != null
              && dialog.getFirstResult() instanceof ILaunchConfiguration

          )
View Full Code Here

      public IStatus validate(Object[] selection) {
        return (selection.length == 1 && selection[0] instanceof IFile) ? SELECTION_OK_STATUS : SELECTION_NOT_OK_STATUS;
      }
    });
   
    etsd.open();
   
    Object[] results = etsd.getResult();
    if (results.length == 1) {
      if (results[0] instanceof IFile) {
        return ((IFile)results[0]).getProjectRelativePath().toPortableString();
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.