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.presentation
Interface IPresentationRepairer

All Known Implementing Classes:
DefaultDamagerRepairer, RuleBasedDamagerRepairer

public interface IPresentationRepairer

A presentation repairer is a strategy used by a presentation reconciler to rebuild a damaged region in a document's presentation. A presentation repairer is assumed to be specific for a particular document content type. The presentation repairer gets the region which it should repair and constructs a "repair description". The presentation repairer merges the steps contained within this description into the text presentation passed into createPresentation.

This interface may be implemented by clients. Alternatively, clients may use the rule-based default implementation DefaultDamagerRepairer. Implementers should be registered with a presentation reconciler in order get involved in the reconciling process.

See Also:
IPresentationReconciler, IDocument, StyleRange, TextPresentation

Method Summary
 void createPresentation ( TextPresentation presentation, ITypedRegion damage)
          Fills the given presentation with the style ranges which when applied to the presentation reconciler's text viewer repair the presentation damage described by the given region.
 void setDocument ( IDocument document)
          Tells the presentation repairer on which document it will work.
 

Method Detail

setDocument

void setDocument(
IDocument document)
Tells the presentation repairer on which document it will work.

Parameters:
document - the damager's working document

createPresentation

void createPresentation(
TextPresentation presentation,
                        
ITypedRegion damage)
Fills the given presentation with the style ranges which when applied to the presentation reconciler's text viewer repair the presentation damage described by the given region.

Parameters:
presentation - the text presentation to be filled by this repairer
damage - the damage to be repaired

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