|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.aptana.ide.editors.unified.UnifiedAutoIndentStrategy
com.aptana.ide.editor.js.formatting.JSAutoIndentStrategy
public class JSAutoIndentStrategy
A class for auto-insertion of items into JavaScript
| Field Summary |
|---|
| Fields inherited from class com.aptana.ide.editors.unified.UnifiedAutoIndentStrategy |
|---|
configuration, context, sourceViewer |
| Constructor Summary | |
|---|---|
JSAutoIndentStrategy(EditorFileContext context,
org.eclipse.jface.text.source.SourceViewerConfiguration configuration,
org.eclipse.jface.text.source.ISourceViewer sourceViewer)
Creates a new instance of the JSAutoEditStrategy |
|
| Method Summary | |
|---|---|
void |
customizeDocumentCommand(org.eclipse.jface.text.IDocument document,
org.eclipse.jface.text.DocumentCommand command)
customizeDocumentCommand |
int |
getCurrentIndentLevel(java.lang.String source,
int pos)
|
protected int |
getIndentationLevelAtOffset(org.eclipse.jface.text.IDocument d,
int offset)
|
protected LexemeList |
getLexemeList()
Creates a lexeme list |
org.eclipse.jface.preference.IPreferenceStore |
getPreferenceStore()
Returns the current preference store |
java.lang.String |
indent(int level,
java.lang.String languageContent,
java.lang.String lineSeparator)
indents string |
protected void |
indentAfterNewLine(org.eclipse.jface.text.IDocument d,
org.eclipse.jface.text.DocumentCommand c)
indentAfterNewLine |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JSAutoIndentStrategy(EditorFileContext context,
org.eclipse.jface.text.source.SourceViewerConfiguration configuration,
org.eclipse.jface.text.source.ISourceViewer sourceViewer)
context - configuration - sourceViewer - | Method Detail |
|---|
public void customizeDocumentCommand(org.eclipse.jface.text.IDocument document,
org.eclipse.jface.text.DocumentCommand command)
customizeDocumentCommand in interface org.eclipse.jface.text.IAutoEditStrategycustomizeDocumentCommand in class UnifiedAutoIndentStrategydocument - command - IAutoEditStrategy.customizeDocumentCommand(org.eclipse.jface.text.IDocument,
org.eclipse.jface.text.DocumentCommand)
protected int getIndentationLevelAtOffset(org.eclipse.jface.text.IDocument d,
int offset)
d - offset -
public java.lang.String indent(int level,
java.lang.String languageContent,
java.lang.String lineSeparator)
level - languageContent - lineSeparator -
protected void indentAfterNewLine(org.eclipse.jface.text.IDocument d,
org.eclipse.jface.text.DocumentCommand c)
indentAfterNewLine in class UnifiedAutoIndentStrategyd - c - public org.eclipse.jface.preference.IPreferenceStore getPreferenceStore()
UnifiedAutoIndentStrategy
getPreferenceStore in interface IPreferenceClientgetPreferenceStore in class UnifiedAutoIndentStrategyUnifiedAutoIndentStrategy.getPreferenceStore()protected LexemeList getLexemeList()
UnifiedAutoIndentStrategy
getLexemeList in class UnifiedAutoIndentStrategyUnifiedAutoIndentStrategy.getLexemeList()
public int getCurrentIndentLevel(java.lang.String source,
int pos)
source - pos -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||