@Test public void testNavTrees() throws Exception { NavTreeService service = Framework.getLocalService(NavTreeService.class); assertNotNull(service); List<NavTreeDescriptor> descs = service.getTreeDescriptors(); assertEquals(2, descs.size()); NavTreeDescriptor desc = descs.get(0); assertEquals("/incl/tag_cloud.xhtml", desc.getXhtmlview()); assertEquals("TAG_CLOUD", desc.getTreeId()); assertFalse(desc.isDirectoryTreeBased()); desc = descs.get(1); assertEquals("/incl/tag_cloud.xhtml", desc.getXhtmlview()); assertEquals("TAG_CLOUD_COMPAT", desc.getTreeId()); assertFalse(desc.isDirectoryTreeBased()); }
public List<NavTreeDescriptor> getTreeDescriptors() { return registry.getTreeDescriptors(getDirectoryTreeService()); }
NavTreeService extends DefaultComponent { public List<NavTreeDescriptor> getTreeDescriptors() { return registry.getTreeDescriptors(getDirectoryTreeService()); } }
NavTreeService extends DefaultComponent { public List<NavTreeDescriptor> getTreeDescriptors() { return registry.getTreeDescriptors(getDirectoryTreeService()); }  }
NavTreeService extends DefaultComponent { public List<NavTreeDescriptor> getTreeDescriptors() { return registry.getTreeDescriptors(getDirectoryTreeService()); }  @Override void activate(ComponentContext context); @Override void deactivate(ComponentContext context); @Override void registerContribution(Object contribution,
            String extensionPoint, ComponentInstance contributor); @Override void unregisterContribution(Object contribution,
            String extensionPoint, ComponentInstance contributor); List<NavTreeDescriptor> getTreeDescriptors(); @Override Long getLastModified(); }
NavTreeService extends DefaultComponent { public List<NavTreeDescriptor> getTreeDescriptors() { return registry.getTreeDescriptors(getDirectoryTreeService()); }  @Override void activate(ComponentContext context); @Override void deactivate(ComponentContext context); @Override void registerContribution(Object contribution,
            String extensionPoint, ComponentInstance contributor); @Override void unregisterContribution(Object contribution,
            String extensionPoint, ComponentInstance contributor); List<NavTreeDescriptor> getTreeDescriptors(); @Override Long getLastModified(); static String NAVTREE_EP; }