String () { //| Margin is here return """ package sample; public class Sample { /** * This is a method description that is long enough to exceed right margin. * * Another paragraph of the description placed after blank line. * <p/> * Line with manual * line feed. * @param i short named parameter description * @param longParameterName long named parameter description * @param missingDescription * @return return description. * @throws XXXException description. * @throws YException description. * @throws ZException * * @invalidTag */ public abstract String sampleMethod(int i, int longParameterName, int missingDescription) throws XXXException, YException, ZException; /** One-line comment */ public abstract String sampleMethod2(); /** * Simple method description * @return */ public abstract String sampleMethod3(); """; } private static void setEnabled(JComponent c, boolean enabled) { c.setEnabled(enabled); Component[] children = c.getComponents(); for (Component child : children) { if (child instanceof JComponent) { setEnabled((JComponent)child, enabled); } } } @Override public void apply(@NotNull CodeStyleSettings settings) { super.apply(settings); settings.getCustomSettings(JavaCodeStyleSettings.class).ENABLE_JAVADOC_FORMATTING = myEnableCheckBox.isSelected(); } @Override protected void resetImpl(final @NotNull CodeStyleSettings settings) { super.resetImpl(settings); myEnableCheckBox.setSelected(settings.getCustomSettings(JavaCodeStyleSettings.class).ENABLE_JAVADOC_FORMATTING); update(); } @Override public boolean isModified(CodeStyleSettings settings) { return super.isModified(settings) || myEnableCheckBox.isSelected() != settings.getCustomSettings(JavaCodeStyleSettings.class).ENABLE_JAVADOC_FORMATTING; } @Override @NotNull protected final FileType getFileType() { return JavaFileType.INSTANCE; } @Override protected void customizeSettings() { LanguageCodeStyleSettingsProvider provider = LanguageCodeStyleSettingsProvider.forLanguage(JavaLanguage.INSTANCE); if (provider != null) { provider.customizeSettings(this, getSettingsType()); } } @Override protected @TabTitle @NotNull String getTabTitle() { return JavaBundle.message("title.javadoc"); } @Nullable @Override public Language getDefaultLanguage() { return JavaLanguage.INSTANCE; } @NlsContexts.Label public static String getOtherGroup() { return JavaBundle.message("group.javadoc.other"); } @NlsContexts.Label public static String getInvalidTagsGroup() { return JavaBundle.message("group.javadoc.invalid.tags"); } @NlsContexts.Label public static String getBlankLinesGroup() { return JavaBundle.message("group.javadoc.blank.lines"); } @NlsContexts.Label public static String getAlignmentGroup() { return JavaBundle.message("group.javadoc.alignment"); } }