public class RightMarginForm
extends java.lang.Object
Note: besides adding the panel to UI it is necessary to make sure that language's own
LanguageCodeStyleSettingsProvider explicitly supports RIGHT_MARGIN field in customizeSettings()
method as shown below:
public void customizeSettings(...) {
if (settingsType == SettingsType.WRAPPING_AND_BRACES_SETTINGS) {
consumer.showStandardOptions("RIGHT_MARGIN");
}
}
| Constructor and Description |
|---|
RightMarginForm(Language language,
CodeStyleSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(CodeStyleSettings settings) |
javax.swing.JPanel |
getTopPanel() |
boolean |
isModified(CodeStyleSettings settings) |
void |
reset(CodeStyleSettings settings) |
public RightMarginForm(Language language, CodeStyleSettings settings)
public void reset(CodeStyleSettings settings)
public void apply(CodeStyleSettings settings) throws ConfigurationException
ConfigurationExceptionpublic boolean isModified(CodeStyleSettings settings)
public javax.swing.JPanel getTopPanel()