KickJava   Java API By Example, From Geeks To Geeks.

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


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

11 package org.eclipse.debug.internal.ui.views.console;
12
13
14 import org.eclipse.debug.internal.ui.DebugUIPlugin;
15
16 /**
17  * A partition in a console document that contains output from a process.
18  */

19 public class OutputPartition extends StreamPartition {
20
21     /**
22      * Partition type
23      */

24     public static final String JavaDoc OUTPUT_PARTITION_TYPE = DebugUIPlugin.getUniqueIdentifier() + ".OUTPUT_PARTITION_TYPE"; //$NON-NLS-1$
25

26     
27     public OutputPartition(String JavaDoc streamIdentifier, int offset, int length) {
28         super(streamIdentifier, offset, length, OUTPUT_PARTITION_TYPE);
29     }
30     
31     /**
32      * @see org.eclipse.debug.internal.ui.views.console.StreamPartition#createNewPartition(String, int, int)
33      */

34     public StreamPartition createNewPartition(String JavaDoc streamIdetifier, int offset, int length) {
35         return new OutputPartition(streamIdetifier, offset, length);
36     }
37 }
38
Popular Tags