Package org.eclipse.dltk.internal.ui.wizards

Examples of org.eclipse.dltk.internal.ui.wizards.TypedElementSelectionValidator


  }

  @SuppressWarnings("restriction")
  @Override
  public ISelectionStatusValidator getSelectionValidator() {
    return new TypedElementSelectionValidator(new Class[] {IType.class, INamespace.class}, false);
  }
View Full Code Here


    if (usedEntries == null) {
      throw new IllegalArgumentException();
    }

    Class[] acceptedClasses = new Class[] { IFile.class };
    TypedElementSelectionValidator validator = new TypedElementSelectionValidator(
        acceptedClasses, true);
    ArrayList usedPhars = new ArrayList(usedEntries.length);
    IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
    for (int i = 0; i < usedEntries.length; i++) {
      IResource resource = root.findMember(usedEntries[i]);
View Full Code Here

    if (initialEntry == null || usedEntries == null) {
      throw new IllegalArgumentException();
    }

    Class[] acceptedClasses = new Class[] { IFile.class };
    TypedElementSelectionValidator validator = new TypedElementSelectionValidator(
        acceptedClasses, false);

    ArrayList usedJars = new ArrayList(usedEntries.length);
    IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
    for (int i = 0; i < usedEntries.length; i++) {
View Full Code Here

  }

  // ---------- util method ------------
  private IContainer chooseContainer() {
    Class[] acceptedClasses = new Class[] { IProject.class, IFolder.class };
    ISelectionStatusValidator validator = new TypedElementSelectionValidator(
        acceptedClasses, false);
    IProject[] allProjects = fWorkspaceRoot.getProjects();
    ArrayList rejectedElements = new ArrayList(allProjects.length);
    IProject currProject = fCurrScriptProject.getProject();
    for (int i = 0; i < allProjects.length; i++) {
View Full Code Here

TOP

Related Classes of org.eclipse.dltk.internal.ui.wizards.TypedElementSelectionValidator

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.