public abstract class OptionTreeWithPreviewPanel extends CustomizableLanguageCodeStylePanel
| Modifier and Type | Class and Description |
|---|---|
protected static class |
OptionTreeWithPreviewPanel.MyTreeCellRenderer |
CustomizableLanguageCodeStylePanel.OrderedOptionCodeStyleSettingsCustomizable.BlankLinesOption, CodeStyleSettingsCustomizable.CommenterOption, CodeStyleSettingsCustomizable.IndentOption, CodeStyleSettingsCustomizable.OptionAnchor, CodeStyleSettingsCustomizable.SpacingOption, CodeStyleSettingsCustomizable.WrappingOrBraceOptionDisposable.Parent| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isFirstUpdate |
protected MultiMap<java.lang.String,com.intellij.application.options.codeStyle.OptionTreeWithPreviewPanel.CustomBooleanOptionInfo> |
myCustomOptions |
protected java.util.ArrayList<com.intellij.application.options.codeStyle.OptionTreeWithPreviewPanel.BooleanOptionKey> |
myKeys |
protected javax.swing.JTree |
myOptionsTree |
protected javax.swing.JPanel |
myPanel |
ourWrappingsBLANK_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_STATEMENTTOPIC| Constructor and Description |
|---|
OptionTreeWithPreviewPanel(CodeStyleSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(CodeStyleSettings settings) |
protected javax.swing.JTree |
createOptionsTree() |
protected void |
enableOption(java.lang.String optionName) |
protected java.util.List<java.lang.String> |
getGroupOrder(java.util.List<? extends com.intellij.application.options.codeStyle.OptionTreeWithPreviewPanel.BooleanOptionKey> options) |
javax.swing.JComponent |
getPanel() |
void |
highlightOptions(java.lang.String searchString) |
protected void |
init() |
protected void |
initBooleanField(java.lang.String fieldName,
java.lang.String title,
java.lang.String groupName) |
protected void |
initCustomOptions(java.lang.String groupName) |
protected abstract void |
initTables() |
boolean |
isModified(CodeStyleSettings settings) |
void |
moveStandardOption(java.lang.String fieldName,
java.lang.String newGroup)
Moves a standard option to another group.
|
java.util.Set<java.lang.String> |
processListOptions() |
void |
renameStandardOption(java.lang.String fieldName,
java.lang.String newTitle) |
protected void |
resetImpl(CodeStyleSettings settings) |
protected boolean |
shouldHideOptions() |
void |
showAllStandardOptions() |
void |
showCustomOption(java.lang.Class<? extends CustomCodeStyleSettings> settingsClass,
java.lang.String fieldName,
java.lang.String title,
java.lang.String groupName,
CodeStyleSettingsCustomizable.OptionAnchor anchor,
java.lang.String anchorFieldName,
java.lang.Object... options) |
void |
showCustomOption(java.lang.Class<? extends CustomCodeStyleSettings> settingsClass,
java.lang.String fieldName,
java.lang.String title,
java.lang.String groupName,
java.lang.Object... options) |
void |
showStandardOptions(java.lang.String... optionNames) |
protected void |
updateOptions(boolean showAllStandardOptions,
java.lang.String... allowedOptions) |
createHighlighter, createPreviewPanel, customizeSettings, doReformat, getFileExt, getFileType, getPreviewText, getRightMargin, getSettingsType, resetDefaultNames, sortOptionsaddPanelToWatch, applyPredefinedSettings, createFileFromText, dispose, fillWrappingCombo, getCurrentSettings, getDefaultLanguage, getEditor, getFileTypeExtension, getIndexForWrapping, getModelSettings, getOptionIndexer, getSettings, getTabTitle, highlight, installPreviewPanel, isCopyFromMenuAvailable, onSomethingChanged, prepareForReformat, readFromFile, reset, setEditorText, setModel, setShouldUpdatePreview, setupCopyFromMenu, somethingChanged, updatePreviewprotected javax.swing.JTree myOptionsTree
protected final java.util.ArrayList<com.intellij.application.options.codeStyle.OptionTreeWithPreviewPanel.BooleanOptionKey> myKeys
protected final javax.swing.JPanel myPanel
protected MultiMap<java.lang.String,com.intellij.application.options.codeStyle.OptionTreeWithPreviewPanel.CustomBooleanOptionInfo> myCustomOptions
protected boolean isFirstUpdate
public OptionTreeWithPreviewPanel(CodeStyleSettings settings)
protected void init()
init in class CustomizableLanguageCodeStylePanelpublic void showAllStandardOptions()
public void showStandardOptions(java.lang.String... optionNames)
public void showCustomOption(java.lang.Class<? extends CustomCodeStyleSettings> settingsClass, java.lang.String fieldName, java.lang.String title, java.lang.String groupName, java.lang.Object... options)
public void showCustomOption(java.lang.Class<? extends CustomCodeStyleSettings> settingsClass, java.lang.String fieldName, java.lang.String title, java.lang.String groupName, CodeStyleSettingsCustomizable.OptionAnchor anchor, java.lang.String anchorFieldName, java.lang.Object... options)
public void renameStandardOption(java.lang.String fieldName,
java.lang.String newTitle)
protected void updateOptions(boolean showAllStandardOptions,
java.lang.String... allowedOptions)
protected void enableOption(java.lang.String optionName)
protected javax.swing.JTree createOptionsTree()
protected java.util.List<java.lang.String> getGroupOrder(java.util.List<? extends com.intellij.application.options.codeStyle.OptionTreeWithPreviewPanel.BooleanOptionKey> options)
protected abstract void initTables()
protected void resetImpl(CodeStyleSettings settings)
resetImpl in class CodeStyleAbstractPanelpublic void apply(CodeStyleSettings settings)
apply in class CodeStyleAbstractPanelpublic boolean isModified(CodeStyleSettings settings)
isModified in class CodeStyleAbstractPanelprotected void initBooleanField(java.lang.String fieldName,
java.lang.String title,
java.lang.String groupName)
protected void initCustomOptions(java.lang.String groupName)
public javax.swing.JComponent getPanel()
getPanel in class CodeStyleAbstractPanelpublic java.util.Set<java.lang.String> processListOptions()
processListOptions in class CodeStyleAbstractPanelprotected boolean shouldHideOptions()
public void moveStandardOption(java.lang.String fieldName,
java.lang.String newGroup)
CodeStyleSettingsCustomizablemoveStandardOption in interface CodeStyleSettingsCustomizablemoveStandardOption in class CustomizableLanguageCodeStylePanelfieldName - 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.public void highlightOptions(java.lang.String searchString)
highlightOptions in class CodeStyleAbstractPanel