diff options
author | Darin Wright | 2006-02-10 20:25:45 +0000 |
---|---|---|
committer | Darin Wright | 2006-02-10 20:25:45 +0000 |
commit | 42e144d40d18dde5bc43269ff622e12d0d0c6d45 (patch) | |
tree | 1a5c3c736de1ee48edff15f8ffff753737fa69df | |
parent | 35ac223a4a2cff5f83b3fe7d74a6ccfc79266a6e (diff) | |
download | eclipse.platform.debug-42e144d40d18dde5bc43269ff622e12d0d0c6d45.tar.gz eclipse.platform.debug-42e144d40d18dde5bc43269ff622e12d0d0c6d45.tar.xz eclipse.platform.debug-42e144d40d18dde5bc43269ff622e12d0d0c6d45.zip |
unused action
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/console/ConsoleTerminateActionDelegate.java | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/console/ConsoleTerminateActionDelegate.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/console/ConsoleTerminateActionDelegate.java deleted file mode 100644 index b28c65d4f..000000000 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/console/ConsoleTerminateActionDelegate.java +++ /dev/null @@ -1,61 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 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.views.console; - -import org.eclipse.debug.internal.ui.actions.context.TerminateActionDelegate; -import org.eclipse.jface.viewers.ISelectionChangedListener; -import org.eclipse.jface.viewers.IStructuredSelection; -import org.eclipse.jface.viewers.StructuredSelection; -import org.eclipse.ui.IViewPart; -import org.eclipse.ui.console.IConsole; -import org.eclipse.ui.console.IConsoleView; - -/** - * Terminate action delegate for the console. The selection must be computed - * by getting the process from the associated process console, rather than - * the selection in the view (which is text viewer/text selection). - * - * @since 3.1 - */ -public class ConsoleTerminateActionDelegate extends TerminateActionDelegate { - - private IConsoleView fConsoleView; - - /* (non-Javadoc) - * @see org.eclipse.debug.internal.ui.actions.AbstractDebugActionDelegate#getSelection() - */ - protected IStructuredSelection getSelection() { - IConsole console = fConsoleView.getConsole(); - if (console instanceof ProcessConsole) { - return new StructuredSelection(((ProcessConsole)console).getProcess()); - } - return StructuredSelection.EMPTY; - } - - - /* (non-Javadoc) - * @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart) - */ - public void init(IViewPart view) { - fConsoleView = (IConsoleView) view; - super.init(view); - } - - public synchronized void dispose() { - super.dispose(); - IViewPart view = getView(); - if (view != null) { - view.getSite().getSelectionProvider().removeSelectionChangedListener((ISelectionChangedListener) getAction()); - } - } - - -} |