use of com.intellij.psi.formatter.xml.XmlCodeStyleSettings in project android by JetBrains.
the class AndroidXmlFormatterTest method testManifest7.
public void testManifest7() throws Exception {
deleteManifest();
final XmlCodeStyleSettings xmlSettings = mySettings.getCustomSettings(XmlCodeStyleSettings.class);
xmlSettings.XML_ATTRIBUTE_WRAP = CommonCodeStyleSettings.WRAP_ON_EVERY_ITEM;
xmlSettings.XML_ALIGN_ATTRIBUTES = true;
xmlSettings.XML_SPACE_INSIDE_EMPTY_TAG = false;
mySettings.getIndentOptions(XmlFileType.INSTANCE).CONTINUATION_INDENT_SIZE = 8;
doTestManifest("manifest1.xml");
}
use of com.intellij.psi.formatter.xml.XmlCodeStyleSettings in project android by JetBrains.
the class AndroidXmlFormatterTest method testLayout7.
public void testLayout7() throws Exception {
final XmlCodeStyleSettings xmlSettings = mySettings.getCustomSettings(XmlCodeStyleSettings.class);
xmlSettings.XML_ALIGN_ATTRIBUTES = true;
final AndroidXmlCodeStyleSettings androidSettings = mySettings.getCustomSettings(AndroidXmlCodeStyleSettings.class);
androidSettings.LAYOUT_SETTINGS.INSERT_LINE_BREAK_AFTER_LAST_ATTRIBUTE = true;
doTestLayout("layout1.xml");
}
use of com.intellij.psi.formatter.xml.XmlCodeStyleSettings in project android by JetBrains.
the class AndroidXmlFormatterTest method testLayout4.
public void testLayout4() throws Exception {
final XmlCodeStyleSettings xmlSettings = mySettings.getCustomSettings(XmlCodeStyleSettings.class);
xmlSettings.XML_ALIGN_ATTRIBUTES = true;
final AndroidXmlCodeStyleSettings androidSettings = mySettings.getCustomSettings(AndroidXmlCodeStyleSettings.class);
androidSettings.LAYOUT_SETTINGS.INSERT_LINE_BREAK_BEFORE_FIRST_ATTRIBUTE = false;
androidSettings.LAYOUT_SETTINGS.INSERT_BLANK_LINE_BEFORE_TAG = false;
doTestLayout("layout1.xml");
}
Aggregations