KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > internal > ui > views > console > ShowStandardOutAction


1 /*******************************************************************************
2  * Copyright (c) 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.debug.internal.ui.views.console;
12
13 import org.eclipse.debug.internal.ui.DebugUIPlugin;
14 import org.eclipse.debug.internal.ui.IDebugHelpContextIds;
15 import org.eclipse.debug.internal.ui.IInternalDebugUIConstants;
16 import org.eclipse.debug.internal.ui.preferences.IDebugPreferenceConstants;
17 import org.eclipse.debug.ui.DebugUITools;
18 import org.eclipse.ui.PlatformUI;
19
20 /**
21  * Toggles preference show the console when output is written
22  * to standard output stream.
23  *
24  * @since 3.3
25  */

26 public class ShowStandardOutAction extends ShowWhenContentChangesAction {
27     
28     /**
29      * Constructs an action to toggle console auto activation preferences
30      */

31     public ShowStandardOutAction() {
32         super(ConsoleMessages.ShowStandardOutAction_0);
33         setId(DebugUIPlugin.getUniqueIdentifier() + ".ShowWhenStdoutChangesAction"); //$NON-NLS-1$
34
PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IDebugHelpContextIds.SHOW_WHEN_STDOUT_CHANGES_ACTION);
35         setImageDescriptor(DebugUITools.getImageDescriptor(IInternalDebugUIConstants.IMG_ELCL_STANDARD_OUT));
36     }
37
38     protected String JavaDoc getKey() {
39         return IDebugPreferenceConstants.CONSOLE_OPEN_ON_OUT;
40     }
41
42 }
43
Popular Tags