From 479f584cfaaabba8128abb2097c8c689b67b98bc Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Mon, 24 Feb 2014 16:49:11 +0100 Subject: [PATCH] move to right and move to down actions --- .../ide/actions/MoveTabDownAction.java | 27 +++++++++++++++++++ .../ide/actions/MoveTabRightAction.java | 27 +++++++++++++++++++ .../src/messages/ActionsBundle.properties | 4 +++ .../src/idea/PlatformActions.xml | 4 +++ 4 files changed, 62 insertions(+) create mode 100644 platform/platform-impl/src/com/intellij/ide/actions/MoveTabDownAction.java create mode 100644 platform/platform-impl/src/com/intellij/ide/actions/MoveTabRightAction.java diff --git a/platform/platform-impl/src/com/intellij/ide/actions/MoveTabDownAction.java b/platform/platform-impl/src/com/intellij/ide/actions/MoveTabDownAction.java new file mode 100644 index 000000000000..77aa887ef551 --- /dev/null +++ b/platform/platform-impl/src/com/intellij/ide/actions/MoveTabDownAction.java @@ -0,0 +1,27 @@ +/* + * Copyright 2000-2014 JetBrains s.r.o. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.intellij.ide.actions; + +import javax.swing.*; + +/** + * @author Konstantin Bulenkov + */ +public class MoveTabDownAction extends SplitAction { + protected MoveTabDownAction() { + super(SwingConstants.HORIZONTAL, true); + } +} diff --git a/platform/platform-impl/src/com/intellij/ide/actions/MoveTabRightAction.java b/platform/platform-impl/src/com/intellij/ide/actions/MoveTabRightAction.java new file mode 100644 index 000000000000..82f7572a0367 --- /dev/null +++ b/platform/platform-impl/src/com/intellij/ide/actions/MoveTabRightAction.java @@ -0,0 +1,27 @@ +/* + * Copyright 2000-2014 JetBrains s.r.o. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.intellij.ide.actions; + +import javax.swing.*; + +/** + * @author Konstantin Bulenkov + */ +public class MoveTabRightAction extends SplitAction { + protected MoveTabRightAction() { + super(SwingConstants.VERTICAL, true); + } +} diff --git a/platform/platform-resources-en/src/messages/ActionsBundle.properties b/platform/platform-resources-en/src/messages/ActionsBundle.properties index fa38ddeae330..8d51e6b5dbd2 100644 --- a/platform/platform-resources-en/src/messages/ActionsBundle.properties +++ b/platform/platform-resources-en/src/messages/ActionsBundle.properties @@ -834,6 +834,10 @@ action.SplitVertically.text=Split _Vertically action.SplitVertically.description=Split editor area into 2 tab groups and move the current tab to the right group action.SplitHorizontally.text=Split _Horizontally action.SplitHorizontally.description=Split editor area into 2 tab groups and move the current tab to the bottom group +action.MoveTabRight.text=Move Right +action.MoveTabRight.description=Split editor area into 2 tab groups and move the current tab to the right group and close the left editor +action.MoveTabDown.text=Move Down +action.MoveTabDown.description=Split editor area into 2 tab groups and move the current tab to the bottom group and close the top editor action.ChangeSplitOrientation.text=Change Splitter O_rientation action.ChangeSplitOrientation.description=Changes orientation of splitter action.Unsplit.text=Un_split diff --git a/platform/platform-resources/src/idea/PlatformActions.xml b/platform/platform-resources/src/idea/PlatformActions.xml index 9902476aab7f..e0e136024f2a 100644 --- a/platform/platform-resources/src/idea/PlatformActions.xml +++ b/platform/platform-resources/src/idea/PlatformActions.xml @@ -376,6 +376,8 @@ + + @@ -478,6 +480,8 @@ + +