KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ant > internal > ui > launchConfigurations > AntStreamsProxy


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 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.ant.internal.ui.launchConfigurations;
12
13
14 import org.eclipse.ant.internal.ui.IAntUIConstants;
15 import org.eclipse.debug.core.model.IStreamMonitor;
16 import org.eclipse.debug.core.model.IStreamsProxy;
17
18 /**
19  *
20  */

21 public class AntStreamsProxy implements IStreamsProxy {
22     
23     private AntStreamMonitor fErrorMonitor = new AntStreamMonitor();
24     private AntStreamMonitor fOutputMonitor = new AntStreamMonitor();
25     
26     public static final String JavaDoc ANT_DEBUG_STREAM = IAntUIConstants.PLUGIN_ID + ".ANT_DEBUG_STREAM"; //$NON-NLS-1$
27
public static final String JavaDoc ANT_VERBOSE_STREAM = IAntUIConstants.PLUGIN_ID + ".ANT_VERBOSE_STREAM"; //$NON-NLS-1$
28
public static final String JavaDoc ANT_WARNING_STREAM = IAntUIConstants.PLUGIN_ID + ".ANT_WARNING_STREAM"; //$NON-NLS-1$
29

30     private AntStreamMonitor fDebugMonitor = new AntStreamMonitor();
31     private AntStreamMonitor fVerboseMonitor = new AntStreamMonitor();
32     private AntStreamMonitor fWarningMonitor = new AntStreamMonitor();
33
34     /**
35      * @see org.eclipse.debug.core.model.IStreamsProxy#getErrorStreamMonitor()
36      */

37     public IStreamMonitor getErrorStreamMonitor() {
38         return fErrorMonitor;
39     }
40
41     /**
42      * @see org.eclipse.debug.core.model.IStreamsProxy#getOutputStreamMonitor()
43      */

44     public IStreamMonitor getOutputStreamMonitor() {
45         return fOutputMonitor;
46     }
47
48     /**
49      * @see org.eclipse.debug.core.model.IStreamsProxy#write(java.lang.String)
50      */

51     public void write(String JavaDoc input) {
52     }
53
54     public IStreamMonitor getWarningStreamMonitor() {
55         return fWarningMonitor;
56     }
57     
58     public IStreamMonitor getDebugStreamMonitor() {
59         return fDebugMonitor;
60     }
61     
62     public IStreamMonitor getVerboseStreamMonitor() {
63         return fVerboseMonitor;
64     }
65 }
66
Popular Tags