| org.eclipse.jdt.internal.ui.actions.IndentAction
Method Summary | |
public static TextEdit | indent(IDocument document, IJavaProject project) Indent the given document based on the project settings and
return a text edit describing the changes applied to the document. | public void | run() | public void | update() |
IndentAction | public IndentAction(ResourceBundle bundle, String prefix, ITextEditor editor, boolean isTabAction)(Code) | | Creates a new instance.
Parameters: bundle - the resource bundle Parameters: prefix - the prefix to use for keys in bundle Parameters: editor - the text editor Parameters: isTabAction - whether the action should insert tabs if over the indentation |
indent | public static TextEdit indent(IDocument document, IJavaProject project) throws BadLocationException(Code) | | Indent the given document based on the project settings and
return a text edit describing the changes applied to the document. Returns null
if no changes have been applied.
WARNING: This method does change the content of the given document.
This method is for internal use only, it should not be called.
Parameters: document - the document to indent Parameters: project - the project to retrieve the indentation settings from, null for workspace settings a text edit describing the changes or null if no changes required throws: BadLocationException - if the document got modified concurrently since: 3.4 |
update | public void update()(Code) | | |
|
|