Class CssParserFormatterService
java.lang.Object
de.funfried.netbeans.plugins.external.formatter.css.base.AbstractCssFormatterService
de.funfried.netbeans.plugins.external.formatter.css.cssparser.CssParserFormatterService
- All Implemented Interfaces:
 FormatterService
CssParser implementation of the 
AbstractCssFormatterService.- Author:
 - bahlef
 
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif and only if this implementation would be able to format the givenDocument, otherwisefalse.createOptionsPanel(Project project) Creates and returns theFormatterOptionsPanelfor this formatter which will be displayed in the overall options dialog underneath this formatters selection.getContinuationIndentSize(Document document) Returns the continuation indent size configured for the givenDocument, ornullif it should not affect the editor behavior.Retruns the display name of this formatter implementation.protected FormatJobgetFormatJob(StyledDocument document) Returns theFormatJob.getId()Retruns the unique identifier of this formatter implementation.getIndentSize(Document document) Returns the indent size configured for the givenDocument, ornullif it should not affect the editor behavior.getRightMargin(Document document) Returns the right margin (position of the red line in the editor) configured for the givenDocument, ornullif it should not affect the editor behavior.getSpacesPerTab(Document document) Returns the spaces per tab configured for the givenDocument, ornullif it should not affect the editor behavior.isExpandTabToSpaces(Document document) Returns the expand tab to spaces flag configured for the givenDocument, ornullif it should not affect the editor behavior.Methods inherited from class de.funfried.netbeans.plugins.external.formatter.css.base.AbstractCssFormatterService
format, getSupportedMimeTypes, organizeImports 
- 
Field Details
- 
ID
The ID of this formatter service.- See Also:
 
 
 - 
 - 
Constructor Details
- 
CssParserFormatterService
public CssParserFormatterService() 
 - 
 - 
Method Details
- 
canHandle
Returnstrueif and only if this implementation would be able to format the givenDocument, otherwisefalse. - 
getDisplayName
Retruns the display name of this formatter implementation.- Returns:
 - the display name of this formatter implementation
 
 - 
getId
Retruns the unique identifier of this formatter implementation.- Returns:
 - the unique identifier of this formatter implementation
 
 - 
createOptionsPanel
Creates and returns theFormatterOptionsPanelfor this formatter which will be displayed in the overall options dialog underneath this formatters selection.- Parameters:
 project- theProjectif the panel which is created is used to modify project specific settings, otherwisenull- Returns:
 - the 
FormatterOptionsPanelfor this formatter, ornullif there are no options a user could make for this formatter 
 - 
getContinuationIndentSize
Returns the continuation indent size configured for the givenDocument, ornullif it should not affect the editor behavior. - 
getIndentSize
Returns the indent size configured for the givenDocument, ornullif it should not affect the editor behavior. - 
getRightMargin
Returns the right margin (position of the red line in the editor) configured for the givenDocument, ornullif it should not affect the editor behavior. - 
getFormatJob
Returns theFormatJob.- Specified by:
 getFormatJobin classAbstractCssFormatterService- Parameters:
 document- theStyledDocumentwhich should be formatted
 - 
getSpacesPerTab
Returns the spaces per tab configured for the givenDocument, ornullif it should not affect the editor behavior. - 
isExpandTabToSpaces
Returns the expand tab to spaces flag configured for the givenDocument, ornullif it should not affect the editor behavior. 
 -