Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.ui.console
Class PatternMatchEvent

java.lang.Object
  extended by 

java.util.EventObject
      extended by 
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 a TextConsole.

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
PatternMatchEvent ( TextConsole console, int matchOffset, int matchLength)
          Constructs a new pattern match event.
 
Method Summary
 int getLength ()
          Returns the length of the matched string.
 int getOffset ()
          Returns the offset of the match within the document.
 
Methods inherited from class java.util. EventObject
getSource, toString
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 found
matchOffset - the offset at which the match was found
matchLength - the length of the text that matched
Method Detail

getLength

public int getLength()
Returns the length of the matched string.

Returns:
the length of the matched string

getOffset

public int getOffset()
Returns the offset of the match within the document.

Returns:
the offset of the match within the document

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire