diff options
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/RulerEnableDisableBreakpointAction.java')
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/RulerEnableDisableBreakpointAction.java | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/RulerEnableDisableBreakpointAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/RulerEnableDisableBreakpointAction.java deleted file mode 100644 index ff37aa448..000000000 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/RulerEnableDisableBreakpointAction.java +++ /dev/null @@ -1,67 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.debug.internal.ui.actions.breakpoints; - -import org.eclipse.core.runtime.CoreException; -import org.eclipse.debug.core.model.IBreakpoint; -import org.eclipse.debug.internal.ui.DebugUIPlugin; -import org.eclipse.debug.internal.ui.actions.ActionMessages; -import org.eclipse.debug.ui.actions.RulerBreakpointAction; -import org.eclipse.jface.text.source.IVerticalRulerInfo; -import org.eclipse.ui.texteditor.ITextEditor; -import org.eclipse.ui.texteditor.IUpdate; - -/** - * @since 3.2 - * - */ -public class RulerEnableDisableBreakpointAction extends RulerBreakpointAction implements IUpdate { - - private IBreakpoint fBreakpoint; - - public RulerEnableDisableBreakpointAction(ITextEditor editor, IVerticalRulerInfo info) { - super(editor, info); - } - - /* (non-Javadoc) - * @see org.eclipse.jface.action.Action#run() - */ - public void run() { - if (fBreakpoint != null) { - try { - fBreakpoint.setEnabled(!fBreakpoint.isEnabled()); - } catch (CoreException e) { - DebugUIPlugin.errorDialog(getEditor().getSite().getShell(), ActionMessages.RulerEnableDisableBreakpointAction_0, ActionMessages.RulerEnableDisableBreakpointAction_1, e.getStatus()); - } - } - } - - /* (non-Javadoc) - * @see org.eclipse.ui.texteditor.IUpdate#update() - */ - public void update() { - fBreakpoint = getBreakpoint(); - setEnabled(fBreakpoint != null); - if (fBreakpoint != null) { - try { - if (fBreakpoint.isEnabled()) { - setText(ActionMessages.RulerEnableDisableBreakpointAction_2); - } else { - setText(ActionMessages.RulerEnableDisableBreakpointAction_3); - } - } catch (CoreException e) { - } - } else { - setText(ActionMessages.RulerEnableDisableBreakpointAction_2); - } - } - -} |