/******************************************************************************* * Copyright (c) 2006 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.erlide.ui.console.actions; import org.eclipse.debug.internal.ui.DebugUIPlugin; import org.eclipse.debug.internal.ui.IDebugHelpContextIds; import org.eclipse.debug.internal.ui.IInternalDebugUIConstants; import org.eclipse.debug.internal.ui.preferences.IDebugPreferenceConstants; import org.eclipse.debug.ui.DebugUITools; import org.eclipse.ui.PlatformUI; import org.erlide.ui.console.ConsoleMessages; /** * Toggles preference show the console when output is written to standard output * stream. * * @since 3.3 */ @SuppressWarnings("restriction") public class ShowStandardOutAction extends ShowWhenContentChangesAction { /** * Constructs an action to toggle console auto activation preferences */ public ShowStandardOutAction() { super(ConsoleMessages.ShowStandardOutAction_0); setId(DebugUIPlugin.getUniqueIdentifier() + ".ShowWhenStdoutChangesAction"); //$NON-NLS-1$ PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IDebugHelpContextIds.SHOW_WHEN_STDOUT_CHANGES_ACTION); setImageDescriptor(DebugUITools .getImageDescriptor(IInternalDebugUIConstants.IMG_ELCL_STANDARD_OUT)); } @Override protected String getKey() { return IDebugPreferenceConstants.CONSOLE_OPEN_ON_OUT; } }