com.aptana.ide.editor.js.formatting
Class JSCodeFormatterOptions

java.lang.Object
  extended by com.aptana.ide.editor.js.formatting.JSCodeFormatterOptions

public class JSCodeFormatterOptions
extends java.lang.Object

Author:
Pavel Petrochenko

Field Summary
 int blankLinesBeforeMethod
          blankLinesBeforeMethod
 int blankLinesInStartOfMethodBody
          blankLinesInStartOfMethodBody
 boolean compactElseIf
          compactElseIf
 boolean doFormatting
          do formatting
static int END_LINE
          END_LINE
 int formatterBracePositionForArrayInitializer
          formatterBracePositionForArrayInitializer
 int formatterBracePositionForBlock
          formatterBracePositionForBlock
 int formatterBracePositionForBlockInCase
          formatterBracePositionForBlockInCase
 int formatterBracePositionForBlockInSwitch
          formatterBracePositionForBlockInSwitch
 int formatterBracePositionForMethodDecl
          formatterBracePositionForMethodDecl
 java.lang.String formatterTabChar
          formatterTabChar
 boolean indentBreaksCompareToCases
          indentBreaksCompareToCases
 boolean indentEmptyLines
          indentEmptyLines
 boolean indentStatementsCompareToBlock
          indentStatementsCompareToBlock
 boolean indentStatementsCompareToBody
          indentStatementsCompareToBody
 boolean indentStatementsCompareToCases
          indentStatementsCompareToCases
 boolean indentStatementsCompareToSwitch
          indentStatementsCompareToSwitch
 boolean insertNewLineBeforeCatch
          insertNewLineBeforeCatch
 boolean insertNewLineBeforeElse
          insertNewLineBeforeElse
 boolean insertNewLineBeforeFinally
          insertNewLineBeforeFinally
 boolean insertNewLineBeforeIf
          Insert a new line before if statements
 boolean insertNewLineBeforeReturn
          Insert a new line before return statements
 boolean insertNewLineBeforeWhile
          insertNewLineBeforeWhile
 boolean keepElseStatementOnSameLine
          keepElseStatementOnSameLine
 boolean keepEmptyArrayInitializerOnOneLine
          keepEmptyArrayInitializerOnOneLine
 boolean keepGuardianClauseOnOneLine
          keepGuardianClauseOnOneLine
 boolean keepSimpleIfOnOneLine
          keepSimpleIfOnOneLine
 boolean keepThenSameLine
          keepThenSameLine
static int NEXT_LINE
          NEXT_LINE
static int NEXT_LINE_SHIFTED
          NEXT_LINE_SHIFTED
 boolean preserveLineBreaks
          keepEmptyArrayInitializerOnOneLine
 int tabSize
          tabSize
 
Constructor Summary
JSCodeFormatterOptions()
           
JSCodeFormatterOptions(java.util.Map map, org.eclipse.core.resources.IProject project)
           
 
Method Summary
 int parseOption(org.eclipse.core.runtime.preferences.IEclipsePreferences store, java.lang.String id)
           
 int parseOption(org.eclipse.jface.preference.IPreferenceStore store, java.lang.String id)
           
 int parseOption(java.util.Map store, java.lang.String id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

END_LINE

public static final int END_LINE
END_LINE

See Also:
Constant Field Values

NEXT_LINE

public static final int NEXT_LINE
NEXT_LINE

See Also:
Constant Field Values

NEXT_LINE_SHIFTED

public static final int NEXT_LINE_SHIFTED
NEXT_LINE_SHIFTED

See Also:
Constant Field Values

insertNewLineBeforeElse

public boolean insertNewLineBeforeElse
insertNewLineBeforeElse


insertNewLineBeforeCatch

public boolean insertNewLineBeforeCatch
insertNewLineBeforeCatch


insertNewLineBeforeFinally

public boolean insertNewLineBeforeFinally
insertNewLineBeforeFinally


insertNewLineBeforeWhile

public boolean insertNewLineBeforeWhile
insertNewLineBeforeWhile


insertNewLineBeforeReturn

public boolean insertNewLineBeforeReturn
Insert a new line before return statements


insertNewLineBeforeIf

public boolean insertNewLineBeforeIf
Insert a new line before if statements


keepThenSameLine

public boolean keepThenSameLine
keepThenSameLine


keepSimpleIfOnOneLine

public boolean keepSimpleIfOnOneLine
keepSimpleIfOnOneLine


keepElseStatementOnSameLine

public boolean keepElseStatementOnSameLine
keepElseStatementOnSameLine


compactElseIf

public boolean compactElseIf
compactElseIf


keepGuardianClauseOnOneLine

public boolean keepGuardianClauseOnOneLine
keepGuardianClauseOnOneLine


formatterTabChar

public java.lang.String formatterTabChar
formatterTabChar


tabSize

public int tabSize
tabSize


indentStatementsCompareToBody

public boolean indentStatementsCompareToBody
indentStatementsCompareToBody


indentStatementsCompareToBlock

public boolean indentStatementsCompareToBlock
indentStatementsCompareToBlock


indentStatementsCompareToSwitch

public boolean indentStatementsCompareToSwitch
indentStatementsCompareToSwitch


indentStatementsCompareToCases

public boolean indentStatementsCompareToCases
indentStatementsCompareToCases


indentBreaksCompareToCases

public boolean indentBreaksCompareToCases
indentBreaksCompareToCases


indentEmptyLines

public boolean indentEmptyLines
indentEmptyLines


blankLinesBeforeMethod

public int blankLinesBeforeMethod
blankLinesBeforeMethod


blankLinesInStartOfMethodBody

public int blankLinesInStartOfMethodBody
blankLinesInStartOfMethodBody


preserveLineBreaks

public boolean preserveLineBreaks
keepEmptyArrayInitializerOnOneLine


formatterBracePositionForMethodDecl

public int formatterBracePositionForMethodDecl
formatterBracePositionForMethodDecl


formatterBracePositionForBlock

public int formatterBracePositionForBlock
formatterBracePositionForBlock


formatterBracePositionForBlockInCase

public int formatterBracePositionForBlockInCase
formatterBracePositionForBlockInCase


formatterBracePositionForBlockInSwitch

public int formatterBracePositionForBlockInSwitch
formatterBracePositionForBlockInSwitch


formatterBracePositionForArrayInitializer

public int formatterBracePositionForArrayInitializer
formatterBracePositionForArrayInitializer


keepEmptyArrayInitializerOnOneLine

public boolean keepEmptyArrayInitializerOnOneLine
keepEmptyArrayInitializerOnOneLine


doFormatting

public boolean doFormatting
do formatting

Constructor Detail

JSCodeFormatterOptions

public JSCodeFormatterOptions()

JSCodeFormatterOptions

public JSCodeFormatterOptions(java.util.Map map,
                              org.eclipse.core.resources.IProject project)
Parameters:
map -
project -
Method Detail

parseOption

public final int parseOption(org.eclipse.jface.preference.IPreferenceStore store,
                             java.lang.String id)
Parameters:
store -
id -
Returns:
option

parseOption

public final int parseOption(java.util.Map store,
                             java.lang.String id)
Parameters:
store -
id -
Returns:
option

parseOption

public final int parseOption(org.eclipse.core.runtime.preferences.IEclipsePreferences store,
                             java.lang.String id)
Parameters:
store -
id -
Returns:
option