Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.eclipse.debug.internal.ui.views.console
Class InputPartition  view InputPartition download InputPartition.java

java.lang.Object
  extended byorg.eclipse.jface.text.Region
      extended byorg.eclipse.jface.text.TypedRegion
          extended byorg.eclipse.debug.internal.ui.views.console.StreamPartition
              extended byorg.eclipse.debug.internal.ui.views.console.InputPartition
All Implemented Interfaces:
org.eclipse.jface.text.IRegion, org.eclipse.jface.text.ITypedRegion

public class InputPartition
extends StreamPartition

A partition in a console document that contains input from the keyboard.


Field Summary
private  boolean fReadOnly
          Once an input partition has been written to standard-in, it cannot be modified.
static java.lang.String INPUT_PARTITION_TYPE
          Partition type
 
Fields inherited from class org.eclipse.debug.internal.ui.views.console.StreamPartition
 
Fields inherited from class org.eclipse.jface.text.TypedRegion
 
Fields inherited from class org.eclipse.jface.text.Region
 
Constructor Summary
InputPartition(java.lang.String streamIdentifier, int offset, int length)
           
 
Method Summary
 boolean canBeCombinedWith(StreamPartition partition)
          Returns whether this partition is allowed to be combined with the given partition.
 StreamPartition createNewPartition(java.lang.String streamIdentifier, int offset, int length)
          Creates a new patition of this type with the given color, offset, and length.
 boolean isReadOnly()
          Returns whether this partition is read-only.
 void setReadOnly(boolean readOnly)
          Sets whether this partition is read-only.
 
Methods inherited from class org.eclipse.debug.internal.ui.views.console.StreamPartition
combineWith, equals, getStreamIdentifier, hashCode
 
Methods inherited from class org.eclipse.jface.text.TypedRegion
getType
 
Methods inherited from class org.eclipse.jface.text.Region
getLength, getOffset
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.text.IRegion
getLength, getOffset
 

Field Detail

fReadOnly

private boolean fReadOnly
Once an input partition has been written to standard-in, it cannot be modified.


INPUT_PARTITION_TYPE

public static final java.lang.String INPUT_PARTITION_TYPE
Partition type

Constructor Detail

InputPartition

public InputPartition(java.lang.String streamIdentifier,
                      int offset,
                      int length)
Method Detail

createNewPartition

public StreamPartition createNewPartition(java.lang.String streamIdentifier,
                                          int offset,
                                          int length)
Description copied from class: StreamPartition
Creates a new patition of this type with the given color, offset, and length.

Specified by:
createNewPartition in class StreamPartition

setReadOnly

public void setReadOnly(boolean readOnly)
Sets whether this partition is read-only.


isReadOnly

public boolean isReadOnly()
Returns whether this partition is read-only.


canBeCombinedWith

public boolean canBeCombinedWith(StreamPartition partition)
Returns whether this partition is allowed to be combined with the given partition. Once read-only, this partition cannot be combined.

Overrides:
canBeCombinedWith in class StreamPartition