33import com .intellij .application .options .CodeStyleAbstractConfigurable ;
44import com .intellij .application .options .CodeStyleAbstractPanel ;
55import com .intellij .application .options .TabbedLanguageCodeStylePanel ;
6- import com .intellij .application .options .codeStyle .WrappingAndBracesPanel ;
7- import com .intellij .lang .Language ;
86import com .intellij .openapi .editor .Editor ;
97import com .intellij .openapi .editor .colors .EditorColorsScheme ;
108import com .intellij .openapi .editor .ex .EditorEx ;
@@ -54,17 +52,23 @@ public CsvCodeStyleMainPanel(CodeStyleSettings currentSettings, CodeStyleSetting
5452 @ Override
5553 protected void initTabs (CodeStyleSettings settings ) {
5654 addTab (new CsvCodeStyleOptionTreeWithPreviewPanel (settings ));
55+ addTab (new CsvWrappingPanel (settings ));
5756 }
5857
59- public class CsvCodeStyleOptionTreeWithPreviewPanel extends WrappingAndBracesPanel {
60-
61- public CsvCodeStyleOptionTreeWithPreviewPanel (CodeStyleSettings settings ) {
58+ protected class CsvWrappingPanel extends MyWrappingAndBracesPanel {
59+ public CsvWrappingPanel (CodeStyleSettings settings ) {
6260 super (settings );
6361 }
6462
6563 @ Override
66- public LanguageCodeStyleSettingsProvider .SettingsType getSettingsType () {
67- return LanguageCodeStyleSettingsProvider .SettingsType .LANGUAGE_SPECIFIC ;
64+ public String getTabTitle () {
65+ return "Wrapping" ;
66+ }
67+ }
68+
69+ protected class CsvCodeStyleOptionTreeWithPreviewPanel extends MyWrappingAndBracesPanel {
70+ public CsvCodeStyleOptionTreeWithPreviewPanel (CodeStyleSettings settings ) {
71+ super (settings );
6872 }
6973
7074 @ Override
@@ -73,8 +77,8 @@ protected String getTabTitle() {
7377 }
7478
7579 @ Override
76- public Language getDefaultLanguage () {
77- return CsvCodeStyleMainPanel . this . getDefaultLanguage () ;
80+ public LanguageCodeStyleSettingsProvider . SettingsType getSettingsType () {
81+ return LanguageCodeStyleSettingsProvider . SettingsType . LANGUAGE_SPECIFIC ;
7882 }
7983
8084 private void updatePreviewHighlighter (EditorEx editor ) {
0 commit comments