Examples of newTypeHierarchy()


Examples of org.eclipse.jdt.core.IType.newTypeHierarchy()

      try {
        if (type != null && file.getProject().hasNature(JavaCore.NATURE_ID)) {
 
          // Make sure that JDT's type filter preferences are applied
          if (!TypeFilter.isFiltered(type)) {
            ITypeHierarchy hierachy = type.newTypeHierarchy(JavaCore.create(file.getProject()),
                new NullProgressMonitor());
            IType[] types = hierachy.getAllSubtypes(type);
            Map<String, IType> sortMap = new HashMap<String, IType>();
            for (IType foundType : types) {
              if ((foundType.getFullyQualifiedName().startsWith(prefix) || foundType.getElementName()
View Full Code Here

Examples of org.eclipse.jdt.core.IType.newTypeHierarchy()

  protected void handleButtonPressed(Button widget) {
    try {
      IType throwable = JdtUtils.getJavaType(WebflowUtils.getActiveWebflowConfig()
          .getProject().getProject(), "java.lang.Throwable");
      IJavaSearchScope searchScope = SearchEngine.createJavaSearchScope(throwable
          .newTypeHierarchy(new NullProgressMonitor()).getAllSubtypes(throwable));
      FilteredTypesSelectionDialog dialog = new FilteredTypesSelectionDialog(getShell(), false,
          new ProgressMonitorDialog(getShell()), searchScope, IJavaSearchConstants.CLASS);
      dialog.setBlockOnOpen(true);
      dialog.setTitle("Type Selection");
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.