remove unused ModuleType/Builder#getBigIcon and the related icons

This commit is contained in:
peter
2017-03-14 15:34:11 +01:00
parent 7cdf106e57
commit a09fc34ef2
40 changed files with 5 additions and 71 deletions
@@ -66,11 +66,6 @@ public class JavaModuleType extends ModuleType<JavaModuleBuilder> {
return ProjectBundle.message("module.type.java.description");
}
@Override
public Icon getBigIcon() {
return getJavaModuleIcon();
}
@Override
public Icon getNodeIcon(boolean isOpened) {
return getJavaModuleNodeIconClosed();
@@ -83,10 +78,6 @@ public class JavaModuleType extends ModuleType<JavaModuleBuilder> {
moduleBuilder::isSuitableSdkType);
}
private static Icon getJavaModuleIcon() {
return AllIcons.Modules.Types.JavaModule;
}
private static Icon getJavaModuleNodeIconClosed() {
return AllIcons.Nodes.Module;
}
@@ -73,11 +73,6 @@ public class CloudModuleBuilder extends JavaModuleBuilder {
return getClass().getName();
}
@Override
public Icon getBigIcon() {
return AllIcons.General.Balloon;
}
@Override
public Icon getNodeIcon() {
return AllIcons.General.Balloon;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 210 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 327 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 315 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 199 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 348 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 638 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 412 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 807 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 582 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 712 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 712 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

@@ -344,10 +344,6 @@ public abstract class ModuleBuilder extends AbstractModuleBuilder {
return null;
}
public Icon getBigIcon() {
return getModuleType().getBigIcon();
}
public Icon getNodeIcon() {
return getModuleType().getNodeIcon(false);
}
@@ -48,7 +48,6 @@ public abstract class ModuleType<T extends ModuleBuilder> {
public abstract String getName();
@NotNull
public abstract String getDescription();
public abstract Icon getBigIcon();
public Icon getIcon() {
return getNodeIcon(false);
@@ -58,11 +58,6 @@ public class EmptyModuleType extends ModuleType<EmptyModuleBuilder> {
return ProjectBundle.message("module.type.empty.description");
}
@Override
public Icon getBigIcon() {
return AllIcons.Modules.Types.EmptyProjectType;
}
@Override
public Icon getNodeIcon(boolean isOpened) {
return AllIcons.Nodes.Module;
@@ -51,11 +51,6 @@ public class UnknownModuleType extends ModuleType {
return myModuleType.getDescription();
}
@Override
public Icon getBigIcon() {
return myModuleType.getBigIcon();
}
@Override
public Icon getNodeIcon(boolean isOpened) {
return myModuleType.getIcon();
@@ -45,11 +45,6 @@ public abstract class WebModuleTypeBase<T extends ModuleBuilder> extends ModuleT
return ProjectBundle.message("module.web.description");
}
@Override
public Icon getBigIcon() {
return AllIcons.Modules.Types.WebModule;
}
@Override
public Icon getNodeIcon(final boolean isOpened) {
return AllIcons.Nodes.Module;
@@ -821,13 +821,7 @@ public class AllIcons {
public static final Icon TestSourceFolder = IconLoader.getIcon("/modules/testSourceFolder.png"); // 16x16
public static class Types {
public static final Icon EjbModule = IconLoader.getIcon("/modules/types/ejbModule.png"); // 24x24
public static final Icon EmptyProjectType = IconLoader.getIcon("/modules/types/emptyProjectType.png"); // 24x24
public static final Icon JavaeeAppModule = IconLoader.getIcon("/modules/types/JavaeeAppModule.png"); // 24x24
public static final Icon JavaModule = IconLoader.getIcon("/modules/types/javaModule.png"); // 24x24
public static final Icon PluginModule = IconLoader.getIcon("/modules/types/pluginModule.png"); // 24x24
public static final Icon UserDefined = IconLoader.getIcon("/modules/types/userDefined.png"); // 16x16
public static final Icon WebModule = IconLoader.getIcon("/modules/types/webModule.png"); // 24x24
}
public static final Icon UnmarkWebroot = IconLoader.getIcon("/modules/unmarkWebroot.png"); // 16x16
@@ -67,10 +67,6 @@ public class PluginModuleType extends ModuleType<PluginModuleBuilder> {
return DevKitBundle.message("module.description");
}
public Icon getBigIcon() {
return AllIcons.Modules.Types.PluginModule;
}
public Icon getNodeIcon(boolean isOpened) {
return AllIcons.Nodes.Plugin;
}
@@ -30,7 +30,6 @@ public class JetgroovyIcons {
public static class Griffon {
public static final Icon Griffon_icon_24x24 = load("/icons/griffon/griffon-icon-24x24.png"); // 24x24
public static final Icon Griffon = load("/icons/griffon/griffon.png"); // 16x16
public static final Icon GriffonToolWindow = load("/icons/griffon/griffonToolWindow.png"); // 13x13
@@ -58,7 +57,6 @@ public class JetgroovyIcons {
public static final Icon Groovy_outsideSources = load("/icons/groovy/groovy_outsideSources.png"); // 16x16
public static final Icon GroovyDoc = load("/icons/groovy/GroovyDoc.png"); // 16x16
public static final Icon GroovyFile = load("/icons/groovy/groovyFile.png"); // 16x16
public static final Icon GroovyModule = load("/icons/groovy/groovyModule.png"); // 24x24
public static final Icon Interface = load("/icons/groovy/interface.png"); // 16x16
public static final Icon Method = load("/icons/groovy/method.png"); // 16x16
public static final Icon Property = load("/icons/groovy/property.png"); // 16x16
Binary file not shown.

Before

Width:  |  Height:  |  Size: 469 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 939 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 955 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 487 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 319 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 587 B

@@ -35,18 +35,16 @@ public class GroovyAwareModuleBuilder extends JavaModuleBuilder {
private final String myBuilderId;
private final String myPresentableName;
private final String myDescription;
private final Icon myBigIcon;
@SuppressWarnings("UnusedDeclaration")
public GroovyAwareModuleBuilder() {
this("groovy", "Groovy", "Simple module with attached Groovy library", JetgroovyIcons.Groovy.GroovyModule);
this("groovy", "Groovy", "Simple module with attached Groovy library");
}
protected GroovyAwareModuleBuilder(String builderId, String presentableName, String description, Icon bigIcon) {
protected GroovyAwareModuleBuilder(String builderId, String presentableName, String description) {
myBuilderId = builderId;
myPresentableName = presentableName;
myDescription = description;
myBigIcon = bigIcon;
}
@Nullable
@@ -65,11 +63,6 @@ public class GroovyAwareModuleBuilder extends JavaModuleBuilder {
return myBuilderId;
}
@Override
public Icon getBigIcon() {
return myBigIcon;
}
@Override
public Icon getNodeIcon() {
return JetgroovyIcons.Groovy.Groovy_16x16;
@@ -10,7 +10,7 @@ import javax.swing.*;
*/
public class GriffonModuleBuilder extends MvcModuleBuilder {
public GriffonModuleBuilder() {
super(GriffonFramework.getInstance(), JetgroovyIcons.Griffon.Griffon_icon_24x24);
super(GriffonFramework.getInstance());
}
@Override
@@ -17,17 +17,15 @@ package org.jetbrains.plugins.groovy.mvc;
import org.jetbrains.plugins.groovy.config.GroovyAwareModuleBuilder;
import javax.swing.*;
/**
* @author peter
*/
public class MvcModuleBuilder extends GroovyAwareModuleBuilder {
private final MvcFramework myFramework;
protected MvcModuleBuilder(MvcFramework framework, Icon bigIcon) {
protected MvcModuleBuilder(MvcFramework framework) {
super(framework.getFrameworkName(), framework.getDisplayName(),
framework.getDisplayName() + " modules are used for creating <b>" + framework.getDisplayName() + "</b> applications.", bigIcon);
framework.getDisplayName() + " modules are used for creating <b>" + framework.getDisplayName() + "</b> applications.");
myFramework = framework;
}
@@ -15,7 +15,6 @@
*/
package org.jetbrains.idea.maven.wizards;
import com.intellij.icons.AllIcons;
import com.intellij.ide.util.projectWizard.*;
import com.intellij.openapi.Disposable;
import com.intellij.openapi.module.JavaModuleType;
@@ -116,11 +115,6 @@ public class MavenModuleBuilder extends ModuleBuilder implements SourcePathsBuil
"You can create either a blank Maven module or a module based on a <b>Maven archetype</b>.";
}
@Override
public Icon getBigIcon() {
return AllIcons.Modules.Types.JavaModule;
}
@Override
public Icon getNodeIcon() {
return MavenIcons.MavenLogo;
-1
View File
@@ -67,7 +67,6 @@ public class PythonIcons {
public static final Icon Pypy = load("/icons/com/jetbrains/python/pypy.png"); // 16x16
public static final Icon Python_logo = load("/icons/com/jetbrains/python/python-logo.png"); // 16x16
public static final Icon Python = load("/icons/com/jetbrains/python/python.png"); // 16x16
public static final Icon Python_24 = load("/icons/com/jetbrains/python/python_24.png"); // 24x24
public static final Icon PythonClosed = load("/icons/com/jetbrains/python/pythonClosed.png"); // 16x16
public static final Icon PythonConsole = load("/icons/com/jetbrains/python/pythonConsole.png"); // 16x16
public static final Icon PythonConsoleToolWindow = load("/icons/com/jetbrains/python/pythonConsoleToolWindow.png"); // 13x13
Binary file not shown.

Before

Width:  |  Height:  |  Size: 279 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 438 B

@@ -59,10 +59,6 @@ public abstract class PythonModuleTypeBase<T extends ModuleBuilder> extends Modu
return basicDescription;
}
public Icon getBigIcon() {
return PythonIcons.Python.Python_24;
}
public Icon getNodeIcon(final boolean isOpened) {
return PythonIcons.Python.PythonClosed;
}