remove old actions
authorDennis Ushakov <dennis.ushakov@gmail.com>
Thu, 19 Jan 2012 15:13:10 +0000 (19:13 +0400)
committerDennis Ushakov <dennis.ushakov@gmail.com>
Thu, 26 Jan 2012 18:10:43 +0000 (22:10 +0400)
platform/lang-impl/src/com/intellij/execution/ui/layout/actions/AttachCellAction.java [deleted file]
platform/lang-impl/src/com/intellij/execution/ui/layout/actions/DetachCellAction.java [deleted file]
platform/lang-impl/src/com/intellij/execution/ui/layout/actions/MoveToGridAction.java [deleted file]
platform/lang-impl/src/com/intellij/execution/ui/layout/actions/MoveToTabAction.java [deleted file]
platform/platform-resources/src/idea/LangActions.xml

diff --git a/platform/lang-impl/src/com/intellij/execution/ui/layout/actions/AttachCellAction.java b/platform/lang-impl/src/com/intellij/execution/ui/layout/actions/AttachCellAction.java
deleted file mode 100644 (file)
index 062347e..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Copyright 2000-2009 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.execution.ui.layout.actions;
-
-import com.intellij.execution.ui.actions.BaseViewAction;
-import com.intellij.execution.ui.layout.Grid;
-import com.intellij.execution.ui.layout.GridCell;
-import com.intellij.execution.ui.layout.ViewContext;
-import com.intellij.idea.ActionsBundle;
-import com.intellij.openapi.actionSystem.AnActionEvent;
-import com.intellij.ui.content.Content;
-
-public class AttachCellAction extends BaseViewAction {
-
-  protected void update(final AnActionEvent e, final ViewContext context, final Content[] content) {
-    if (content.length == 0 || !isDetached(context, content[0])) {
-      setEnabled(e, false);
-      return;
-    }
-
-    Grid grid = context.findGridFor(content[0]);
-
-    GridCell cell = grid.getCellFor(content[0]);
-    if (ViewContext.CELL_TOOLBAR_PLACE.equals(e.getPlace()) && content.length == 1) {
-      setEnabled(e, cell.getContentCount() == 1);
-    } else {
-      setEnabled(e, true);
-      if (cell.getContentCount() > 1) {
-        e.getPresentation().setText(ActionsBundle.message("action.Runner.AttachCells.text", cell.getContentCount()));
-      }
-    }
-  }
-
-  protected void actionPerformed(final AnActionEvent e, final ViewContext context, final Content[] content) {
-    context.findCellFor(content[0]).attach();
-  }
-}
diff --git a/platform/lang-impl/src/com/intellij/execution/ui/layout/actions/DetachCellAction.java b/platform/lang-impl/src/com/intellij/execution/ui/layout/actions/DetachCellAction.java
deleted file mode 100644 (file)
index 3121592..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * Copyright 2000-2009 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.execution.ui.layout.actions;
-
-import com.intellij.execution.ui.actions.BaseViewAction;
-import com.intellij.execution.ui.layout.Grid;
-import com.intellij.execution.ui.layout.GridCell;
-import com.intellij.execution.ui.layout.ViewContext;
-import com.intellij.idea.ActionsBundle;
-import com.intellij.openapi.actionSystem.AnActionEvent;
-import com.intellij.ui.content.Content;
-
-public class DetachCellAction extends BaseViewAction {
-  protected void update(final AnActionEvent e, final ViewContext context, final Content[] content) {
-    if (content.length == 0 || isDetached(context, content[0])) {
-      setEnabled(e, false);
-      return;
-    }
-
-    Grid grid = context.findGridFor(content[0]);
-    if (grid == null) {
-      setEnabled(e, false);
-      return;
-    }
-
-    if (ViewContext.TAB_TOOLBAR_PLACE.equals(e.getPlace()) || (ViewContext.TAB_POPUP_PLACE.equals(e.getPlace()))) {
-      setEnabled(e, grid.getContents().size() == 1);
-    }
-    else {
-      GridCell cell = grid.getCellFor(content[0]);
-      if (ViewContext.CELL_TOOLBAR_PLACE.equals(e.getPlace()) && content.length == 1) {
-        setEnabled(e, cell.getContentCount() == 1);
-      } else {
-        setEnabled(e, true);
-        if (cell.getContentCount() > 1) {
-          e.getPresentation().setText(ActionsBundle.message("action.Runner.DetachCells.text", cell.getContentCount()));
-        }
-      }
-    }
-  }
-
-  protected void actionPerformed(final AnActionEvent e, final ViewContext context, final Content[] content) {
-    context.findCellFor(content[0]).detach();
-  }
-}
diff --git a/platform/lang-impl/src/com/intellij/execution/ui/layout/actions/MoveToGridAction.java b/platform/lang-impl/src/com/intellij/execution/ui/layout/actions/MoveToGridAction.java
deleted file mode 100644 (file)
index f66f501..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright 2000-2009 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.execution.ui.layout.actions;
-
-import com.intellij.execution.ui.actions.BaseViewAction;
-import com.intellij.execution.ui.layout.Grid;
-import com.intellij.execution.ui.layout.Tab;
-import com.intellij.execution.ui.layout.ViewContext;
-import com.intellij.openapi.actionSystem.AnActionEvent;
-import com.intellij.ui.content.Content;
-
-public class MoveToGridAction extends BaseViewAction {
-  protected void update(final AnActionEvent e, final ViewContext context, final Content[] content) {
-    if (!context.isMoveToGridActionEnabled() || content.length != 1) {
-      setEnabled(e, false);
-      return;
-    }
-
-    if (isDetached(context, content[0])) {
-      setEnabled(e, false);
-      return;
-    }
-
-    Grid grid = context.findGridFor(content[0]);
-    if (grid == null) {
-      setEnabled(e, false);
-      return;
-    }
-    Tab tab = context.getTabFor(grid);
-    setEnabled(e, tab != null && !tab.isDefault() && grid.getContents().size() == 1);
-  }
-                     
-  protected void actionPerformed(final AnActionEvent e, final ViewContext context, final Content[] content) {
-    context.getCellTransform().moveToGrid(content[0]);
-  }
-}
diff --git a/platform/lang-impl/src/com/intellij/execution/ui/layout/actions/MoveToTabAction.java b/platform/lang-impl/src/com/intellij/execution/ui/layout/actions/MoveToTabAction.java
deleted file mode 100644 (file)
index bf23cb1..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Copyright 2000-2009 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.execution.ui.layout.actions;
-
-import com.intellij.execution.ui.actions.BaseViewAction;
-import com.intellij.execution.ui.layout.Grid;
-import com.intellij.execution.ui.layout.Tab;
-import com.intellij.execution.ui.layout.ViewContext;
-import com.intellij.openapi.actionSystem.AnActionEvent;
-import com.intellij.ui.content.Content;
-
-public class MoveToTabAction extends BaseViewAction {
-  protected void update(final AnActionEvent e, final ViewContext context, final Content[] content) {
-    if (!context.isMoveToGridActionEnabled() || content.length != 1) {
-      setEnabled(e, false);
-      return;
-    }
-    if (isDetached(context, content[0])) {
-      setEnabled(e, false);
-      return;
-    }
-
-    Grid grid = context.findGridFor(content[0]);
-    if (grid == null) {
-      setEnabled(e, false);
-      return;
-    }
-
-
-    Tab tab = context.getTabFor(grid);
-
-    if (ViewContext.TAB_TOOLBAR_PLACE.equals(e.getPlace())) {
-      setEnabled(e, false);
-    } else {
-      setEnabled(e, tab != null && tab.isDefault());
-    }
-  }
-
-  protected void actionPerformed(final AnActionEvent e, final ViewContext context, final Content[] content) {
-    context.getCellTransform().moveToTab(content[0]);
-  }
-}
\ No newline at end of file
index 83c2df79e89567667432777ca5c8fb898c02e4fb..58da8434f90c464f426a49571004c9b5e560b920 100644 (file)
     <group id="RunnerLayoutActions">
       <group id="Runner.Layout" icon="/debugger/restoreLayout.png" popup="true">
         <action id="Runner.RestoreLayout" class="com.intellij.execution.ui.layout.actions.RestoreLayoutAction"/>
-        <action id="Runner.ToggleToolbarLayout" class="com.intellij.execution.ui.layout.actions.ToggleToolbarLayoutAction"/>
+        <!--action id="Runner.ToggleToolbarLayout" class="com.intellij.execution.ui.layout.actions.ToggleToolbarLayoutAction"/-->
       </group>
 
 
       <group id="Runner.View.Popup">
-        <action id="Runner.MoveViewToGrid" class="com.intellij.execution.ui.layout.actions.MoveToGridAction" icon="/debugger/toGrid.png"/>
-        <action id="Runner.MoveViewToTab" class="com.intellij.execution.ui.layout.actions.MoveToTabAction" icon="/debugger/toTab.png"/>
-        <action id="Runner.DetachCell" class="com.intellij.execution.ui.layout.actions.DetachCellAction" icon="/debugger/detach.png"/>
-        <action id="Runner.AttachCell" class="com.intellij.execution.ui.layout.actions.AttachCellAction" icon="/debugger/attach.png"/>
-        <separator/>
         <action id="Runner.MinimizeView" class="com.intellij.execution.ui.layout.actions.MinimizeViewAction" icon="/actions/minimize.png"/>
         <separator/>
         <action id="Runner.CloseView" class="com.intellij.execution.ui.layout.actions.CloseViewAction" icon="/actions/cross.png"/>
 
 
       <group id="Runner.View.Toolbar">
-        <reference ref="Runner.MoveViewToGrid"/>
-        <reference ref="Runner.MoveViewToTab"/>
-        <reference ref="Runner.DetachCell"/>
-        <reference ref="Runner.AttachCell"/>
         <reference ref="Runner.MinimizeView"/>
-        <reference ref="Runner.CloseView"/>
       </group>
     </group>