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

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.core.filebuffers.manipulation
Class RemoveTrailingWhitespaceOperation

java.lang.Object
  extended by 

org.eclipse.core.filebuffers.manipulation.TextFileBufferOperation
      extended by 
org.eclipse.core.filebuffers.manipulation.RemoveTrailingWhitespaceOperation
All Implemented Interfaces:
IFileBufferOperation

public class RemoveTrailingWhitespaceOperation
extends TextFileBufferOperation

A text file buffer operation that removes all trailing whitespace.

Since:
3.1

Constructor Summary
RemoveTrailingWhitespaceOperation ()
          Creates a remove trailing whitespace operation.
 
Method Summary
protected   MultiTextEditWithProgress computeTextEdit ( ITextFileBuffer fileBuffer, IProgressMonitor progressMonitor)
          Computes and returns a text edit.
protected   DocumentRewriteSessionType getDocumentRewriteSessionType ()
          Returns the rewrite session type that corresponds to the text edit sequence.
 
Methods inherited from class org.eclipse.core.filebuffers.manipulation. TextFileBufferOperation
getOperationName, run
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoveTrailingWhitespaceOperation

public RemoveTrailingWhitespaceOperation()
Creates a remove trailing whitespace operation.

Method Detail

computeTextEdit

protected 
MultiTextEditWithProgress computeTextEdit(
ITextFileBuffer fileBuffer,
                                                    
IProgressMonitor progressMonitor)
                                             throws 
CoreException
Description copied from class: TextFileBufferOperation
Computes and returns a text edit. Subclasses have to provide that method.

Specified by:
computeTextEdit in class TextFileBufferOperation
Parameters:
fileBuffer - the text file buffer to manipulate
progressMonitor - the progress monitor
Returns:
the text edits describing the content manipulation
Throws:
CoreException - in case the computation failed

getDocumentRewriteSessionType

protected 
DocumentRewriteSessionType getDocumentRewriteSessionType()
Description copied from class: TextFileBufferOperation
Returns the rewrite session type that corresponds to the text edit sequence.

Specified by:
getDocumentRewriteSessionType in class TextFileBufferOperation
Returns:
the rewrite session type

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