Package dtool.ast.declarations

Examples of dtool.ast.declarations.ModuleProxy


      }
    }
  }
 
  public ModuleProxy getModuleProxy(IModuleResolver mr) {
    return new ModuleProxy(getRefModuleFullyQualifiedName(), mr);
  }
View Full Code Here


 
  public void doSearch_forPrefixSearch(PrefixDefUnitSearch search) {
    String prefix = search.searchOptions.searchPrefix;
   
    for (String fqName : search.findModulesWithPrefix(prefix)) {
      search.addMatchDirectly(new ModuleProxy(fqName, search.getModuleResolver()));
    }
   
  }
View Full Code Here

      doSearch_forPrefixSearch(prefixDefUnitSearch);
    } else {
      assertTrue(isMissingCoreReference() == false);
      DefUnitSearch defUnitSearch = (DefUnitSearch) search;
      IModuleResolver mr = search.getModuleResolver();
      ModuleProxy moduleProxy = getModuleProxy(mr);
      if(moduleProxy.resolveDefUnit() != null) {
        defUnitSearch.addMatch(moduleProxy);
      }
    }
  }
View Full Code Here

  @Test
  public void testBasic() throws Exception { testBasic$(); }
  public void testBasic$() throws Exception {
   
    INamedElement defElement;
    defElement = new ModuleProxy("foo", null);
    assertEquals(TextUI.getLabelForHoverSignature(defElement), "foo");
    assertEquals(DeeElementLabelProvider.getLabelForContentAssistPopup(defElement), "foo");
   
    defElement = new ModuleProxy("pack.mod", null);
    assertEquals(TextUI.getLabelForHoverSignature(defElement), "pack.mod");
    assertEquals(DeeElementLabelProvider.getLabelForContentAssistPopup(defElement), "mod");
   
    defElement = new ModuleProxy("pack.sub.mod", null);
    assertEquals(TextUI.getLabelForHoverSignature(defElement), "pack.sub.mod");
    assertEquals(DeeElementLabelProvider.getLabelForContentAssistPopup(defElement), "mod");
   
   
    defElement = PackageNamespace.createPartialDefUnits(array("pack"), new ModuleProxy("modA", null));
    assertEquals(TextUI.getLabelForHoverSignature(defElement), "pack");
    assertEquals(DeeElementLabelProvider.getLabelForContentAssistPopup(defElement), "pack");

    defElement = PackageNamespace.createPartialDefUnits(array("pack", "sub"), new ModuleProxy("modA", null));
    assertEquals(TextUI.getLabelForHoverSignature(defElement), "pack");
    assertEquals(DeeElementLabelProvider.getLabelForContentAssistPopup(defElement), "pack");
   
   
    DefUnitSearch search = new DefUnitSearch("int", null, -1, true, new NullModuleResolver());
View Full Code Here

TOP

Related Classes of dtool.ast.declarations.ModuleProxy

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.