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.jface.text
Class DefaultIndentLineAutoEditStrategy

java.lang.Object
  extended by 
org.eclipse.jface.text.DefaultIndentLineAutoEditStrategy
All Implemented Interfaces:
IAutoEditStrategy
Direct Known Subclasses:
DefaultAutoIndentStrategy

public class DefaultIndentLineAutoEditStrategy
extends Object
implements IAutoEditStrategy

This strategy always copies the indentation of the previous line.

This class is not intended to be subclassed.

Since:
3.1

Constructor Summary
DefaultIndentLineAutoEditStrategy ()
          Creates a new indent line auto edit strategy which can be installed on text viewers.
 
Method Summary
 void customizeDocumentCommand ( IDocument d, DocumentCommand c)
          Allows the strategy to manipulate the document command.
protected  int findEndOfWhiteSpace ( IDocument document, int offset, int end)
          Returns the first offset greater than offset and smaller than end whose character is not a space or tab character.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultIndentLineAutoEditStrategy

public DefaultIndentLineAutoEditStrategy()
Creates a new indent line auto edit strategy which can be installed on text viewers.

Method Detail

findEndOfWhiteSpace

protected int findEndOfWhiteSpace(
IDocument document,
                                  int offset,
                                  int end)
                           throws 
BadLocationException
Returns the first offset greater than offset and smaller than end whose character is not a space or tab character. If no such offset is found, end is returned.

Parameters:
document - the document to search in
offset - the offset at which searching start
end - the offset at which searching stops
Returns:
the offset in the specified range whose character is not a space or tab
Throws:
BadLocationException - if position is an invalid range in the given document

customizeDocumentCommand

public void customizeDocumentCommand(
IDocument d,
                                     
DocumentCommand c)
Description copied from interface: IAutoEditStrategy
Allows the strategy to manipulate the document command.

Specified by:
customizeDocumentCommand in interface IAutoEditStrategy
Parameters:
d - the document that will be changed
c - the document command describing the change

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