org.eclipse.cdt.internal.ui.buildconsole
Class BuildConsolePartition
java.lang.Object
org.eclipse.jface.text.Region
org.eclipse.jface.text.TypedRegion
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
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 |
CONSOLE_PARTITION_TYPE
public static final java.lang.String CONSOLE_PARTITION_TYPE
- Partition type
BuildConsolePartition
public BuildConsolePartition(BuildConsoleStream stream,
int offset,
int length)
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