139140141142143144145
Collection<NbGradleProjectTree> subProjects) { String[] names = fullName.split(":"); String name = names.length > 0 ? names[names.length - 1] : ""; GenericProjectProperties properties = new GenericProjectProperties(name, fullName, new File("")); return new NbGradleProjectTree(properties, tasks, subProjects); }
183184185186187188189190
gradleTasks(fullName, "rootTask1", "rootTask2"), Arrays.asList(sub1(), sub2())); } private static NbGradleMultiProjectDef createDummyProject() { NbGradleProjectTree root = rootProject(); return new NbGradleMultiProjectDef(root, root); }
7980818283848586878889
}); } @Override public void stateChanged(ChangeEvent e) { NbGradleProjectTree newTree = project.getAvailableModel().getMainProject(); NbGradleProjectTree prevTree = lastTree.getAndSet(newTree); if (hasRelevantDifferences(prevTree, newTree)) { refresh(false); } }
110111112113114115116117118119120
return true; } Map<String, NbGradleProjectTree> children2Map = getChildrenMap2(tree2); for (NbGradleProjectTree subTree1: children1) { NbGradleProjectTree subTree2 = children2Map.get(subTree1.getProjectName()); if (subTree2 == null) { return false; } if (!equalsTree(subTree1, subTree2)) {
127128129130131132133134135136137
} return false; } private static boolean isTaskExists(NbGradleMultiProjectDef project, String projectPath, String taskName) { NbGradleProjectTree taskProject = findProject(project, projectPath); if (taskProject == null) { return false; } return isProjectHasTask(taskProject, taskName);