This document lists changes made to the Editor Indent API.
Fuller descriptions of all changes can be found below (follow links).
Not all deprecations are listed here, assuming that the deprecated APIs continue to essentially work. For a full deprecation list, please consult the Javadoc.
These API specification versions may be used to indicate that a module requires a certain API feature in order to function. For example, if you see here a feature you need which is labelled 1.20, your manifest should contain in its main attributes the line:
OpenIDE-Module-Module-Dependencies: org.netbeans.modules.editor.indent/1 > 1.20
org.netbeans.modules.editor.indent.spi.support.AutomatedIndenting
org.netbeans.modules.editor.indent.spi.CodeStylePreferences
org.netbeans.modules.editor.indent.spi.Context
org.netbeans.modules.editor.indent.api.Indent
org.netbeans.modules.editor.indent.api.IndentUtils
IndentUtils; made by: mmetelka; issues:
#192289
CodeStylePreferences; made by: vstejskal; issues:
#178311
CodeStylePreferences.Provider interface in order to allow
isolating the project-dependent code style preferences storage from the rest
of the editor infrastructure.
Context; made by: dkonecny; issues:
#159479
AutomatedIndenting; made by: vstejskal; issues:
#120357
AutomatedIndenting support class provides regex-based
automatic re-indentation of lines as user types. This is a replacement for
the deprecated ExtFormatter.getReformatBlock and INDENT_HOT_CHARS_ACCEPTOR
setting.
Indent; made by: vstejskal; issues:
#120357
int Indent.indentNewLine(int) was added as
a replacement for the old int Formatter.indentNewLine(BaseDocument, int).
CodeStylePreferences; made by: vstejskal; issues:
#141974
CodeStylePreferences class was added in order to
unify access to editor formatting/indentation preferences (ie. code style).
The API/SPI classes were moved from the official org.netbeans.api
and org.netbeans.spi packages and the stability level
of the API was set to devel to indicate that the module
and its API is still under development. The major version of the
module was set to 2 to mark the incompatible change.
There was not enough time in the Netbeans 6.0 release timeframe for us to fully stabilize the APIs offered by this module. Therefore we decided to release the development version of the APIs and do a full API review in the next release cycle.
Added Context.lineIndent(), Context.lineStartOffset(),
Context.caretOffset(), Context.setCaretOffset()
and Context.indentRegions() methods (including Context.Region class).
Fixed Context.modifyIndent() signature and implementation.
Added Context.mimePath() method.
Built on May 24 2013. | Portions Copyright 1997-2013 Oracle. All rights reserved.