org.eclipse.cdt.internal.ui.buildconsole
Class BuildConsolePartition

java.lang.Object
  extended by org.eclipse.jface.text.Region
      extended by org.eclipse.jface.text.TypedRegion
          extended by org.eclipse.cdt.internal.ui.buildconsole.BuildConsolePartition
All Implemented Interfaces:
org.eclipse.jface.text.IRegion, org.eclipse.jface.text.ITypedRegion

public class BuildConsolePartition
extends org.eclipse.jface.text.TypedRegion


Field Summary
static java.lang.String CONSOLE_PARTITION_TYPE
          Partition type
 
Constructor Summary
BuildConsolePartition(BuildConsoleStream stream, int offset, int length)
           
 
Method Summary
 boolean canBeCombinedWith(BuildConsolePartition partition)
          Returns whether this partition is allowed to be combined with the given partition.
 BuildConsolePartition combineWith(BuildConsolePartition partition)
          Returns a new partition representing this and the given parition combined.
 BuildConsolePartition createNewPartition(int offset, int length)
          Creates a new patition of this type with the given color, offset, and length.
 boolean equals(java.lang.Object partition)
           
 BuildConsoleStream getStream()
          Returns this partition's stream
 int 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
getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.text.IRegion
getLength, getOffset
 

Field Detail

CONSOLE_PARTITION_TYPE

public static final java.lang.String CONSOLE_PARTITION_TYPE
Partition type

Constructor Detail

BuildConsolePartition

public BuildConsolePartition(BuildConsoleStream stream,
                             int offset,
                             int length)
Method Detail

equals

public boolean equals(java.lang.Object partition)
Overrides:
equals in class org.eclipse.jface.text.TypedRegion
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class org.eclipse.jface.text.TypedRegion
See Also:
Object.hashCode()

getStream

public BuildConsoleStream getStream()
Returns this partition's stream

Returns:
this partition's stream

canBeCombinedWith

public boolean canBeCombinedWith(BuildConsolePartition partition)
Returns whether this partition is allowed to be combined with the given partition.

Parameters:
partition -
Returns:
boolean

combineWith

public BuildConsolePartition combineWith(BuildConsolePartition partition)
Returns a new partition representing this and the given parition combined.

Parameters:
partition -
Returns:
partition

createNewPartition

public BuildConsolePartition createNewPartition(int offset,
                                                int length)
Creates a new patition of this type with the given color, offset, and length.

Parameters:
offset -
length -
Returns:
a new partition with the given range