Examples of findType()


Examples of org.eclipse.jdt.core.IJavaProject.findType()

    List<Template> result = new ArrayList<Template>();
    IJavaProject javaProject = JavaCore.create(editor.getProject());
    try {
      IParent parent;
      // Look for classes
      parent = javaProject.findType(fullClassName);
      if (parent != null) {
        return getAllMethodsTemplates((IType)parent, query, contextTypeId);
      }
      // Look for package fragments
      parent = getPackageFragment(javaProject, fullClassName);
View Full Code Here

Examples of org.eclipse.jdt.core.IJavaProject.findType()

   * @throws JavaModelException
   */
  protected IType getTypeOfAnnotation(IAnnotation anno, IType relative_type) throws JavaModelException {
    IJavaProject project = anno.getJavaProject();
    Pair<String,String> name = getQualifiedAnnoType(anno, relative_type);
    IType anno_type = project.findType(name.fst(), name.snd());
   
    return anno_type;
  }
 
  /**
 
View Full Code Here

Examples of org.eclipse.jdt.core.IJavaProject.findType()

   * @throws JavaModelException
   */
  protected IType getTypeOfAnnotation(IAnnotation anno, IType relative_type) throws JavaModelException {
    IJavaProject project = anno.getJavaProject();
    Pair<String,String> name = getQualifiedAnnoType(anno, relative_type);
    IType anno_type = project.findType(name.fst(), name.snd());
   
    return anno_type;
  }
 
  /**
 
View Full Code Here

Examples of org.eclipse.jdt.core.IJavaProject.findType()

    CompilationUnit node;

    project.open(null);

    IJavaProject javaProject = JavaCore.create(project);
    ICompilationUnit source = javaProject.findType(qualifiedCompUnitName)
        .getCompilationUnit();

    parser.setKind(ASTParser.K_COMPILATION_UNIT);
    parser.setSource(source);
    parser.setResolveBindings(true);
View Full Code Here

Examples of org.eclipse.jdt.core.IJavaProject.findType()

  @Override
  protected void finishPage(IProgressMonitor monitor) throws InterruptedException, CoreException {
    IPackageFragmentRoot fragmentRoot = m_mainPage.getPackageFragmentRoot();
    if (fragmentRoot != null) {
      IJavaProject project = fragmentRoot.getJavaProject();
      if (project != null && project.findType("junit.framework.TestCase") == null) {
        try {
          ProjectUtils.addPluginLibraries(project, "org.junit");
        } catch (Throwable e) {
          DesignerPlugin.log(e);
          throw new CoreException(new Status(IStatus.ERROR,
View Full Code Here

Examples of org.eclipse.jdt.core.IJavaProject.findType()

        return false;
      }
      // do tests
      if (PROPERTY_IS_CONFIGURED.equals(property)) {
        IJavaProject javaProject = element.getJavaProject();
        boolean hasJar = javaProject.findType("com.extjs.gxt.ui.client.widget.Component") != null;
        if (hasJar) {
          IJavaElement pkg = element.getAncestor(IJavaElement.PACKAGE_FRAGMENT);
          if (pkg != null) {
            IResource resource = pkg.getUnderlyingResource();
            ModuleDescription module = Utils.getSingleModule(resource);
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.env.INameEnvironment.findType()

              }
            }
            break;
          case IPackageFragmentRoot.K_BINARY:
            NameEnvironmentAnswer answer =
              nameEnvironment.findType(TypeConstants.PACKAGE_INFO_NAME, this.binding.compoundName);
            if (answer != null && answer.isBinaryType()) {
              IBinaryType type = answer.getBinaryType();
              char[][][] missingTypeNames = type.getMissingTypeNames();
              IBinaryAnnotation[] binaryAnnotations = type.getAnnotations();
              org.eclipse.jdt.internal.compiler.lookup.AnnotationBinding[] binaryInstances =
View Full Code Here

Examples of org.eclipse.jdt.internal.core.JavaProject.findType()

      }
      if (fragment != null) {
        return testedName;
      }
      try {
        fragment = project.findType(testedName);
      } catch (JavaModelException e) {
        return name;
      }
      if (fragment != null) {
        index = CharOperation.lastIndexOf(Signature.C_DOT, searchedName, 0, index - 1);
View Full Code Here

Examples of org.encog.bot.browse.range.Form.findType()

    Browser b = new Browser();
    b.navigate(new URL("http://www.httprecipes.com/1/7/get.php"));
    WebPage page = b.getCurrentPage();
    Assert.assertTrue( page.getTitle().getTextOnly().indexOf("HTTP")!=-1 );
    Form form = (Form)page.find(Form.class, 0);
    Input input1 = form.findType("text", 0);   
    input1.setValue("New York");
    b.navigate(form);
    page = b.getCurrentPage();
    Assert.assertTrue( page.getTitle().getTextOnly().indexOf("HTTP")!=-1 );
  }
View Full Code Here

Examples of org.springframework.expression.spel.support.StandardTypeLocator.findType()

    List<String> prefixes = locator.getImportPrefixes();
    assertEquals(1,prefixes.size());
    assertTrue(prefixes.contains("java.lang"));
    assertFalse(prefixes.contains("java.util"));

    assertEquals(Boolean.class,locator.findType("Boolean"));
    // currently does not know about java.util by default
//    assertEquals(java.util.List.class,locator.findType("List"));

    try {
      locator.findType("URL");
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.