Package org.objectstyle.wolips.bindings.wod

Examples of org.objectstyle.wolips.bindings.wod.TypeCache


  public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int _offset) {
    Set<WodCompletionProposal> completionProposalsSet = new TreeSet<WodCompletionProposal>();
    try {
      int offset = _offset;
      TypeCache typeCache = WodParserCache.getTypeCache();
      IDocument document = viewer.getDocument();
      IEditorInput input = _editor.getEditorInput();
      if (input instanceof IPathEditorInput) {
        IPathEditorInput pathInput = (IPathEditorInput) input;
        IPath path = pathInput.getPath();
View Full Code Here


  }

  private IType findDisplayGroupClass(String className)
      throws JavaModelException {
    IType classType = null;
    TypeCache typeCache = WodParserCache.getTypeCache();
    IJavaProject javaProject = JavaCore.create(_file.getProject());
    String typeName = typeCache.getApiCache(javaProject).getElementTypeNamed(className);
    if (typeName != null) {
      classType = javaProject.findType(typeName);
    } else {
      TypeNameCollector typeNameCollector = new TypeNameCollector("com.webobjects.appserver.WODisplayGroup", javaProject, true);
      BindingReflectionUtils.findMatchingElementClassNames(className, SearchPattern.R_EXACT_MATCH, typeNameCollector, null);
      if (!typeNameCollector.isEmpty()) {
        String matchingElementClassName = typeNameCollector.firstTypeName();
        classType = typeNameCollector.getTypeForClassName(matchingElementClassName);
      }
      if (classType != null) {
        typeCache.getApiCache(javaProject).setElementTypeForName(classType, className);
      }
    }
    return classType;
  }
View Full Code Here

TOP

Related Classes of org.objectstyle.wolips.bindings.wod.TypeCache

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.