Package org.objectstyle.wolips.locate.scope

Examples of org.objectstyle.wolips.locate.scope.ComponentLocateScope


        if (startIndexWOComponent >= 0) {
          IJavaProject javaProject = this.getJavaProject();
          if (javaProject != null) {
            IFile wodFile = null;
            try {
              ComponentLocateScope componentLocateScope = ComponentLocateScope.createLocateScope(javaProject.getProject(), fileName);
              LocalizedComponentsLocateResult localizedComponentsLocateResult = new LocalizedComponentsLocateResult();
              Locate locate = new Locate(componentLocateScope, localizedComponentsLocateResult);
              locate.locate();
              wodFile = localizedComponentsLocateResult.getFirstWodFile();
            } catch (CoreException e) {
View Full Code Here


  public LocalizedComponentsLocateResult getLocalizedComponentsLocateResult(IProject project, String filenameWithoutExtension) throws CoreException, LocateException {
    LocalizedComponentsLocateResult localizedComponentsLocateResult = componentsLocateCache.getLocalizedComponentsLocateResult(project, filenameWithoutExtension);
    if (localizedComponentsLocateResult != null) {
      return localizedComponentsLocateResult;
    }
    ComponentLocateScope componentLocateScope = ComponentLocateScope.createLocateScope(project, filenameWithoutExtension);
    localizedComponentsLocateResult = new LocalizedComponentsLocateResult();
    Locate locate = new Locate(componentLocateScope, localizedComponentsLocateResult);
    locate.locate();
    if (componentsLocateCache != null) {
      componentsLocateCache.addToCache(project, filenameWithoutExtension, localizedComponentsLocateResult);
View Full Code Here

        }

        IRule rule = rulePosition.getRule();
        if (rule instanceof ElementTypeRule) {
          String elementTypeName = rulePosition.getText();
          ComponentLocateScope componentLocateScope = new ComponentLocateScope(project, elementTypeName, true);
          LocalizedComponentsLocateResult localizedComponentsLocateResult = new LocalizedComponentsLocateResult();
          Locate locate = new Locate(componentLocateScope, localizedComponentsLocateResult);
          locate.locate();

          IFile wodFile = localizedComponentsLocateResult.getFirstWodFile();
View Full Code Here

TOP

Related Classes of org.objectstyle.wolips.locate.scope.ComponentLocateScope

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.