Examples of LocalizedComponentsLocateResult


Examples of org.objectstyle.wolips.locate.result.LocalizedComponentsLocateResult

            if (type != null) {
              IType woElementType = type.getJavaProject().findType("com.webobjects.appserver.WOElement", progressMonitor);
              if (woElementType != null) {
                ITypeHierarchy typeHierarchy = SuperTypeHierarchyCache.getTypeHierarchy(type, progressMonitor);
                if (typeHierarchy != null && typeHierarchy.contains(woElementType)) {
                  LocalizedComponentsLocateResult results = LocatePlugin.getDefault().getLocalizedComponentsLocateResult(resource);
                  IFile wodFile = results.getFirstWodFile();
                  if (wodFile != null && wodFile.exists()) {
                    wodFile.touch(progressMonitor);
                    validateWodFile(wodFile, progressMonitor);
                  }
                }
View Full Code Here

Examples of org.objectstyle.wolips.locate.result.LocalizedComponentsLocateResult

              else if (typeContainer instanceof ICompilationUnit) {
                // ICompilationUnit cu = (ICompilationUnit)
                // typeContainer;
                // IResource resource = cu.getCorrespondingResource();
                // String name = resource.getName();
                LocalizedComponentsLocateResult componentsLocateResults = LocatePlugin.getDefault().getLocalizedComponentsLocateResult(elementType.getJavaProject().getProject(), elementType.getElementName());
                IFile apiFile = componentsLocateResults.getDotApi();
                if (apiFile != null && apiFile.exists()) {
                  apiModel = new ApiModel(apiFile);
                }
              }
            }
View Full Code Here

Examples of org.objectstyle.wolips.locate.result.LocalizedComponentsLocateResult

   * @return the WodParserCache for the component
   * @throws CoreException if a core error occurs
   * @throws LocateException if a locate error occurs
   */
  public static WodParserCache parser(IProject project, String componentName) throws CoreException, LocateException {
    LocalizedComponentsLocateResult locateResult = LocatePlugin.getDefault().getLocalizedComponentsLocateResult(project, componentName);
    IFile resource = locateResult.getFirstWodFile();
    if (resource == null) {
      resource = locateResult.getFirstHtmlFile();
    }
    WodParserCache parserCache = WodParserCache.parser(resource, true);
    if (parserCache._componentsLocateResults == null) {
      parserCache._componentsLocateResults = locateResult;
    }
View Full Code Here

Examples of org.objectstyle.wolips.locate.result.LocalizedComponentsLocateResult

    Map<String, LocalizedComponentsLocateResult> projectHashMap = this.project(resource.getProject());
    if (projectHashMap == null) {
      return null;
    }
    String key = LocatePlugin.getDefault().fileNameWithoutExtension(resource);
    LocalizedComponentsLocateResult localizedComponentsLocateResult = projectHashMap.get(key);
    return localizedComponentsLocateResult;
  }
View Full Code Here

Examples of org.objectstyle.wolips.locate.result.LocalizedComponentsLocateResult

    Map<String, LocalizedComponentsLocateResult> projectHashMap = this.project(project);
    if (projectHashMap == null) {
      return null;
    }
    String key = LocatePlugin.getDefault().fileNameWithoutExtension(filenameWithoutExtension);
    LocalizedComponentsLocateResult localizedComponentsLocateResult = projectHashMap.get(key);
    return localizedComponentsLocateResult;
  }
View Full Code Here

Examples of org.objectstyle.wolips.locate.result.LocalizedComponentsLocateResult

  /*
   * may return null
   */
  private static ComponentEditorInput create(IFile file) throws CoreException {
    LocalizedComponentsLocateResult localizedComponentsLocateResult = null;
    try {
      localizedComponentsLocateResult = LocatePlugin.getDefault().getLocalizedComponentsLocateResult(file);
    } catch (CoreException e) {
      ComponentsPlugin.getDefault().log(e);
      return null;
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.