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
Answertopia.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.jface.text.reconciler
Class DirtyRegion


java.lang.Object
  extended by 
org.eclipse.jface.text.reconciler.DirtyRegion
All Implemented Interfaces:
IRegion, ITypedRegion

public class DirtyRegion
extends Object
implements ITypedRegion

A dirty region describes a document range which has been changed.


Field Summary
static  String INSERT
          Identifies an insert operation.
static  String REMOVE
          Identifies a remove operation.
 
Constructor Summary
DirtyRegion (int offset, int length, String type, String text)
          Creates a new dirty region.
 
Method Summary
 int getLength ()
          Returns the length of the region.
 int getOffset ()
          Returns the offset of the region.
  String getText ()
          Returns the text that changed as part of the region change.
  String getType ()
          Returns the content type of the region.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSERT

public static final 
String INSERT
Identifies an insert operation.

See Also:
Constant Field Values

REMOVE

public static final 
String REMOVE
Identifies a remove operation.

See Also:
Constant Field Values
Constructor Detail

DirtyRegion

public DirtyRegion(int offset,
                   int length,
                   
String type,
                   
String text)
Creates a new dirty region.

Parameters:
offset - the offset within the document where the change occurred
length - the length of the text within the document that changed
type - the type of change that this region represents: INSERT REMOVE
text - the substitution text
Method Detail

getOffset

public int getOffset()
Description copied from interface: IRegion
Returns the offset of the region.

Specified by:
getOffset in interface IRegion
Returns:
the offset of the region

getLength

public int getLength()
Description copied from interface: IRegion
Returns the length of the region.

Specified by:
getLength in interface IRegion
Returns:
the length of the region

getType

public 
String getType()
Description copied from interface: ITypedRegion
Returns the content type of the region.

Specified by:
getType in interface ITypedRegion
Returns:
the content type of the region

getText

public 
String getText()
Returns the text that changed as part of the region change.

Returns:
the changed text

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