public abstract class CodeStyleAbstractPanel extends java.lang.Object implements Disposable, ComponentHighlightingListener
Disposable.Parent
Modifier and Type | Field and Description |
---|---|
protected static int[] |
ourWrappings |
TOPIC
Modifier | Constructor and Description |
---|---|
protected |
CodeStyleAbstractPanel(CodeStyleSettings settings) |
protected |
CodeStyleAbstractPanel(Language defaultLanguage,
CodeStyleSettings currentSettings,
CodeStyleSettings settings) |
Modifier and Type | Method and Description |
---|---|
protected void |
addPanelToWatch(java.awt.Component component) |
abstract void |
apply(CodeStyleSettings settings) |
void |
applyPredefinedSettings(PredefinedCodeStyle codeStyle) |
protected PsiFile |
createFileFromText(Project project,
java.lang.String text)
Deprecated.
Do not override this method. Use LanguageCodeStyleSettingsProvider.createFileFromText() instead.
|
protected abstract EditorHighlighter |
createHighlighter(EditorColorsScheme scheme) |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
protected PsiFile |
doReformat(Project project,
PsiFile psiFile) |
protected static void |
fillWrappingCombo(javax.swing.JComboBox wrapCombo) |
protected CodeStyleSettings |
getCurrentSettings() |
Language |
getDefaultLanguage()
Override this method if the panel is linked to a specific language.
|
protected Editor |
getEditor() |
protected java.lang.String |
getFileExt() |
protected abstract FileType |
getFileType() |
protected java.lang.String |
getFileTypeExtension(FileType fileType) |
protected static int |
getIndexForWrapping(int value) |
protected CodeStyleSettings |
getModelSettings() |
OptionsContainingConfigurable |
getOptionIndexer() |
abstract javax.swing.JComponent |
getPanel() |
protected abstract java.lang.String |
getPreviewText() |
protected abstract int |
getRightMargin() |
protected CodeStyleSettings |
getSettings() |
protected java.lang.String |
getTabTitle() |
void |
highlight(javax.swing.JComponent component,
java.lang.String searchString) |
void |
highlightOptions(java.lang.String searchString) |
protected void |
installPreviewPanel(javax.swing.JPanel previewPanel) |
boolean |
isCopyFromMenuAvailable()
Deprecated.
|
abstract boolean |
isModified(CodeStyleSettings settings) |
void |
onSomethingChanged()
This method is called on any UI changes (controls altered or initialized, preview updated, etc.).
|
protected void |
prepareForReformat(PsiFile psiFile) |
java.util.Set<java.lang.String> |
processListOptions() |
static java.lang.String |
readFromFile(java.lang.Class resourceContainerClass,
java.lang.String fileName) |
void |
reset(CodeStyleSettings settings) |
protected abstract void |
resetImpl(CodeStyleSettings settings) |
protected void |
setEditorText(java.lang.String text,
boolean updateHighlighter) |
void |
setModel(CodeStyleSchemesModel model) |
protected void |
setShouldUpdatePreview(boolean shouldUpdatePreview) |
void |
setupCopyFromMenu(javax.swing.JPopupMenu copyMenu) |
protected void |
somethingChanged() |
protected void |
updatePreview(boolean useDefaultSample) |
protected CodeStyleAbstractPanel(CodeStyleSettings settings)
protected CodeStyleAbstractPanel(Language defaultLanguage, CodeStyleSettings currentSettings, CodeStyleSettings settings)
protected void setShouldUpdatePreview(boolean shouldUpdatePreview)
public void setModel(CodeStyleSchemesModel model)
protected void somethingChanged()
protected void addPanelToWatch(java.awt.Component component)
protected void updatePreview(boolean useDefaultSample)
protected void setEditorText(java.lang.String text, boolean updateHighlighter)
protected abstract int getRightMargin()
protected void prepareForReformat(PsiFile psiFile)
protected java.lang.String getFileExt()
@Deprecated protected PsiFile createFileFromText(Project project, java.lang.String text)
protected abstract EditorHighlighter createHighlighter(EditorColorsScheme scheme)
protected abstract FileType getFileType()
protected abstract java.lang.String getPreviewText()
public abstract void apply(CodeStyleSettings settings) throws ConfigurationException
ConfigurationException
public final void reset(CodeStyleSettings settings)
protected static int getIndexForWrapping(int value)
public abstract boolean isModified(CodeStyleSettings settings)
public abstract javax.swing.JComponent getPanel()
public void dispose()
Disposable
dispose
in interface Disposable
protected abstract void resetImpl(CodeStyleSettings settings)
protected static void fillWrappingCombo(javax.swing.JComboBox wrapCombo)
public static java.lang.String readFromFile(java.lang.Class resourceContainerClass, java.lang.String fileName)
protected void installPreviewPanel(javax.swing.JPanel previewPanel)
protected java.lang.String getFileTypeExtension(FileType fileType)
public void onSomethingChanged()
protected Editor getEditor()
protected CodeStyleSettings getSettings()
public java.util.Set<java.lang.String> processListOptions()
public OptionsContainingConfigurable getOptionIndexer()
public final void applyPredefinedSettings(PredefinedCodeStyle codeStyle)
public Language getDefaultLanguage()
protected java.lang.String getTabTitle()
protected CodeStyleSettings getCurrentSettings()
protected CodeStyleSettings getModelSettings()
public void setupCopyFromMenu(javax.swing.JPopupMenu copyMenu)
@Deprecated public boolean isCopyFromMenuAvailable()
public final void highlight(javax.swing.JComponent component, java.lang.String searchString)
highlight
in interface ComponentHighlightingListener
public void highlightOptions(java.lang.String searchString)