Package org.eclipse.ui.dialogs

Examples of org.eclipse.ui.dialogs.ISelectionValidator


            @Override
            public void widgetSelected(SelectionEvent e) {
                final IProject project = getProject();
                ContainerSelectionDialog dialog = new ContainerSelectionDialog(getShell(), project, false, null);
                dialog.showClosedProjects(false);
                dialog.setValidator(new ISelectionValidator() {

                    @Override
                    public String isValid(Object selection) {

                        if (!(selection instanceof IPath)) {
View Full Code Here


                allowNewContainerName(), msg);
        if (title != null) {
      dialog.setTitle(title);
    }
        dialog.showClosedProjects(false);
        dialog.setValidator(new ISelectionValidator() {
     
      @Override
      public String isValid(Object selection) {
        if (!(selection instanceof IPath)) {
                    return "Please select a valid import location";
View Full Code Here

  {
    public void widgetSelected(SelectionEvent e)
    {
      ContainerSelectionDialog dialog = new ContainerSelectionDialog(
          getShell(), getProject(), false, "Select a working folder");
      dialog.setValidator(new ISelectionValidator()
      {
        public String isValid(Object selection)
        {
          if (selection.toString().indexOf(getProjectPath()) == 0)
            return null;
View Full Code Here

TOP

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

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.