|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.groovy.eclipse.refactoring.formatter.FormatterPreferencesOnStore
com.spidasoftware.EclipseFormatter.SpidaFormatterPreferences
public class SpidaFormatterPreferences
This class provides the client with various methods to set his or her desired groovy formatting preferences. SpidaFormatterPreferences extends FormatterPreferencesOnStore which adds setter methods to allow the client to change the default groovy formatting preferences.
| Constructor Summary | |
|---|---|
SpidaFormatterPreferences(org.eclipse.jface.preference.IPreferenceStore preferences)
A one argument constructor that takes an IPreferenceStore object. |
|
| Method Summary | |
|---|---|
int |
getBracesEnd()
A no-argument method that will return the value for where the braces end relative to the last line of code of the method, field, conditional, etc. |
int |
getBracesStart()
A no-argument method that will return a value for where the braces will start relative to the method, field, conditional declaration, etc. |
int |
getIndentationMultiline()
A no-argument method that returns the indentation level for wrapped lines. |
int |
getIndentationSize()
A no-argument method that returns the value for the indentation size. |
int |
getLongListLength()
A no-argument method that returns the value for the length of a square bracket list. |
int |
getMaxLineLength()
A no-argument method that will return the value for the maximum length of a line of code. |
int |
getTabSize()
A no-argument method returns the value for the size of a tab. |
boolean |
isIndentEmptyLines()
A no-argument method that returns a boolean indicating if the formatter is indenting empty lines. |
boolean |
isRemoveUnnecessarySemicolons()
A no-argument method that returns the boolean indicating if the formatter will remove unnecessary semicolons. |
int |
setBracesEnd(int newValue)
A one-argument method that will set a new value for where the braces end relative to the last line of code of the method, field, conditional, etc. |
int |
setBracesStart(int newValue)
A one-argument method that will set a new value for where the braces will start relative to the method, field, conditional declaration, etc. |
int |
setIndentationMultiline(int newValue)
A one-argument method that sets a new value for the indentation level for wrapped lines. |
int |
setIndentationSize(int newValue)
A one-argument method that sets a new value for the indentation size. |
boolean |
setIndentEmptyLines(boolean newValue)
A one-argument method that takes a boolean indicating if the formatter will indent empty lines. |
int |
setLongListLength(int newValue)
A one-argument method that sets a new value for the length of a square bracket list. |
int |
setMaxLineLength(int newValue)
A one-argument method that will set a new value for the maximum length of a line of code. |
boolean |
setRemoveUnnecessarySemicolons(boolean newValue)
A one-argument method that takes a boolean indicating if the formatter will remove unnecessary semicolons. |
int |
setTabSize(int newValue)
If the tabs are being used for formatting, then this one-argument method will set a new value for the size of a tab. |
boolean |
setUseTabs(boolean newValue)
A one-argument method that will take a boolean indicating whether to use tabs or not. |
boolean |
useTabs()
A no-argument method that will return a boolean indicating if the formatter is using tabs. |
| Methods inherited from class org.codehaus.groovy.eclipse.refactoring.formatter.FormatterPreferencesOnStore |
|---|
isSmartPaste, refresh |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpidaFormatterPreferences(org.eclipse.jface.preference.IPreferenceStore preferences)
preferences - | Method Detail |
|---|
public int setBracesStart(int newValue)
newValue -
public boolean setUseTabs(boolean newValue)
newValue -
public int setBracesEnd(int newValue)
newValue -
public int setMaxLineLength(int newValue)
newValue -
public boolean setIndentEmptyLines(boolean newValue)
newValue -
public int setIndentationSize(int newValue)
newValue -
public int setTabSize(int newValue)
newValue -
public boolean setRemoveUnnecessarySemicolons(boolean newValue)
newValue -
public int setLongListLength(int newValue)
newValue -
public int setIndentationMultiline(int newValue)
newValue -
public int getBracesStart()
getBracesStart in interface org.codehaus.groovy.eclipse.refactoring.formatter.IFormatterPreferencesgetBracesStart in class org.codehaus.groovy.eclipse.refactoring.formatter.FormatterPreferencesOnStorepublic boolean useTabs()
useTabs in interface org.codehaus.groovy.eclipse.refactoring.formatter.IFormatterPreferencesuseTabs in class org.codehaus.groovy.eclipse.refactoring.formatter.FormatterPreferencesOnStorepublic int getBracesEnd()
getBracesEnd in interface org.codehaus.groovy.eclipse.refactoring.formatter.IFormatterPreferencesgetBracesEnd in class org.codehaus.groovy.eclipse.refactoring.formatter.FormatterPreferencesOnStorepublic int getMaxLineLength()
getMaxLineLength in interface org.codehaus.groovy.eclipse.refactoring.formatter.IFormatterPreferencesgetMaxLineLength in class org.codehaus.groovy.eclipse.refactoring.formatter.FormatterPreferencesOnStorepublic boolean isIndentEmptyLines()
isIndentEmptyLines in interface org.codehaus.groovy.eclipse.refactoring.formatter.IFormatterPreferencesisIndentEmptyLines in class org.codehaus.groovy.eclipse.refactoring.formatter.FormatterPreferencesOnStorepublic int getIndentationSize()
getIndentationSize in interface org.codehaus.groovy.eclipse.refactoring.formatter.IFormatterPreferencesgetIndentationSize in class org.codehaus.groovy.eclipse.refactoring.formatter.FormatterPreferencesOnStorepublic int getTabSize()
getTabSize in interface org.codehaus.groovy.eclipse.refactoring.formatter.IFormatterPreferencesgetTabSize in class org.codehaus.groovy.eclipse.refactoring.formatter.FormatterPreferencesOnStorepublic boolean isRemoveUnnecessarySemicolons()
isRemoveUnnecessarySemicolons in interface org.codehaus.groovy.eclipse.refactoring.formatter.IFormatterPreferencesisRemoveUnnecessarySemicolons in class org.codehaus.groovy.eclipse.refactoring.formatter.FormatterPreferencesOnStorepublic int getLongListLength()
getLongListLength in interface org.codehaus.groovy.eclipse.refactoring.formatter.IFormatterPreferencesgetLongListLength in class org.codehaus.groovy.eclipse.refactoring.formatter.FormatterPreferencesOnStorepublic int getIndentationMultiline()
getIndentationMultiline in interface org.codehaus.groovy.eclipse.refactoring.formatter.IFormatterPreferencesgetIndentationMultiline in class org.codehaus.groovy.eclipse.refactoring.formatter.FormatterPreferencesOnStore
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||