IDEA-76142: Gradle support - cannot update IDEA projects once one of build.gradle files changes

Cleanup
This commit is contained in:
Denis.Zhdanov
2012-03-11 10:42:36 +04:00
parent f4f67d59cb
commit efd7e800e7
6 changed files with 9 additions and 10 deletions
@@ -16,7 +16,6 @@ public abstract class GradleAbstractDependencyStructureChangesCalculator<G exten
{
@Override
public void calculate(@NotNull G gradleEntity, @NotNull I intellijEntity, @NotNull GradleChangesCalculationContext context) {
// TODO den process common dependency properties here.
doCalculate(gradleEntity, intellijEntity, context);
}
@@ -17,7 +17,6 @@ public class GradleContentRootStructureChangesCalculator
@NotNull ModuleAwareContentRoot intellijEntity,
@NotNull GradleChangesCalculationContext context)
{
// TODO den implement content root conflict changes here.
}
@NotNull
@@ -56,7 +56,6 @@ public class GradleModuleStructureChangesCalculator implements GradleStructureCh
@NotNull Module intellijEntity,
@NotNull GradleChangesCalculationContext context)
{
//TODO den process module-local settings
// Content roots.
final Collection<GradleContentRoot> gradleContentRoots = gradleEntity.getContentRoots();
final Collection<ModuleAwareContentRoot> intellijContentRoots = context.getPlatformFacade().getContentRoots(intellijEntity);
@@ -171,7 +171,7 @@ public class GradleApiFacadeManager {
final GeneralCommandLine commandLine = JdkUtil.setupJVMCommandLine(
((JavaSdkType)sdk.getSdkType()).getVMExecutablePath(sdk),
params,
false // TODO den check
false
);
final OSProcessHandler processHandler = new OSProcessHandler(commandLine.createProcess(), commandLine.getCommandLineString()) {
@Override
@@ -241,11 +241,9 @@ public class GradleProjectStructureTreeModel extends DefaultTreeModel {
}
private void processNewProjectRenameChange(@NotNull GradleProjectRenameChange change) {
// TODO den implement
}
private void processNewLanguageLevelChange(@NotNull GradleLanguageLevelChange change) {
// TODO den implement
}
private void processNewMismatchedLibraryPathChange(@NotNull GradleMismatchedLibraryPathChange change) {
@@ -325,11 +323,9 @@ public class GradleProjectStructureTreeModel extends DefaultTreeModel {
}
private void processObsoleteProjectRenameChange(@NotNull GradleProjectRenameChange change) {
// TODO den implement
}
private void processObsoleteLanguageLevelChange(@NotNull GradleLanguageLevelChange change) {
// TODO den implement
}
private void processObsoleteMismatchedLibraryPathChange(@NotNull GradleMismatchedLibraryPathChange change) {
@@ -256,8 +256,14 @@ public class GradleUtil {
}
return file.getPath();
}
// TODO den add doc about relative coordinates
/**
* Allows to calculate the position to use for showing hint for the given node of the given tree.
*
* @param node target node for which a hint should be shown
* @param tree target tree that contains given node
* @return preferred hint position (in coordinates relative to the given tree)
*/
@NotNull
public static Point getHintPosition(@NotNull GradleProjectStructureNode<?> node, @NotNull Tree tree) {
final Rectangle bounds = tree.getPathBounds(new TreePath(node.getPath()));