diff --git a/community-resources/src/CommunityFileTypes.xml b/community-resources/src/CommunityFileTypes.xml index 141fb501b114..75f58284f129 100644 --- a/community-resources/src/CommunityFileTypes.xml +++ b/community-resources/src/CommunityFileTypes.xml @@ -7,7 +7,7 @@ extensions="idl" default_extension="idl" binary="false" - icon = "/fileTypes/idl.png"> + icon = "AllIcons.FileTypes.Idl"> @@ -71,7 +71,7 @@ extensions="fx" default_extension="fx" binary="false" - icon = "/fileTypes/custom.png"> + icon = "AllIcons.FileTypes.Custom"> @@ -178,7 +178,7 @@ - + - + - + - + - + - + - + - + - + - + - \ No newline at end of file + diff --git a/platform/platform-resources/src/META-INF/LangExtensions.xml b/platform/platform-resources/src/META-INF/LangExtensions.xml index 6080ee552079..34444adf12f5 100644 --- a/platform/platform-resources/src/META-INF/LangExtensions.xml +++ b/platform/platform-resources/src/META-INF/LangExtensions.xml @@ -669,13 +669,13 @@ - - - - diff --git a/platform/platform-resources/src/META-INF/XmlActions.xml b/platform/platform-resources/src/META-INF/XmlActions.xml index 68831eccf560..052768e5498e 100644 --- a/platform/platform-resources/src/META-INF/XmlActions.xml +++ b/platform/platform-resources/src/META-INF/XmlActions.xml @@ -1,4 +1,4 @@ - + @@ -62,7 +62,7 @@ - + @@ -74,7 +74,7 @@ + icon="AllIcons.Nodes.PpWeb"> diff --git a/platform/platform-resources/src/idea/LangActions.xml b/platform/platform-resources/src/idea/LangActions.xml index 19ccf97be8c8..2b4ee16704f5 100644 --- a/platform/platform-resources/src/idea/LangActions.xml +++ b/platform/platform-resources/src/idea/LangActions.xml @@ -8,8 +8,8 @@ - - + + @@ -35,7 +35,7 @@ - + @@ -65,7 +65,7 @@ - + @@ -292,7 +292,7 @@ - + @@ -423,7 +423,7 @@ - + @@ -593,7 +593,7 @@ - @@ -610,31 +610,31 @@ - - - - - - - - - - + + + + + + + + + + - + + icon="AllIcons.Debugger.ShowCurrentFrame"/> - + - + @@ -654,15 +654,15 @@ - - + + - + + icon="AllIcons.Debugger.MuteBreakpoints"/> - + @@ -730,22 +730,22 @@ - + + icon="AllIcons.Debugger.RestoreLayout"/> - + - - - + + + diff --git a/platform/platform-resources/src/idea/PlatformActions.xml b/platform/platform-resources/src/idea/PlatformActions.xml index adc5b44d90e8..7d6faf452ca8 100644 --- a/platform/platform-resources/src/idea/PlatformActions.xml +++ b/platform/platform-resources/src/idea/PlatformActions.xml @@ -107,15 +107,15 @@ - - - + + + - - + + @@ -130,32 +130,32 @@ - + - + - + - + - + @@ -168,14 +168,14 @@ - - + + - - + + - + @@ -184,8 +184,8 @@ - - + + @@ -259,7 +259,7 @@ - + @@ -273,12 +273,12 @@ - - + + - - + + @@ -331,8 +331,8 @@ - - + + @@ -357,7 +357,7 @@ - + @@ -366,7 +366,7 @@ - + @@ -432,9 +432,9 @@ + icon="AllIcons.General.ReadHelp"/> + icon="AllIcons.General.TipsOfTheDay"/> @@ -453,22 +453,22 @@ + icon="AllIcons.Nodes.HomeFolder"/> + icon="AllIcons.Nodes.IdeaProject"/> + icon="AllIcons.Actions.New"/> + icon="AllIcons.Actions.NewFolder"/> + icon="AllIcons.Actions.Delete"/> + icon="AllIcons.Actions.Sync"/> + icon="AllIcons.Actions.ShowHiddens"/> @@ -496,8 +496,8 @@ - - + + @@ -539,9 +539,9 @@ - - - + + + @@ -554,6 +554,6 @@ - + diff --git a/platform/platform-resources/src/idea/VcsActions.xml b/platform/platform-resources/src/idea/VcsActions.xml index 546ad5328178..91f17d8d3798 100644 --- a/platform/platform-resources/src/idea/VcsActions.xml +++ b/platform/platform-resources/src/idea/VcsActions.xml @@ -1,9 +1,9 @@ + icon="AllIcons._cvs.ShowAsTree"/> - + @@ -12,7 +12,7 @@ - + + icon="AllIcons.Actions.NextOccurence"/> + icon="AllIcons.Actions.PreviousOccurence"/> @@ -48,7 +48,7 @@ text = "VCS Operations Popup..." description="Context aware popup with list of commonly used VCS actions"/> - + @@ -71,21 +71,21 @@ + icon="AllIcons.Actions.Sync"/> + icon="AllIcons.Actions.Commit"/> + icon="AllIcons.Actions.Rollback"/> + icon="AllIcons.General.Add"/> + icon="AllIcons.Actions.Exclude"/> + icon="AllIcons.Actions.Submit1"/> + icon="AllIcons.Actions.FileStatus"/> + icon="AllIcons.Actions.Diff"/> @@ -98,14 +98,14 @@ + icon="AllIcons.Actions.Cancel"/> + icon="AllIcons.General.Add"> + icon="AllIcons.Actions.Exclude"/> @@ -126,9 +126,9 @@ text="Unshelve..." description="Correct paths where to apply patches and unshelve"/> + icon="AllIcons.Actions.Diff"/> + icon="AllIcons.Actions.CreatePatch"/> + icon="AllIcons.Vcs.Refresh"/> + icon="AllIcons.Ant.Filter"/> + icon="AllIcons.Actions.ShowChangesOnly"/> + icon="AllIcons.Actions.Rollback"/> + icon="AllIcons.Vcs.Remove"/> @@ -160,7 +160,7 @@ + icon="AllIcons.Vcs.Refresh"/> - + - + @@ -121,7 +121,7 @@ - + @@ -142,4 +142,4 @@ - \ No newline at end of file + diff --git a/plugins/groovy/src/META-INF/plugin.xml b/plugins/groovy/src/META-INF/plugin.xml index f71a9c20989f..55b29dccf347 100644 --- a/plugins/groovy/src/META-INF/plugin.xml +++ b/plugins/groovy/src/META-INF/plugin.xml @@ -1067,10 +1067,10 @@ + icon="AllIcons.General.Remove" text="Remove" description="Remove dynamic element"/> - - + + diff --git a/plugins/hg4idea/src/META-INF/plugin.xml b/plugins/hg4idea/src/META-INF/plugin.xml index 020691fa5749..46c00acb22ad 100644 --- a/plugins/hg4idea/src/META-INF/plugin.xml +++ b/plugins/hg4idea/src/META-INF/plugin.xml @@ -46,8 +46,8 @@ - - + + diff --git a/plugins/hg4idea/src/org/zmlx/hg4idea/action/HgAbstractGlobalAction.java b/plugins/hg4idea/src/org/zmlx/hg4idea/action/HgAbstractGlobalAction.java index 815922ec1c75..8d1b4b53b486 100644 --- a/plugins/hg4idea/src/org/zmlx/hg4idea/action/HgAbstractGlobalAction.java +++ b/plugins/hg4idea/src/org/zmlx/hg4idea/action/HgAbstractGlobalAction.java @@ -18,13 +18,20 @@ import com.intellij.openapi.project.Project; import com.intellij.openapi.vfs.VirtualFile; import com.intellij.vcsUtil.VcsImplUtil; import org.jetbrains.annotations.Nullable; -import org.zmlx.hg4idea.util.HgUtil; import org.zmlx.hg4idea.execution.HgCommandException; +import org.zmlx.hg4idea.util.HgUtil; +import javax.swing.*; import java.lang.reflect.InvocationTargetException; import java.util.Collection; abstract class HgAbstractGlobalAction extends AnAction { + protected HgAbstractGlobalAction(Icon icon) { + super(icon); + } + + protected HgAbstractGlobalAction() { + } protected abstract HgGlobalCommandBuilder getHgGlobalCommandBuilder(Project project); private static final Logger LOG = Logger.getInstance(HgAbstractGlobalAction.class.getName()); diff --git a/plugins/hg4idea/src/org/zmlx/hg4idea/action/HgAction.java b/plugins/hg4idea/src/org/zmlx/hg4idea/action/HgAction.java index 7081a6f5b4e9..6ef4a88a02bb 100644 --- a/plugins/hg4idea/src/org/zmlx/hg4idea/action/HgAction.java +++ b/plugins/hg4idea/src/org/zmlx/hg4idea/action/HgAction.java @@ -18,10 +18,19 @@ package org.zmlx.hg4idea.action; import com.intellij.openapi.actionSystem.*; import com.intellij.openapi.project.Project; +import javax.swing.*; + /** * @author Kirill Likhodedov */ public abstract class HgAction extends AnAction { + protected HgAction() { + } + + protected HgAction(Icon icon) { + super(icon); + } + @Override public void actionPerformed(AnActionEvent event) { final DataContext dataContext = event.getDataContext(); diff --git a/plugins/hg4idea/src/org/zmlx/hg4idea/action/HgPullAction.java b/plugins/hg4idea/src/org/zmlx/hg4idea/action/HgPullAction.java index b8451f14fab7..9d53d02e0279 100644 --- a/plugins/hg4idea/src/org/zmlx/hg4idea/action/HgPullAction.java +++ b/plugins/hg4idea/src/org/zmlx/hg4idea/action/HgPullAction.java @@ -12,6 +12,7 @@ // limitations under the License. package org.zmlx.hg4idea.action; +import com.intellij.icons.AllIcons; import com.intellij.openapi.progress.ProgressIndicator; import com.intellij.openapi.progress.Task; import com.intellij.openapi.project.Project; @@ -23,6 +24,9 @@ import org.zmlx.hg4idea.ui.HgPullDialog; import java.util.Collection; public class HgPullAction extends HgAbstractGlobalAction { + public HgPullAction() { + super(AllIcons.Actions.CheckOut); + } protected HgGlobalCommandBuilder getHgGlobalCommandBuilder(final Project project) { return new HgGlobalCommandBuilder() { diff --git a/plugins/hg4idea/src/org/zmlx/hg4idea/action/HgPushAction.java b/plugins/hg4idea/src/org/zmlx/hg4idea/action/HgPushAction.java index b55bfc50abf7..1f8e42abfd6f 100644 --- a/plugins/hg4idea/src/org/zmlx/hg4idea/action/HgPushAction.java +++ b/plugins/hg4idea/src/org/zmlx/hg4idea/action/HgPushAction.java @@ -12,12 +12,14 @@ // limitations under the License. package org.zmlx.hg4idea.action; -import com.intellij.openapi.diagnostic.Logger; +import com.intellij.icons.AllIcons; import com.intellij.openapi.project.Project; import org.zmlx.hg4idea.HgPusher; public class HgPushAction extends HgAction { - private static final Logger LOG = Logger.getInstance(HgPushAction.class); + public HgPushAction() { + super(AllIcons.Actions.Commit); + } @Override public void execute(final Project project) { diff --git a/plugins/maven/src/main/resources/META-INF/plugin.xml b/plugins/maven/src/main/resources/META-INF/plugin.xml index 80eae7de882a..1138d95b7553 100644 --- a/plugins/maven/src/main/resources/META-INF/plugin.xml +++ b/plugins/maven/src/main/resources/META-INF/plugin.xml @@ -156,12 +156,12 @@ + icon="AllIcons.Actions.Sync"> + icon="AllIcons.Actions.Sync"> + icon="AllIcons.General.Add"> + icon="AllIcons.General.Add"> @@ -225,7 +225,7 @@ class="org.jetbrains.idea.maven.project.actions.RemoveManagedFilesAction" text="Remove Projects" description="Remove selected Maven projects from the project tree" - icon="/general/remove.png"> + icon="AllIcons.General.Remove"> + icon="AllIcons.Actions.Execute"> + icon="AllIcons.Actions.ShowSettings"> + icon="AllIcons.Nodes.ExceptionClass"> @@ -330,13 +330,13 @@ text="Group Modules" description="Group projects according to Maven structure" secondary="true" - icon="/nodes/folder.png"/> + icon="AllIcons.Nodes.Folder"/> + icon="AllIcons.Actions.ShowHiddens"/> + icon="AllIcons.Actions.Preview"/> + icon="AllIcons.Actions.Refresh"/> diff --git a/resources/src/META-INF/IdeaPlugin.xml b/resources/src/META-INF/IdeaPlugin.xml index acb49fac6a1a..a2400794960f 100644 --- a/resources/src/META-INF/IdeaPlugin.xml +++ b/resources/src/META-INF/IdeaPlugin.xml @@ -1254,7 +1254,7 @@ + icon="AllIcons.General.ProjectStructure"> diff --git a/resources/src/idea/JavaActions.xml b/resources/src/idea/JavaActions.xml index efc76f8b37cd..d6edb106f607 100644 --- a/resources/src/idea/JavaActions.xml +++ b/resources/src/idea/JavaActions.xml @@ -94,7 +94,7 @@ - + @@ -105,10 +105,10 @@ - + - + @@ -138,14 +138,14 @@ - + - + diff --git a/resources/src/idea/RichPlatformActions.xml b/resources/src/idea/RichPlatformActions.xml index bc88209c38a0..10fa797c9195 100644 --- a/resources/src/idea/RichPlatformActions.xml +++ b/resources/src/idea/RichPlatformActions.xml @@ -29,17 +29,17 @@ + icon="AllIcons.RunConfigurations.RerunFailedTests"/> + icon="AllIcons.Nodes.ModuleClosed"> + icon="AllIcons.Nodes.ModuleClosed"/> @@ -90,7 +90,7 @@ - + @@ -376,17 +376,17 @@ + icon="AllIcons.General.CreateNewProject"/> + icon="AllIcons.General.OpenProject"/> + icon="AllIcons.General.JetbrainsTvIdea"/> + icon="AllIcons.General.PluginManager"/> @@ -403,9 +403,9 @@ - - - + + +