Package org.eclipse.ui.console
Class PatternMatchEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.eclipse.ui.console.PatternMatchEvent
-
- All Implemented Interfaces:
Serializable
public class PatternMatchEvent extends EventObject
An event describing a pattern match in a text console. The source of the event is aTextConsole.Clients may instantiate this class.
- Since:
- 3.1
- See Also:
IPatternMatchListener,TextConsole, Serialized Form- Restriction:
- This class is not intended to be subclassed by clients.
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description PatternMatchEvent(TextConsole console, int matchOffset, int matchLength)Constructs a new pattern match event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetLength()Returns the length of the matched string.intgetOffset()Returns the offset of the match within the document.-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Constructor Detail
-
PatternMatchEvent
public PatternMatchEvent(TextConsole console, int matchOffset, int matchLength)
Constructs a new pattern match event.- Parameters:
console- the console in which the match was foundmatchOffset- the offset at which the match was foundmatchLength- the length of the text that matched
-
-