public abstract class CustomizableLanguageCodeStylePanel extends CodeStyleAbstractPanel implements CodeStyleSettingsCustomizable
Modifier and Type | Class and Description |
---|---|
protected static class |
CustomizableLanguageCodeStylePanel.OrderedOption |
CodeStyleSettingsCustomizable.BlankLinesOption, CodeStyleSettingsCustomizable.CommenterOption, CodeStyleSettingsCustomizable.IndentOption, CodeStyleSettingsCustomizable.OptionAnchor, CodeStyleSettingsCustomizable.SpacingOption, CodeStyleSettingsCustomizable.WrappingOrBraceOption
Disposable.Parent
ourWrappings
BLANK_LINES, BLANK_LINES_KEEP, BRACE_OPTIONS, BRACE_PLACEMENT_OPTIONS, BRACE_PLACEMENT_VALUES, BRACE_VALUES, SPACES_AROUND_OPERATORS, SPACES_BEFORE_KEYWORD, SPACES_BEFORE_LEFT_BRACE, SPACES_BEFORE_PARENTHESES, SPACES_IN_TERNARY_OPERATOR, SPACES_IN_TYPE_ARGUMENTS, SPACES_IN_TYPE_PARAMETERS, SPACES_OTHER, SPACES_WITHIN, SPACES_WITHIN_TYPE_ARGUMENTS, WRAP_ON_TYPING_OPTIONS, WRAP_ON_TYPING_VALUES, WRAP_OPTIONS, WRAP_OPTIONS_FOR_SINGLETON, WRAP_VALUES, WRAP_VALUES_FOR_SINGLETON, WRAPPING_ARRAY_INITIALIZER, WRAPPING_ASSERT_STATEMENT, WRAPPING_ASSIGNMENT, WRAPPING_BINARY_OPERATION, WRAPPING_BRACES, WRAPPING_CALL_CHAIN, WRAPPING_COMMENTS, WRAPPING_DOWHILE_STATEMENT, WRAPPING_EXTENDS_KEYWORD, WRAPPING_EXTENDS_LIST, WRAPPING_FIELDS_VARIABLES_GROUPS, WRAPPING_FOR_STATEMENT, WRAPPING_IF_STATEMENT, WRAPPING_KEEP, WRAPPING_METHOD_ARGUMENTS_WRAPPING, WRAPPING_METHOD_PARAMETERS, WRAPPING_METHOD_PARENTHESES, WRAPPING_MODIFIER_LIST, WRAPPING_SWITCH_STATEMENT, WRAPPING_TERNARY_OPERATION, WRAPPING_THROWS_KEYWORD, WRAPPING_THROWS_LIST, WRAPPING_TRY_RESOURCE_LIST, WRAPPING_TRY_STATEMENT, WRAPPING_WHILE_STATEMENT
TOPIC
Modifier | Constructor and Description |
---|---|
protected |
CustomizableLanguageCodeStylePanel(CodeStyleSettings settings) |
Modifier and Type | Method and Description |
---|---|
protected EditorHighlighter |
createHighlighter(EditorColorsScheme scheme) |
protected static javax.swing.JPanel |
createPreviewPanel() |
protected void |
customizeSettings() |
protected PsiFile |
doReformat(Project project,
PsiFile psiFile) |
protected java.lang.String |
getFileExt() |
protected FileType |
getFileType() |
protected java.lang.String |
getPreviewText() |
protected int |
getRightMargin() |
abstract LanguageCodeStyleSettingsProvider.SettingsType |
getSettingsType() |
protected void |
init() |
void |
moveStandardOption(java.lang.String fieldName,
java.lang.String newGroup)
Moves a standard option to another group.
|
protected void |
resetDefaultNames() |
protected <T extends CustomizableLanguageCodeStylePanel.OrderedOption> |
sortOptions(java.util.Collection<? extends T> options) |
addPanelToWatch, apply, applyPredefinedSettings, createFileFromText, dispose, fillWrappingCombo, getCurrentSettings, getDefaultLanguage, getEditor, getFileTypeExtension, getIndexForWrapping, getModelSettings, getOptionIndexer, getPanel, getSettings, getTabTitle, highlight, highlightOptions, installPreviewPanel, isCopyFromMenuAvailable, isModified, onSomethingChanged, prepareForReformat, processListOptions, readFromFile, reset, resetImpl, setEditorText, setModel, setShouldUpdatePreview, setupCopyFromMenu, somethingChanged, updatePreview
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
renameStandardOption, showAllStandardOptions, showCustomOption, showCustomOption, showStandardOptions
protected CustomizableLanguageCodeStylePanel(CodeStyleSettings settings)
protected void init()
protected void customizeSettings()
public abstract LanguageCodeStyleSettingsProvider.SettingsType getSettingsType()
protected void resetDefaultNames()
protected java.lang.String getPreviewText()
getPreviewText
in class CodeStyleAbstractPanel
protected int getRightMargin()
getRightMargin
in class CodeStyleAbstractPanel
protected java.lang.String getFileExt()
getFileExt
in class CodeStyleAbstractPanel
protected FileType getFileType()
getFileType
in class CodeStyleAbstractPanel
protected EditorHighlighter createHighlighter(EditorColorsScheme scheme)
createHighlighter
in class CodeStyleAbstractPanel
protected PsiFile doReformat(Project project, PsiFile psiFile)
doReformat
in class CodeStyleAbstractPanel
protected static javax.swing.JPanel createPreviewPanel()
public void moveStandardOption(java.lang.String fieldName, java.lang.String newGroup)
CodeStyleSettingsCustomizable
moveStandardOption
in interface CodeStyleSettingsCustomizable
fieldName
- The field name of the option to move (as defined in CommonCodeStyleSettings
class).newGroup
- The new group name (the group may be one of existing ones). A custom group name can be used if supported by consumer.protected <T extends CustomizableLanguageCodeStylePanel.OrderedOption> java.util.List<T> sortOptions(java.util.Collection<? extends T> options)