Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
b2806237
Commit
b2806237
authored
7 years ago
by
Vassiliy.Kudryashov
Browse files
Options
Download
Email Patches
Plain Diff
Get rid of icon in 'Stop Background Processes...' action
parent
4eae2d95
Branches unavailable
Tags unavailable
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
platform/lang-impl/src/com/intellij/execution/actions/StopBackgroundProcessesAction.java
+0
-6
...llij/execution/actions/StopBackgroundProcessesAction.java
platform/platform-resources/src/idea/LangActions.xml
+1
-1
platform/platform-resources/src/idea/LangActions.xml
with
1 addition
and
7 deletions
+1
-7
platform/lang-impl/src/com/intellij/execution/actions/StopBackgroundProcessesAction.java
+
0
-
6
View file @
b2806237
...
...
@@ -34,7 +34,6 @@ import com.intellij.openapi.wm.ex.StatusBarEx;
import
com.intellij.openapi.wm.ex.WindowManagerEx
;
import
com.intellij.ui.components.JBList
;
import
com.intellij.ui.popup.list.GroupedItemsListRenderer
;
import
com.intellij.util.IconUtil
;
import
com.intellij.util.containers.ContainerUtil
;
import
org.jetbrains.annotations.NotNull
;
import
org.jetbrains.annotations.Nullable
;
...
...
@@ -47,13 +46,8 @@ import java.util.Collections;
import
java.util.List
;
public
class
StopBackgroundProcessesAction
extends
DumbAwareAction
implements
AnAction
.
TransparentUpdate
{
private
Icon
wrappee
=
null
;
@Override
public
void
update
(
AnActionEvent
e
)
{
if
(
wrappee
==
null
)
{
wrappee
=
IconUtil
.
toSize
(
getTemplatePresentation
().
getIcon
(),
16
,
16
);
}
e
.
getPresentation
().
setIcon
(
wrappee
);
e
.
getPresentation
().
setEnabled
(!
getCancellableProcesses
(
e
.
getProject
()).
isEmpty
());
}
...
...
This diff is collapsed.
Click to expand it.
platform/platform-resources/src/idea/LangActions.xml
+
1
-
1
View file @
b2806237
...
...
@@ -363,7 +363,7 @@
<action
id=
"editRunConfigurations"
class=
"com.intellij.execution.actions.EditRunConfigurationsAction"
/>
<action
id=
"Stop"
class=
"com.intellij.execution.actions.StopAction"
icon=
"AllIcons.Actions.Suspend"
/>
<action
id=
"ShowLiveRunConfigurations"
class=
"com.intellij.execution.actions.ShowRunningListAction"
/>
<action
id=
"StopBackgroundProcesses"
class=
"com.intellij.execution.actions.StopBackgroundProcessesAction"
icon=
"AllIcons.Process.Stop"
/>
<action
id=
"StopBackgroundProcesses"
class=
"com.intellij.execution.actions.StopBackgroundProcessesAction"
/>
<add-to-group
group-id=
"MainMenu"
anchor=
"after"
relative-to-action=
"RefactoringMenu"
/>
</group>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help