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 JDT
Release 3.5

org.eclipse.jdt.core
Interface ICodeFormatter


Deprecated. Use CodeFormatter instead (note: options have changed)

public interface ICodeFormatter

Specification for a generic source code formatter. Client plug-ins can contribute an implementation for an ICodeFormatter, through the extension point "org.eclipse.jdt.core.codeFormatter". In case none is found, a default formatter can be provided through the ToolFactory.

Since:
2.0
See Also:
ToolFactory.createCodeFormatter(), ToolFactory.createDefaultCodeFormatter(java.util.Map options)

Method Summary
  String format ( String string, int indentationLevel, int[] positions, String lineSeparator)
          Deprecated. Formats the String sourceString, and returns a string containing the formatted version.
 

Method Detail

format


String format(
String string,
              int indentationLevel,
              int[] positions,
              
String lineSeparator)
Deprecated. 
Formats the String sourceString, and returns a string containing the formatted version.

Parameters:
string - the string to format
indentationLevel - the initial indentation level, used to shift left/right the entire source fragment. An initial indentation level of zero has no effect.
positions - an array of positions to map. These are character-based source positions inside the original source, arranged in non-decreasing order, for which corresponding positions in the formatted source will be computed (so as to relocate elements associated with the original source). It updates the positions array with updated positions. If set to null, then no positions are mapped.
lineSeparator - the line separator to use in formatted source, if set to null, then the platform default one will be used.
Returns:
the formatted output string.

Eclipse JDT
Release 3.5

Copyright (c) IBM Corp. and others 2000, 2008. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire