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
Class SequentialRewriteTextStore


java.lang.Object
  extended by 
org.eclipse.jface.text.SequentialRewriteTextStore
All Implemented Interfaces:
ITextStore

Deprecated. since 3.3 as GapTextStore performs better even for sequential rewrite scenarios

public class SequentialRewriteTextStore
extends Object
implements ITextStore

A text store that optimizes a given source text store for sequential rewriting. While rewritten it keeps a list of replace command that serve as patches for the source store. Only on request, the source store is indeed manipulated by applying the patch commands to the source text store.

Since:
2.0

Constructor Summary
SequentialRewriteTextStore ( ITextStore source)
          Deprecated. Creates a new sequential rewrite store for the given source store.
 
Method Summary
 void dispose ()
          Deprecated. Disposes this rewrite store.
 char get (int offset)
          Deprecated. Returns the character at the specified offset.
  String get (int offset, int length)
          Deprecated. Returns the text of the specified character range.
 int getLength ()
          Deprecated. Returns number of characters stored in this text store.
  ITextStore getSourceStore ()
          Deprecated. Returns the source store of this rewrite store.
 void replace (int offset, int length, String text)
          Deprecated. Replaces the specified character range with the given text.
 void set ( String text)
          Deprecated. Replace the content of the text store with the given text.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SequentialRewriteTextStore

public SequentialRewriteTextStore(
ITextStore source)
Deprecated. 
Creates a new sequential rewrite store for the given source store.

Parameters:
source - the source text store
Method Detail

getSourceStore

public 
ITextStore getSourceStore()
Deprecated. 
Returns the source store of this rewrite store.

Returns:
the source store of this rewrite store

replace

public void replace(int offset,
                    int length,
                    
String text)
Deprecated. 
Description copied from interface: ITextStore
Replaces the specified character range with the given text. replace(getLength(), 0, "some text") is a valid call and appends text to the end of the text store.

Specified by:
replace in interface ITextStore
Parameters:
offset - the offset of the range to be replaced
length - the number of characters to be replaced
text - the substitution text

set

public void set(
String text)
Deprecated. 
Description copied from interface: ITextStore
Replace the content of the text store with the given text. Convenience method for replace(0, getLength(), text.

Specified by:
set in interface ITextStore
Parameters:
text - the new content of the text store

get

public 
String get(int offset,
                  int length)
Deprecated. 
Description copied from interface: ITextStore
Returns the text of the specified character range.

Specified by:
get in interface ITextStore
Parameters:
offset - the offset of the range
length - the length of the range
Returns:
the text of the range

get

public char get(int offset)
Deprecated. 
Description copied from interface: ITextStore
Returns the character at the specified offset.

Specified by:
get in interface ITextStore
Parameters:
offset - the offset in this text store
Returns:
the character at this offset

getLength

public int getLength()
Deprecated. 
Description copied from interface: ITextStore
Returns number of characters stored in this text store.

Specified by:
getLength in interface ITextStore
Returns:
the number of characters stored in this text store

dispose

public void dispose()
Deprecated. 
Disposes this rewrite store.


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