action.Vcs.Diff.ExcludeChangedLinesFromCommit.text=Include Lines into Commit
action.Vcs.Diff.IncludeOnlyChangedLinesIntoCommit.text=Include Only These Lines into Commit
action.Vcs.Diff.ShowDiffInEditorTab.text=Show Diff in Editor Tab
+action.Vcs.Diff.ShowDiffInNewWindow.text=Show Diff in Separate Window
action.Vcs.RollbackChangedLines.text=Rollback Lines
action.Vcs.RollbackChangedLines.description=Rollback changes in selected lines
action.openAssertEqualsDiff.text=View assertEquals Difference
<action id="Vcs.Diff.ShowDiffInEditorTab" class="com.intellij.openapi.vcs.changes.actions.diff.MoveDiffPreviewToEditorAction">
<add-to-group group-id="Diff.EditorGutterPopupMenu.EditorSettings" anchor="last"/>
</action>
+ <group>
+ <action id="Vcs.Diff.ShowDiffInNewWindow"
+ icon="AllIcons.Actions.MoveToWindow"
+ class="com.intellij.openapi.vcs.changes.actions.diff.MoveDiffPreviewToNewWindowAction">
+ </action>
+ <separator/>
+ <add-to-group group-id="EditorTabPopupMenu" anchor="before" relative-to-action="SplitVertically"/>
+ </group>
<reference ref="Vcs.VcsClone">
<add-to-group group-id="WelcomeScreen.QuickStart" anchor="first"/>
internal class MoveDiffPreviewToEditorAction : MoveDiffPreviewAction(false) {
override fun isEnabledAndVisible(project: Project): Boolean = EditorDiffPreviewFilesManager.getInstance(project).shouldOpenInNewWindow
}
+
+internal class MoveDiffPreviewToNewWindowAction : MoveDiffPreviewAction(true) {
+ override fun isEnabledAndVisible(project: Project): Boolean = !EditorDiffPreviewFilesManager.getInstance(project).shouldOpenInNewWindow
+}