KickJava   Java API By Example, From Geeks To Geeks.

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


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 represents a break after an input
18  * partition. This represents a hard break that the user cannot backspace/delete.
19  */

20 public class BreakPartition extends StreamPartition {
21
22     /**
23      * Partition type
24      */

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

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

35     public StreamPartition createNewPartition(String JavaDoc streamIdentifier, int offset, int length) {
36         return new BreakPartition(streamIdentifier, offset, length);
37     }
38
39 }
40
Popular Tags