Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dart] Add 'Sort Members in Dart Code' to project view action menu #927

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Dart/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@
</action>
<action id="Dart.DartSortMembers" class="com.jetbrains.lang.dart.ide.actions.DartSortMembersAction">
<add-to-group group-id="CodeFormatGroup" anchor="after" relative-to-action="Dart.DartStyle"/>
<add-to-group group-id="ProjectViewPopupMenuModifyGroup" anchor="after" relative-to-action="Dart.DartStyle"/>
</action>
<!--<action id="Dart.DartFix" class="com.jetbrains.lang.dart.ide.actions.DartFixAction"/>-->
<action id="Generate.Constructor.Dart" class="com.jetbrains.lang.dart.ide.generation.DartGenerateConstructorAction">
Expand Down
6 changes: 3 additions & 3 deletions Dart/resources/messages/DartBundle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ issue.occurred.with.analysis.server=an issue occurred with the analysis server

action.Dart.DartSortMembers.text=Sort Members in Dart File
action.Dart.DartSortMembers.description=Sort members in your Dart code
action.Dart.DartSortMembers.progress.title=Sorting members in Dart file\u2026
dart.sort.members.action.name.ellipsis=Sort Members in Dart files\u2026
action.Dart.DartSortMembers.progress.title=Sorting members in Dart code\u2026
dart.sort.members.action.name.ellipsis=Sort Members in Dart code\u2026
dart.sort.members.hint.failed=Failed to sort members
dart.sort.members.hint.already.good=Sort members: members already sorted
dart.sort.members.hint.success=The code has been successfully sorted
Expand All @@ -295,7 +295,7 @@ code.style.settings.label.line.length=&Line length:
action.Dart.DartFix.text=Run 'dart fix'
# suppress inspection "UnusedProperty" -- used by DartFixAction, which is temporarily commented out in plugin.xml
action.Dart.DartFix.description=Run 'dart fix' to fix and migrate the Dart sources
dart.fix.action.name.ellipsis=Fix Code with dartfix\u2026
dart.fix.action.name.ellipsis=Fix Code with 'dart fix'\u2026

failed.to.create.file.0.1=Failed to create file {0}:\n{1}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ protected String getActionTextForEditor() {
@NotNull
@Override
protected String getActionTextForFiles() {
return DartBundle.message("dart.fix.action.name.ellipsis"); // because with dialog
// Use ellipsis version of action name due to opening confirmation dialog.
return DartBundle.message("dart.fix.action.name.ellipsis");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ protected String getActionTextForEditor() {
@NotNull
@Override
protected String getActionTextForFiles() {
return DartBundle.message("dart.sort.members.action.name.ellipsis"); // because with dialog
// Use ellipsis version of action name due to opening confirmation dialog.
return DartBundle.message("dart.sort.members.action.name.ellipsis");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ protected String getActionTextForEditor() {
@NotNull
@Override
protected String getActionTextForFiles() {
return DartBundle.message("dart.style.action.name.ellipsis"); // because with dialog
// Use ellipsis version of action name due to opening confirmation dialog.
return DartBundle.message("dart.style.action.name.ellipsis");
}

@Override
Expand Down