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
Interface IRewriteTarget


public interface IRewriteTarget

A target publishing the required functions to modify a document that is displayed in a text viewer. It provides access to the document and control over the redraw behavior and the grouping of document changes into undo commands.

Since:
2.0
See Also:
ITextViewer, IDocument, IUndoManager

Method Summary
 void beginCompoundChange ()
          If an undo manager is connected to the document's visible presentation, this method tells the undo manager to fold all subsequent changes into one single undo command until endCompoundChange is called.
 void endCompoundChange ()
          If an undo manager is connected to the document's visible presentation, this method tells the undo manager to stop the folding of changes into a single undo command.
  IDocument getDocument ()
          Returns the document of this target.
 void setRedraw (boolean redraw)
          Disables/enables redrawing while modifying the target's document.
 

Method Detail

getDocument


IDocument getDocument()
Returns the document of this target.

Returns:
the document of this target

setRedraw

void setRedraw(boolean redraw)
Disables/enables redrawing while modifying the target's document.

Parameters:
redraw - true if the document's visible presentation should be updated, false otherwise

beginCompoundChange

void beginCompoundChange()
If an undo manager is connected to the document's visible presentation, this method tells the undo manager to fold all subsequent changes into one single undo command until endCompoundChange is called.


endCompoundChange

void endCompoundChange()
If an undo manager is connected to the document's visible presentation, this method tells the undo manager to stop the folding of changes into a single undo command. After this call, all subsequent changes are considered to be individually undo-able.


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