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.formatter
Class MultiPassContentFormatter.NonDeletingPositionUpdater


java.lang.Object
  extended by 

org.eclipse.jface.text.DefaultPositionUpdater
      extended by 
org.eclipse.jface.text.formatter.MultiPassContentFormatter.NonDeletingPositionUpdater
All Implemented Interfaces:
IPositionUpdater
Enclosing class:
MultiPassContentFormatter

protected class MultiPassContentFormatter.NonDeletingPositionUpdater
extends DefaultPositionUpdater

Position updater that shifts otherwise deleted positions to the next non-whitespace character. The length of the positions are truncated to one if the position was shifted.


Field Summary
 
Fields inherited from class org.eclipse.jface.text. DefaultPositionUpdater
fDocument, fLength, fOffset, fOriginalPosition, fPosition, fReplaceLength
 
Constructor Summary
MultiPassContentFormatter.NonDeletingPositionUpdater ( String category)
          Creates a new non-deleting position updater.
 
Method Summary
protected  boolean notDeleted ()
          Determines whether the currently investigated position has been deleted by the replace operation specified in the current event.
 
Methods inherited from class org.eclipse.jface.text. DefaultPositionUpdater
adaptToInsert, adaptToRemove, adaptToReplace, getCategory, isAffectingReplace, update
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiPassContentFormatter.NonDeletingPositionUpdater

public MultiPassContentFormatter.NonDeletingPositionUpdater(
String category)
Creates a new non-deleting position updater.

Parameters:
category - The position category to update its positions
Method Detail

notDeleted

protected final boolean notDeleted()
Description copied from class: DefaultPositionUpdater
Determines whether the currently investigated position has been deleted by the replace operation specified in the current event. If so, it deletes the position and removes it from the document's position category.

Overrides:
notDeleted in class DefaultPositionUpdater
Returns:
true if position has not been deleted

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