Removed obsolete breakpoint group actions
diff --git a/org.eclipse.debug.ui/plugin.xml b/org.eclipse.debug.ui/plugin.xml index 21936f1..1c38162 100644 --- a/org.eclipse.debug.ui/plugin.xml +++ b/org.eclipse.debug.ui/plugin.xml
@@ -1069,35 +1069,6 @@ menubarPath="selectGroup" id="org.eclipse.debug.ui.actions.SelectAllBreakpointsAction"> </action> - <menu - label="%groupAllBy.label" - path="breakpointGroupGroup" - id="groupAllByMenu"> - <separator - name="additions"> - </separator> - </menu> - <action - label="%file.label" - helpContextId="group_all_by_file_action_context" - class="org.eclipse.debug.internal.ui.actions.breakpointGroups.GroupAllByFileAction" - menubarPath="groupAllByMenu/additions" - id="org.eclipse.debug.ui.actions.GroupAllByFileAction"> - </action> - <action - label="%project.label" - helpContextId="group_all_by_project_action_context" - class="org.eclipse.debug.internal.ui.actions.breakpointGroups.GroupAllByProjectAction" - menubarPath="groupAllByMenu/additions" - id="org.eclipse.debug.ui.actions.GroupAllByProjectAction"> - </action> - <action - label="%breakpointType.label" - helpContextId="group_all_by_type_action_context" - class="org.eclipse.debug.internal.ui.actions.breakpointGroups.GroupAllByTypeAction" - menubarPath="groupAllByMenu/additions" - id="org.eclipse.debug.ui.actions.GroupAllByTypeAction"> - </action> <action label="%RemoveAllAction.label" icon="icons/full/elcl16/rem_all_co.gif" @@ -1107,29 +1078,6 @@ id="org.eclipse.debug.ui.actions.RemoveAllBreakpoints"> </action> </viewerContribution> - <!-- Breakpoint/Group actions --> - <viewerContribution - targetID="org.eclipse.debug.ui.BreakpointView" - id="org.eclipse.debug.ui.breakpointview.breakpointActions"> - <visibility> - <or> - <objectClass - name="org.eclipse.debug.core.model.IBreakpoint"> - </objectClass> - <objectClass - name="java.lang.String"> - </objectClass> - </or> - </visibility> - <action - label="%RemoveAction.label" - icon="icons/full/elcl16/rem_co.gif" - helpContextId="remove_breakpoint_action_context" - class="org.eclipse.debug.internal.ui.actions.RemoveBreakpointAction" - menubarPath="removeGroup" - id="org.eclipse.debug.ui.actions.RemoveBreakpoint"> - </action> - </viewerContribution> <!-- Breakpoint actions --> <viewerContribution targetID="org.eclipse.debug.ui.BreakpointView"
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpointGroups/GroupAllByFileAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpointGroups/GroupAllByFileAction.java deleted file mode 100644 index bb44d31..0000000 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpointGroups/GroupAllByFileAction.java +++ /dev/null
@@ -1,46 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Common Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/cpl-v10.html - * - * Contributors: - * IBM Corporation - initial implementation - *******************************************************************************/ -package org.eclipse.debug.internal.ui.actions.breakpointGroups; - -import org.eclipse.core.resources.IContainer; -import org.eclipse.core.resources.IMarker; -import org.eclipse.core.resources.IResource; -import org.eclipse.debug.core.model.IBreakpoint; - -/** - * An action which groups all breakpoints according to their resource - */ -public class GroupAllByFileAction extends AbstractGroupBreakpointsAction { - - /** - * @param breakpoint - * @return - */ - protected String getGroup(IBreakpoint breakpoint) { - StringBuffer group= new StringBuffer(); - IMarker marker = breakpoint.getMarker(); - if (marker != null) { - IResource resource = marker.getResource(); - group.append(resource.getName()); - IContainer parent = resource.getParent(); - if (parent != null) { - String parentPath= parent.getFullPath().toString().substring(1); - if (parentPath.length() > 0) { - group.append(" ["); //$NON-NLS-1$ - group.append(parentPath); - group.append(']'); - } - } - } - return group.toString(); - } - -}
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpointGroups/GroupAllByProjectAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpointGroups/GroupAllByProjectAction.java deleted file mode 100644 index 4bbd34e..0000000 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpointGroups/GroupAllByProjectAction.java +++ /dev/null
@@ -1,38 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Common Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/cpl-v10.html - * - * Contributors: - * IBM Corporation - initial implementation - *******************************************************************************/ -package org.eclipse.debug.internal.ui.actions.breakpointGroups; - -import org.eclipse.core.resources.IMarker; -import org.eclipse.core.resources.IProject; -import org.eclipse.debug.core.model.IBreakpoint; - -/** - * An action which groups all breakpoints according to their project - */ -public class GroupAllByProjectAction extends AbstractGroupBreakpointsAction { - - /** - * @param breakpoint - * @return - */ - protected String getGroup(IBreakpoint breakpoint) { - String group= null; - IMarker marker = breakpoint.getMarker(); - if (marker != null) { - IProject project = marker.getResource().getProject(); - if (project != null) { - group = project.getName(); - } - } - return group; - } - -}
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpointGroups/GroupAllByTypeAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpointGroups/GroupAllByTypeAction.java deleted file mode 100644 index 7236a75..0000000 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpointGroups/GroupAllByTypeAction.java +++ /dev/null
@@ -1,28 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Common Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/cpl-v10.html - * - * Contributors: - * IBM Corporation - initial implementation - *******************************************************************************/ -package org.eclipse.debug.internal.ui.actions.breakpointGroups; - -import org.eclipse.debug.core.DebugPlugin; -import org.eclipse.debug.core.model.IBreakpoint; - -/** - * Action which groups all breakpoints based on their breakpoint type - */ -public class GroupAllByTypeAction extends AbstractGroupBreakpointsAction { - - /* (non-Javadoc) - * @see org.eclipse.debug.internal.ui.actions.breakpointGroups.AbstractGroupBreakpointsAction#getGroup(org.eclipse.debug.core.model.IBreakpoint) - */ - protected String getGroup(IBreakpoint breakpoint) { - return DebugPlugin.getDefault().getBreakpointManager().getTypeName(breakpoint); - } - -}