コード例 #1
0
 protected Collection<LogicalPath> getPaths(final boolean sourceOnly) {
   final Collection<LogicalPath> pathIds = new ArrayList<LogicalPath>();
   for (final Pom pom : pomManagementService.getPoms()) {
     for (final PhysicalPath modulePath : pom.getPhysicalPaths()) {
       if (!sourceOnly || modulePath.isSource()) {
         pathIds.add(modulePath.getLogicalPath());
       }
     }
   }
   return pathIds;
 }
コード例 #2
0
 public LogicalPath getFocusedPath(final Path path) {
   final PhysicalPath physicalPath = pomManagementService.getFocusedModule().getPhysicalPath(path);
   Assert.notNull(physicalPath, "Physical path for '" + path.name() + "' not found");
   return physicalPath.getLogicalPath();
 }