Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
304,100
void (@NotNull Project project, @NotNull PsiFile file, @NotNull PsiElement startElement, @NotNull PsiElement endElement) { ChangeTemplateDataLanguageAction.editSettings(project, file.getVirtualFile()); }
invoke
304,101
OptPane () { return pane( checkbox("myCustomValuesEnabled", XmlAnalysisBundle.message("html.inspections.unknown.tag.attribute.checkbox.title"), stringList("myValues", "")) ); }
getOptionsPane
304,102
String () { return XmlPsiBundle.message("xml.quickfix.add.attribute.value.text"); }
getText
304,103
String () { return getName(); }
getFamilyName
304,104
void (@NotNull Project project, @NotNull PsiFile file, final @Nullable Editor editor, @NotNull PsiElement startElement, @NotNull PsiElement endElement) { final XmlAttribute attribute = PsiTreeUtil.getNonStrictParentOfType(startElement, XmlAttribute.class); if (attribute == null || attribute.getValue() != null) { return; } final XmlAttribute attributeWithValue = XmlElementFactory.getInstance(project).createAttribute(attribute.getName(), "", startElement); final PsiElement newAttribute = attribute.replace(attributeWithValue); if (editor != null && newAttribute instanceof XmlAttribute && newAttribute.isValid()) { final XmlAttributeValue valueElement = ((XmlAttribute)newAttribute).getValueElement(); if (valueElement != null) { editor.getCaretModel().moveToOffset(valueElement.getTextOffset()); if (!IntentionPreviewUtils.isIntentionPreviewActive()) { AutoPopupController.getInstance(newAttribute.getProject()).scheduleAutoPopup(editor); } } } }
invoke
304,105
void () { super.addComponents(); myUniformIndentCheckBox = new JCheckBox(XmlBundle.message("checkbox.uniform.indent")); add(myUniformIndentCheckBox); }
addComponents
304,106
boolean (CodeStyleSettings settings, IndentOptions options) { return isFieldModified(myUniformIndentCheckBox, settings.getCustomSettings(HtmlCodeStyleSettings.class).HTML_UNIFORM_INDENT) || super.isModified(settings, options); }
isModified
304,107
void (CodeStyleSettings settings, IndentOptions options) { super.apply(settings, options); settings.getCustomSettings(HtmlCodeStyleSettings.class).HTML_UNIFORM_INDENT = myUniformIndentCheckBox.isSelected(); }
apply
304,108
void (@NotNull CodeStyleSettings settings, @NotNull IndentOptions options) { super.reset(settings, options); myUniformIndentCheckBox.setSelected(settings.getCustomSettings(HtmlCodeStyleSettings.class).HTML_UNIFORM_INDENT); }
reset
304,109
void (boolean enabled) { myUniformIndentCheckBox.setEnabled(enabled); super.setEnabled(enabled); }
setEnabled
304,110
int () { return 0; }
getRightMargin
304,111
FileType () { return UnknownFileType.INSTANCE; }
getFileType
304,112
boolean (CodeStyleSettings settings) { return myCommenterForm.isModified(settings); }
isModified
304,113
void (@NotNull CodeStyleSettings settings) { myCommenterForm.reset(settings); }
resetImpl
304,114
EditorHighlighter (final @NotNull EditorColorsScheme scheme) { return XmlHighlighterFactory.createXMLHighlighter(scheme); }
createHighlighter
304,115
int () { return 60; }
getRightMargin
304,116
int (JTextField keepBlankLines) { try { return Integer.parseInt(keepBlankLines.getText()); } catch (NumberFormatException e) { return 0; } }
getIntValue
304,117
void (final @NotNull CodeStyleSettings settings) { XmlCodeStyleSettings xmlSettings = settings.getCustomSettings(XmlCodeStyleSettings.class); myKeepBlankLines.setText(String.valueOf(xmlSettings.XML_KEEP_BLANK_LINES)); myWrapAttributes.setSelectedItem(CodeStyleSettings.WrapStyle.forWrapping(xmlSettings.XML_ATTRIBUTE_WRAP)); myAlignAttributes.setSelected(xmlSettings.XML_ALIGN_ATTRIBUTES); myKeepWhiteSpaces.setSelected(xmlSettings.XML_KEEP_WHITESPACES); mySpacesAfterTagName.setSelected(xmlSettings.XML_SPACE_AFTER_TAG_NAME); mySpacesAroundEquality.setSelected(xmlSettings.XML_SPACE_AROUND_EQUALITY_IN_ATTRIBUTE); myKeepLineBreaks.setSelected(xmlSettings.XML_KEEP_LINE_BREAKS); myKeepLineBreaksInText.setSelected(xmlSettings.XML_KEEP_LINE_BREAKS_IN_TEXT); myInEmptyTag.setSelected(xmlSettings.XML_SPACE_INSIDE_EMPTY_TAG); myWrapText.setSelected(wrapText(settings)); myWhiteSpaceAroundCDATA.setSelectedIndex(xmlSettings.XML_WHITE_SPACE_AROUND_CDATA); myKeepWhitespaceInsideCDATACheckBox.setSelected(xmlSettings.XML_KEEP_WHITE_SPACES_INSIDE_CDATA); myRightMarginForm.reset(settings); }
resetImpl
304,118
boolean (CodeStyleSettings settings) { XmlCodeStyleSettings xmlSettings = settings.getCustomSettings(XmlCodeStyleSettings.class); if (myWrapText.isSelected() != wrapText(settings)) { return true; } if (xmlSettings.XML_KEEP_BLANK_LINES != getIntValue(myKeepBlankLines)) { return true; } if (xmlSettings.XML_ATTRIBUTE_WRAP != CodeStyleSettings.WrapStyle.getId((CodeStyleSettings.WrapStyle)myWrapAttributes.getSelectedItem())) { return true; } if (xmlSettings.XML_ALIGN_ATTRIBUTES != myAlignAttributes.isSelected()) { return true; } if (xmlSettings.XML_KEEP_WHITESPACES != myKeepWhiteSpaces.isSelected()) { return true; } if (xmlSettings.XML_SPACE_AROUND_EQUALITY_IN_ATTRIBUTE != mySpacesAroundEquality.isSelected()){ return true; } if (xmlSettings.XML_SPACE_AFTER_TAG_NAME != mySpacesAfterTagName.isSelected()){ return true; } if (xmlSettings.XML_KEEP_LINE_BREAKS != myKeepLineBreaks.isSelected()) { return true; } if (xmlSettings.XML_KEEP_LINE_BREAKS_IN_TEXT != myKeepLineBreaksInText.isSelected()) { return true; } if (xmlSettings.XML_SPACE_INSIDE_EMPTY_TAG != myInEmptyTag.isSelected()){ return true; } if (xmlSettings.XML_WHITE_SPACE_AROUND_CDATA != myWhiteSpaceAroundCDATA.getSelectedIndex()) { return true; } if (xmlSettings.XML_KEEP_WHITE_SPACES_INSIDE_CDATA != this.myKeepWhitespaceInsideCDATACheckBox.isSelected()) { return true; } return myRightMarginForm.isModified(settings); }
isModified
304,119
boolean (final CodeStyleSettings settings) { XmlCodeStyleSettings xmlSettings = settings.getCustomSettings(XmlCodeStyleSettings.class); return xmlSettings.XML_TEXT_WRAP == CommonCodeStyleSettings.WRAP_AS_NEEDED; }
wrapText
304,120
JComponent () { return myPanel; }
getPanel
304,121
String () { return readFromFile(getClass(), "preview.xml.template"); }
getPreviewText
304,122
FileType () { return XmlFileType.INSTANCE; }
getFileType
304,123
void () { myJBScrollPane = new JBScrollPane() { @Override public Dimension getPreferredSize() { Dimension prefSize = super.getPreferredSize(); return new Dimension(prefSize.width + 15, prefSize.height); } }; myRightMarginForm = new RightMarginForm(XmlFileType.INSTANCE.getLanguage(), getSettings()); myRightMarginPanel = myRightMarginForm.getTopPanel(); }
createUIComponents
304,124
Dimension () { Dimension prefSize = super.getPreferredSize(); return new Dimension(prefSize.width + 15, prefSize.height); }
getPreferredSize
304,125
void (ActionEvent e) { boolean quotesRequired = !CodeStyleSettings.QuoteStyle.None.equals(myQuotesCombo.getSelectedItem()); myEnforceQuotesBox.setEnabled(quotesRequired); if (!quotesRequired) myEnforceQuotesBox.setSelected(false); }
actionPerformed
304,126
EditorHighlighter (final @NotNull EditorColorsScheme scheme) { return XmlHighlighterFactory.createXMLHighlighter(scheme); }
createHighlighter
304,127
void () { myRightMarginForm = new RightMarginForm(HtmlFileType.INSTANCE.getLanguage(), getSettings()); myRightMarginPanel = myRightMarginForm.getTopPanel(); myJBScrollPane = new JBScrollPane() { @Override public Dimension getPreferredSize() { Dimension prefSize = super.getPreferredSize(); return new Dimension(prefSize.width + 15, prefSize.height); } }; Function<String, List<String>> parser = (list) -> Arrays.asList(list.split(",")); Function<List<String>, String> joiner = (list) -> StringUtil.join(list, ","); myInsertNewLineTagNames = new ExpandableTextField(parser, joiner); myRemoveNewLineTagNames = new ExpandableTextField(parser, joiner); myDoNotAlignChildrenTagNames = new ExpandableTextField(parser, joiner); myInlineElementsTagNames = new ExpandableTextField(parser, joiner); myKeepWhiteSpacesTagNames = new ExpandableTextField(parser, joiner); myDontBreakIfInlineContent = new ExpandableTextField(parser, joiner); }
createUIComponents
304,128
Dimension () { Dimension prefSize = super.getPreferredSize(); return new Dimension(prefSize.width + 15, prefSize.height); }
getPreferredSize
304,129
int () { return 60; }
getRightMargin
304,130
int (JTextField keepBlankLines) { try { return Integer.parseInt(keepBlankLines.getText()); } catch (NumberFormatException e) { return 0; } }
getIntValue
304,131
void (final @NotNull CodeStyleSettings rootSettings) { HtmlCodeStyleSettings settings = rootSettings.getCustomSettings(HtmlCodeStyleSettings.class); myKeepBlankLines.setText(String.valueOf(settings.HTML_KEEP_BLANK_LINES)); myWrapAttributes.setSelectedItem(CodeStyleSettings.WrapStyle.forWrapping(settings.HTML_ATTRIBUTE_WRAP)); myWrapText.setSelected(settings.HTML_TEXT_WRAP != CommonCodeStyleSettings.DO_NOT_WRAP); mySpaceInEmptyTag.setSelected(settings.HTML_SPACE_INSIDE_EMPTY_TAG); myAlignAttributes.setSelected(settings.HTML_ALIGN_ATTRIBUTES); myAlignText.setSelected(settings.HTML_ALIGN_TEXT); myKeepWhiteSpaces.setSelected(settings.HTML_KEEP_WHITESPACES); mySpacesAroundTagName.setSelected(settings.HTML_SPACE_AFTER_TAG_NAME); mySpacesAroundEquality.setSelected(settings.HTML_SPACE_AROUND_EQUALITY_IN_ATTRIBUTE); myShouldKeepBlankLines.setSelected(settings.HTML_KEEP_LINE_BREAKS); myShouldKeepLineBreaksInText.setSelected(settings.HTML_KEEP_LINE_BREAKS_IN_TEXT); myInsertNewLineTagNames.setText(settings.HTML_ELEMENTS_TO_INSERT_NEW_LINE_BEFORE); myRemoveNewLineTagNames.setText(settings.HTML_ELEMENTS_TO_REMOVE_NEW_LINE_BEFORE); myDoNotAlignChildrenTagNames.setText(settings.HTML_DO_NOT_INDENT_CHILDREN_OF); myDoNotAlignChildrenMinSize.setText(settings.HTML_DO_NOT_ALIGN_CHILDREN_OF_MIN_LINES == 0 ? "" : String.valueOf(settings.HTML_DO_NOT_ALIGN_CHILDREN_OF_MIN_LINES)); myInlineElementsTagNames.setText(settings.HTML_INLINE_ELEMENTS); myDontBreakIfInlineContent.setText(settings.HTML_DONT_ADD_BREAKS_IF_INLINE_CONTENT); myKeepWhiteSpacesTagNames.setText(settings.HTML_KEEP_WHITESPACES_INSIDE); myRightMarginForm.reset(rootSettings); myQuotesCombo.setSelectedItem(settings.HTML_QUOTE_STYLE); myEnforceQuotesBox.setSelected(settings.HTML_ENFORCE_QUOTES); myBeforeFirstAttributeCombo.setSelectedItem(settings.HTML_NEWLINE_BEFORE_FIRST_ATTRIBUTE); myAfterLastAttributeCombo.setSelectedItem(settings.HTML_NEWLINE_AFTER_LAST_ATTRIBUTE); myPanelCustomizers.forEach(el -> el.reset(rootSettings)); }
resetImpl
304,132
boolean (CodeStyleSettings rootSettings) { HtmlCodeStyleSettings settings = rootSettings.getCustomSettings(HtmlCodeStyleSettings.class); if (settings.HTML_KEEP_BLANK_LINES != getIntValue(myKeepBlankLines)) { return true; } if (settings.HTML_ATTRIBUTE_WRAP != CodeStyleSettings.WrapStyle.getId((CodeStyleSettings.WrapStyle)myWrapAttributes.getSelectedItem())) { return true; } if ((settings.HTML_TEXT_WRAP == CommonCodeStyleSettings.WRAP_AS_NEEDED) != myWrapText.isSelected()) { return true; } if (settings.HTML_SPACE_INSIDE_EMPTY_TAG != mySpaceInEmptyTag.isSelected()) { return true; } if (settings.HTML_ALIGN_ATTRIBUTES != myAlignAttributes.isSelected()) { return true; } if (settings.HTML_ALIGN_TEXT != myAlignText.isSelected()) { return true; } if (settings.HTML_KEEP_WHITESPACES != myKeepWhiteSpaces.isSelected()) { return true; } if (settings.HTML_SPACE_AROUND_EQUALITY_IN_ATTRIBUTE != mySpacesAroundEquality.isSelected()) { return true; } if (settings.HTML_SPACE_AFTER_TAG_NAME != mySpacesAroundTagName.isSelected()) { return true; } if (!Objects.equals(settings.HTML_ELEMENTS_TO_INSERT_NEW_LINE_BEFORE, myInsertNewLineTagNames.getText().trim())) { return true; } if (!Objects.equals(settings.HTML_ELEMENTS_TO_REMOVE_NEW_LINE_BEFORE, myRemoveNewLineTagNames.getText().trim())) { return true; } if (!Objects.equals(settings.HTML_DO_NOT_INDENT_CHILDREN_OF, myDoNotAlignChildrenTagNames.getText().trim())) { return true; } if (settings.HTML_DO_NOT_ALIGN_CHILDREN_OF_MIN_LINES != getIntValue(myDoNotAlignChildrenMinSize)) { return true; } if (!Objects.equals(settings.HTML_INLINE_ELEMENTS, myInlineElementsTagNames.getText().trim())) return true; if (!Objects.equals(settings.HTML_DONT_ADD_BREAKS_IF_INLINE_CONTENT, myDontBreakIfInlineContent.getText().trim())) return true; if (!Objects.equals(settings.HTML_KEEP_WHITESPACES_INSIDE, myKeepWhiteSpacesTagNames.getText().trim())) { return true; } if (myShouldKeepBlankLines.isSelected() != settings.HTML_KEEP_LINE_BREAKS) { return true; } if (myShouldKeepLineBreaksInText.isSelected() != settings.HTML_KEEP_LINE_BREAKS_IN_TEXT) { return true; } if (myQuotesCombo.getSelectedItem() != settings.HTML_QUOTE_STYLE) { return true; } if (myBeforeFirstAttributeCombo.getSelectedItem() != settings.HTML_NEWLINE_BEFORE_FIRST_ATTRIBUTE) { return true; } if (myAfterLastAttributeCombo.getSelectedItem() != settings.HTML_NEWLINE_AFTER_LAST_ATTRIBUTE) { return true; } if (myRightMarginForm.isModified(rootSettings) || myEnforceQuotesBox.isSelected() != settings.HTML_ENFORCE_QUOTES) return true; return myPanelCustomizers.stream().anyMatch(el -> el.isModified(rootSettings)); }
isModified
304,133
JComponent () { return myPanel; }
getPanel
304,134
String () { return readFromFile(this.getClass(), "preview.html.template"); }
getPreviewText
304,135
FileType () { return HtmlFileType.INSTANCE; }
getFileType
304,136
void (CodeStyleSettings settings) { addIndentOptionsTab(settings); addTab(new CodeStyleXmlPanel(settings)); addTab(new ArrangementSettingsPanel(settings, XMLLanguage.INSTANCE)); addTab(new GenerationCodeStylePanel(settings, XMLLanguage.INSTANCE)); for (CodeStyleSettingsProvider provider : CodeStyleSettingsProvider.EXTENSION_POINT_NAME.getExtensionList()) { if (provider.getLanguage() == XMLLanguage.INSTANCE && !provider.hasSettingsPage()) { createTab(provider); } } }
initTabs
304,137
void (CodeStyleSettings settings) { addIndentOptionsTab(settings); addTab(new CodeStyleHtmlPanel(settings)); addTab(new ArrangementSettingsPanel(settings, HTMLLanguage.INSTANCE)); addTab(new GenerationCodeStylePanel(settings, HTMLLanguage.INSTANCE)); }
initTabs
304,138
XmlSettings () { return ApplicationManager.getApplication().getService(XmlSettings.class); }
getInstance
304,139
XmlSettings () { return this; }
getState
304,140
void (final @NotNull XmlSettings state) { XmlSerializerUtil.copyBean(state, this); }
loadState
304,141
CodeStyleConfigurable (final @NotNull CodeStyleSettings baseSettings, final @NotNull CodeStyleSettings modelSettings) { return new CodeStyleAbstractConfigurable(baseSettings, modelSettings, getConfigurableDisplayNameText()){ @Override protected @NotNull CodeStyleAbstractPanel createPanel(final @NotNull CodeStyleSettings settings) { return new XmlCodeStyleMainPanel(getCurrentSettings(), settings); } @Override public String getHelpTopic() { return "reference.settingsdialog.IDE.globalcodestyle.xml"; } }; }
createConfigurable
304,142
CodeStyleAbstractPanel (final @NotNull CodeStyleSettings settings) { return new XmlCodeStyleMainPanel(getCurrentSettings(), settings); }
createPanel
304,143
String () { return "reference.settingsdialog.IDE.globalcodestyle.xml"; }
getHelpTopic
304,144
CustomCodeStyleSettings (@NotNull CodeStyleSettings settings) { return new XmlCodeStyleSettings(settings); }
createCustomSettings
304,145
Language () { return XMLLanguage.INSTANCE; }
getLanguage
304,146
String (@NotNull SettingsType settingsType) { if (settingsType == SettingsType.INDENT_SETTINGS) { return CodeStyleAbstractPanel.readFromFile(getClass(), "preview.xml.template"); } return ""; }
getCodeSample
304,147
void (@NotNull CodeStyleSettingsCustomizable consumer, @NotNull SettingsType settingsType) { customizeXml(consumer, settingsType); }
customizeSettings
304,148
void (@NotNull CodeStyleSettingsCustomizable consumer, @NotNull SettingsType settingsType) { if (settingsType == SettingsType.WRAPPING_AND_BRACES_SETTINGS) { consumer.showStandardOptions("RIGHT_MARGIN", "WRAP_ON_TYPING"); } if (settingsType == SettingsType.COMMENTER_SETTINGS) { consumer.showStandardOptions(CodeStyleSettingsCustomizable.CommenterOption.LINE_COMMENT_AT_FIRST_COLUMN.name(), CodeStyleSettingsCustomizable.CommenterOption.BLOCK_COMMENT_AT_FIRST_COLUMN.name(), CodeStyleSettingsCustomizable.CommenterOption.BLOCK_COMMENT_ADD_SPACE.name()); } }
customizeXml
304,149
void (@NotNull CommonCodeStyleSettings commonSettings, @NotNull CommonCodeStyleSettings.IndentOptions indentOptions) { commonSettings.setForceArrangeMenuAvailable(true); // HACK [yole] if (PlatformUtils.isRubyMine()) { indentOptions.INDENT_SIZE = 2; } }
customizeDefaults
304,150
IndentOptionsEditor () { return new SmartIndentOptionsEditor(); }
getIndentOptionsEditor
304,151
Language () { return HTMLLanguage.INSTANCE; }
getLanguage
304,152
String () { return getDisplayName(); }
getConfigurableDisplayName
304,153
String (@NotNull SettingsType settingsType) { return CodeStyleAbstractPanel.readFromFile(this.getClass(), "preview.html.indent.template"); }
getCodeSample
304,154
CodeStyleConfigurable (@NotNull CodeStyleSettings baseSettings, @NotNull CodeStyleSettings modelSettings) { return new HtmlLanguageCodeStyleConfigurable(baseSettings, modelSettings, getDisplayName()); }
createConfigurable
304,155
void (@NotNull CodeStyleSettingsCustomizable consumer, @NotNull SettingsType settingsType) { XmlLanguageCodeStyleSettingsProvider.customizeXml(consumer, settingsType); }
customizeSettings
304,156
IndentOptionsEditor () { return new HtmlIndentOptionsEditor(); }
getIndentOptionsEditor
304,157
CodeStyleAbstractPanel (final @NotNull CodeStyleSettings settings) { return new HtmlCodeStyleMainPanel(getCurrentSettings(), settings); }
createPanel
304,158
String () { return "reference.settingsdialog.IDE.globalcodestyle.html"; }
getHelpTopic
304,159
HtmlSettings () { return ApplicationManager.getApplication().getService(HtmlSettings.class); }
getInstance
304,160
HtmlSettings () { return this; }
getState
304,161
void (final @NotNull HtmlSettings state) { XmlSerializerUtil.copyBean(state, this); }
loadState
304,162
List<HtmlPanelCustomizer> () { List<HtmlCodeStylePanelExtension> extensions = EP_NAME.getExtensionList(); if (extensions.isEmpty()) { return ContainerUtil.emptyList(); } return ContainerUtil.map(extensions, el -> el.getCustomizer()); }
getCustomizers
304,163
Set<String> () { return myFiltersEnabledByDefault; }
getFiltersEnabledByDefault
304,164
void (@NotNull Set<String> filtersEnabledByDefault) { myFiltersEnabledByDefault = filtersEnabledByDefault; }
setFiltersEnabledByDefault
304,165
boolean (@NotNull ZenCodingFilter filter) { return myFiltersEnabledByDefault.contains(filter.getSuffix()); }
isFilterEnabledByDefault
304,166
void (int emmetExpandShortcut) { myEmmetExpandShortcut = emmetExpandShortcut; }
setEmmetExpandShortcut
304,167
int () { return myEmmetExpandShortcut; }
getEmmetExpandShortcut
304,168
boolean () { return myPreviewEnabled; }
isPreviewEnabled
304,169
void (boolean previewEnabled) { myPreviewEnabled = previewEnabled; }
setPreviewEnabled
304,170
boolean () { return myEmmetEnabled; }
isEmmetEnabled
304,171
void (boolean emmetEnabled) { myEmmetEnabled = emmetEnabled; }
setEmmetEnabled
304,172
void (boolean hrefAutoDetectEnabled) { myHrefAutoDetectEnabled = hrefAutoDetectEnabled; }
setHrefAutoDetectEnabled
304,173
boolean () { return myHrefAutoDetectEnabled; }
isHrefAutoDetectEnabled
304,174
boolean () { return myAddEditPointAtTheEndOfTemplate; }
isAddEditPointAtTheEndOfTemplate
304,175
void (boolean addEditPointAtTheEndOfTemplate) { myAddEditPointAtTheEndOfTemplate = addEditPointAtTheEndOfTemplate; }
setAddEditPointAtTheEndOfTemplate
304,176
String () { return myBemElementSeparator; }
getBemElementSeparator
304,177
void (@Nullable String bemElementSeparator) { myBemElementSeparator = StringUtil.notNullize(bemElementSeparator); }
setBemElementSeparator
304,178
String () { return myBemModifierSeparator; }
getBemModifierSeparator
304,179
void (@Nullable String bemModifierSeparator) { myBemModifierSeparator = StringUtil.notNullize(bemModifierSeparator); }
setBemModifierSeparator
304,180
String () { return myBemShortElementPrefix; }
getBemShortElementPrefix
304,181
void (@Nullable String bemShortElementPrefix) { myBemShortElementPrefix = StringUtil.notNullize(bemShortElementPrefix); }
setBemShortElementPrefix
304,182
void (final @NotNull EmmetOptions state) { XmlSerializerUtil.copyBean(state, this); }
loadState
304,183
EmmetOptions () { return ApplicationManager.getApplication().getService(EmmetOptions.class); }
getInstance
304,184
boolean () { return !PlatformUtils.isDataGrip(); }
canCreateConfigurable
304,185
List<Configurable> () { List<Configurable> configurables = new SmartList<>(new XmlEmmetConfigurable()); for (ZenCodingGenerator zenCodingGenerator : ZenCodingGenerator.getInstances()) { ContainerUtil.addIfNotNull(configurables, zenCodingGenerator.createConfigurable()); } return configurables; }
getAvailableConfigurables
304,186
void () { myTemplateExpandShortcutPanel.setSelectedChar((char)EmmetOptions.getInstance().getEmmetExpandShortcut()); for (Configurable configurable : myInnerConfigurables) { configurable.reset(); } super.reset(); }
reset
304,187
boolean () { if (EmmetOptions.getInstance().getEmmetExpandShortcut() != myTemplateExpandShortcutPanel.getSelectedChar() || super.isModified()) { return true; } for (Configurable configurable : myInnerConfigurables) { if (configurable.isModified()) { return true; } } return false; }
isModified
304,188
void () { myTemplateExpandShortcutPanel = null; super.disposeUIResources(); }
disposeUIResources
304,189
String () { return "reference.idesettings.emmet"; }
getId
304,190
boolean () { return true; }
hasOwnContent
304,191
Configurable[] () { return myNestedConfigurables; }
buildConfigurables
304,192
String () { return XmlBundle.message("options.html.display.name"); }
getDisplayName
304,193
Icon () { return HtmlFileType.INSTANCE.getIcon(); }
getIcon
304,194
SyntaxHighlighter () { return new HtmlFileHighlighter(); }
getHighlighter
304,195
String () { return "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2//EN\">\n" + "<!--\n" + "* Sample comment\n" + "-->\n" + "<HTML>\n" + "<head>\n" + "<title>" + FULL_PRODUCT_NAME + "</title>\n" + "</head>\n" + "<body>\n" + "<h1>" + FULL_PRODUCT_NAME + "</h1>\n" + "<p><br><b><IMG border=0 height=12 src=\"images/hg.gif\" width=18 >\n" + "What is " + FULL_PRODUCT_NAME.replaceAll(" ", "&nbsp;") + "? &#x00B7; &Alpha; </b><br><br>\n" + "<<custom_tag_name>custom-tag</custom_tag_name>>" + "hello" + "</<custom_tag_name>custom_tag</custom_tag_name>>\n" + "</body>\n" + "</html>"; }
getDemoText
304,196
String () { return XmlBundle.message("options.xml.display.name"); }
getDisplayName
304,197
Icon () { return XmlFileType.INSTANCE.getIcon(); }
getIcon
304,198
SyntaxHighlighter () { return new XmlFileHighlighter(); }
getHighlighter
304,199
String () { return """ <?xml version='1.0' encoding='ISO-8859-1' ?> <!DOCTYPE index> <!-- Some xml example --> <index version="1.0" xmlns:<bg><np>pf</np></bg>="http://test"> <name>Main Index</name> <indexitem text="rename" target="refactoring.rename"/> <indexitem text="move" target="refactoring.move"/> <indexitem text="migrate" target="refactoring.migrate"/> <indexitem text="usage search" target="find.findUsages"/> <<matched>indexitem</matched>>Matched tag name</<matched>indexitem</matched>> <someTextWithEntityRefs>&amp; &#x00B7;</someTextWithEntityRefs> <withCData><![CDATA[ <object class="MyClass" key="constant"> </object> ]]> </withCData> <indexitem text="project" target="project.management"/> <<custom_tag_name>custom-tag</custom_tag_name>>hello</<custom_tag_name>custom-tag</custom_tag_name>> <<bg><np>pf</np></bg>:foo <bg><np>pf</np></bg>:bar="bar"/> </index>"""; }
getDemoText