Java Code Examples for com.intellij.psi.xml.XmlTokenType.XML_EQ

The following are Jave code examples for showing how to use XML_EQ of the com.intellij.psi.xml.XmlTokenType class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: intellij-ce-playground   File:   Source Code and License Vote up 5 votes
private Spacing getSpacesInsideAttribute(final IElementType type1, final IElementType type2) {
  if (type1 == XmlTokenType.XML_EQ || type2 == XmlTokenType.XML_EQ) {
    int spaces = myXmlFormattingPolicy.getShouldAddSpaceAroundEqualityInAttribute() ? 1 : 0;
    return Spacing
      .createSpacing(spaces, spaces, 0, myXmlFormattingPolicy.getShouldKeepLineBreaks(), myXmlFormattingPolicy.getKeepBlankLines());
  else {
    return createDefaultSpace(false, false);