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

Gradle tool window is shown all the time when 'gradle' plugin is enabled (used to be hidden because there were no content)
This commit is contained in:
Denis.Zhdanov
2012-01-30 16:40:48 +04:00
parent 107d63d7fc
commit ab99be7396
@@ -15,7 +15,7 @@ import org.jetbrains.plugins.gradle.ui.GradleIcons;
import org.jetbrains.plugins.gradle.util.GradleBundle;
/**
* // TODO den add doc
* Encapsulates initialisation routine of the gradle integration.
*
* @author Denis Zhdanov
* @since 11/3/11 4:01 PM
@@ -42,10 +42,6 @@ public class GradleBootstrap extends AbstractProjectComponent {
}
private void initToolWindow() {
// TODO den don't show tool window if no gradle project is associated with the current project.
if (!Boolean.getBoolean("gradle.show.tool.window")) {
return;
}
final ToolWindowManagerEx manager = ToolWindowManagerEx.getInstanceEx(myProject);
ToolWindow toolWindow = manager.registerToolWindow(GRADLE_TOOL_WINDOW_ID, false, ToolWindowAnchor.RIGHT);
toolWindow.setIcon(GradleIcons.GRADLE_ICON);