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
9b0f0104
Commit
9b0f0104
authored
6 years ago
by
Konstantin Aleev
1
Browse files
Options
Download
Email Patches
Plain Diff
RunDashboard: actions messages cleanup
parent
42fd6271
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
platform/lang-impl/src/com/intellij/execution/dashboard/actions/CopyConfigurationAction.java
+2
-2
.../execution/dashboard/actions/CopyConfigurationAction.java
platform/lang-impl/src/com/intellij/execution/dashboard/actions/EditConfigurationAction.java
+2
-2
.../execution/dashboard/actions/EditConfigurationAction.java
platform/lang-impl/src/com/intellij/execution/dashboard/actions/GroupConfigurationsAction.java
+1
-1
...xecution/dashboard/actions/GroupConfigurationsAction.java
platform/platform-resources-en/src/messages/ExecutionBundle.properties
+0
-11
...form-resources-en/src/messages/ExecutionBundle.properties
with
5 additions
and
16 deletions
+5
-16
platform/lang-impl/src/com/intellij/execution/dashboard/actions/CopyConfigurationAction.java
+
2
-
2
View file @
9b0f0104
...
...
@@ -27,12 +27,12 @@ public class CopyConfigurationAction extends AnAction {
Project
project
=
e
.
getProject
();
RunDashboardRunConfigurationNode
node
=
project
==
null
?
null
:
RunDashboardActionUtils
.
getTarget
(
e
);
boolean
enabled
=
node
!=
null
&&
RunDashboardManager
.
getInstance
(
project
).
isShowConfigurations
()
&&
RunManager
.
getInstance
(
node
.
getP
roject
()
).
hasSettings
(
node
.
getConfigurationSettings
());
RunManager
.
getInstance
(
p
roject
).
hasSettings
(
node
.
getConfigurationSettings
());
e
.
getPresentation
().
setEnabled
(
enabled
);
boolean
popupPlace
=
ActionPlaces
.
isPopupPlace
(
e
.
getPlace
());
e
.
getPresentation
().
setVisible
(
enabled
||
!
popupPlace
);
if
(
popupPlace
)
{
e
.
getPresentation
().
setText
(
ExecutionBundle
.
message
(
"copy.configuration.action.name"
)
+
"..."
);
e
.
getPresentation
().
setText
(
getTemplatePresentation
().
getText
(
)
+
"..."
);
}
}
...
...
This diff is collapsed.
Click to expand it.
platform/lang-impl/src/com/intellij/execution/dashboard/actions/EditConfigurationAction.java
+
2
-
2
View file @
9b0f0104
...
...
@@ -30,12 +30,12 @@ public class EditConfigurationAction extends AnAction {
public
void
update
(
@NotNull
AnActionEvent
e
)
{
Project
project
=
e
.
getProject
();
RunDashboardRunConfigurationNode
node
=
project
==
null
?
null
:
RunDashboardActionUtils
.
getTarget
(
e
);
boolean
enabled
=
node
!=
null
&&
RunManager
.
getInstance
(
node
.
getP
roject
()
).
hasSettings
(
node
.
getConfigurationSettings
());
boolean
enabled
=
node
!=
null
&&
RunManager
.
getInstance
(
p
roject
).
hasSettings
(
node
.
getConfigurationSettings
());
e
.
getPresentation
().
setEnabled
(
enabled
);
boolean
popupPlace
=
ActionPlaces
.
isPopupPlace
(
e
.
getPlace
());
e
.
getPresentation
().
setVisible
(
enabled
||
!
popupPlace
);
if
(
popupPlace
)
{
e
.
getPresentation
().
setText
(
ExecutionBundle
.
message
(
"run.dashboard.edit.configuration.action.name"
)
+
"..."
);
e
.
getPresentation
().
setText
(
getTemplatePresentation
().
getText
(
)
+
"..."
);
}
}
...
...
This diff is collapsed.
Click to expand it.
platform/lang-impl/src/com/intellij/execution/dashboard/actions/GroupConfigurationsAction.java
+
1
-
1
View file @
9b0f0104
...
...
@@ -36,7 +36,7 @@ public class GroupConfigurationsAction extends AnAction {
public
void
update
(
@NotNull
AnActionEvent
e
)
{
e
.
getPresentation
().
setEnabledAndVisible
(
getTargets
(
e
).
isNotEmpty
());
if
(
ActionPlaces
.
isPopupPlace
(
e
.
getPlace
()))
{
e
.
getPresentation
().
setText
(
ExecutionBundle
.
message
(
"run.dashboard.group.configurations.action.name"
)
+
"..."
);
e
.
getPresentation
().
setText
(
getTemplatePresentation
().
getText
(
)
+
"..."
);
}
}
...
...
This diff is collapsed.
Click to expand it.
platform/platform-resources-en/src/messages/ExecutionBundle.properties
+
0
-
11
View file @
9b0f0104
...
...
@@ -400,19 +400,8 @@ run.dashboard.debug.action.name=Debug
run.dashboard.debug.action.description
=
Debug selected configuration(s)
run.dashboard.restart.debugger.action.name
=
Rerun in Debug Mode
run.dashboard.restart.debugger.action.description
=
Rerun selected configuration(s) in Debug Mode
run.dashboard.stop.action.name
=
Stop
run.dashboard.stop.action.description
=
Stop selected configuration(s)
run.dashboard.edit.configuration.action.name
=
Edit Configuration
run.dashboard.edit.configuration.dialog.title
=
Edit Configuration
run.dashboard.remove.configuration.action.name
=
Remove Configuration
run.dashboard.remove.configuration.action.description
=
Remove Configuration(s)
run.dashboard.group.configurations.action.name
=
Group Configurations
run.dashboard.ungroup.configurations.action.name
=
Ungroup Configurations
run.dashboard.show.configurations.action.name
=
Show Configurations
run.dashboard.previous.configuration.action.name
=
Previous Started Configuration
run.dashboard.next.configuration.action.name
=
Next Started Configuration
run.dashboard.remove.configuration.dialog.title
=
Remove Configuration
run.dashboard.remove.configuration.dialog.message
=
Are you sure to remove selected configuration(s)?
run.dashboard.started.group.name
=
Running
run.dashboard.stopped.group.name
=
Finished
run.dashboard.configured.group.name
=
Configured
...
...
This diff is collapsed.
Click to expand it.
小 白蛋
@baidan
mentioned in commit
6f6ccc7b
·
2 years ago
mentioned in commit
6f6ccc7b
mentioned in commit 6f6ccc7b8cf873c0ad74701b4e3b2c013c0ff7b5
Toggle commit list
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