Skip to content

Commit

Permalink
[UI] IDEA-315224 Add synonym to Android action 'Save Changes in Curre…
Browse files Browse the repository at this point in the history
…nt Layout'

Unfortunately, synonyms are not handled by delegation, and there is no easy
way to make it work because of action stubbing. So we had to create
a resource bundle and duplicate the synonym there.

GitOrigin-RevId: e22735ba719bd5313b23ac7738b7373940fee9c3
  • Loading branch information
Sergei Tachenov authored and intellij-monorepo-bot committed Mar 14, 2023
1 parent fff9cc5 commit 2a39265
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions design-plugin/src/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<vendor>Google,JetBrains</vendor>

<description>Provides a suite of design tools for Android Studio</description>
<resource-bundle>messages.AndroidDesignerActionsBundle</resource-bundle>

<depends>com.intellij.platform.images</depends>
<depends>org.jetbrains.android</depends>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
action.StoreDefaultLayout.synonym=Store Current Layout
4 changes: 3 additions & 1 deletion designer/src/META-INF/designer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,9 @@
<action id="Android.CreateSampleDataDirectory" class="com.android.tools.idea.actions.CreateSampleDataDirectory">
<add-to-group group-id="NewGroup" anchor="after" relative-to-action="Android.CreateResourceDirectory"/>
</action>
<action id="StoreDefaultLayout" class="com.android.tools.idea.common.actions.StoreDefaultWindowLayoutAction" overrides="true"/>
<action id="StoreDefaultLayout" class="com.android.tools.idea.common.actions.StoreDefaultWindowLayoutAction" overrides="true">
<synonym key="action.StoreDefaultLayout.synonym" />
</action>
<action id="RestoreDefaultLayout" class="com.android.tools.idea.common.actions.RestoreDefaultWindowLayoutAction" overrides="true"/>

<action internal="true" id="Android.GenerateLayoutTestSkeletonAction" class="com.android.tools.idea.uibuilder.actions.GenerateLayoutTestSkeletonAction">
Expand Down

0 comments on commit 2a39265

Please sign in to comment.