本文整理汇总了Java中com.intellij.openapi.util.JDOMExternalizer.readBoolean方法的典型用法代码示例。如果您正苦于以下问题:Java JDOMExternalizer.readBoolean方法的具体用法?Java JDOMExternalizer.readBoolean怎么用?Java JDOMExternalizer.readBoolean使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.openapi.util.JDOMExternalizer
的用法示例。
在下文中一共展示了JDOMExternalizer.readBoolean方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: readExternal
import com.intellij.openapi.util.JDOMExternalizer; //导入方法依赖的package包/类
@Override
public void readExternal(Element element) throws InvalidDataException {
super.readExternal(element);
environment = JDOMExternalizer.readString(element, "environment");
specsToExecute = JDOMExternalizer.readString(element, "specsToExecute");
tags = JDOMExternalizer.readString(element, "tags");
parallelNodes = JDOMExternalizer.readString(element, "parallelNodes");
execInParallel = JDOMExternalizer.readBoolean(element, "execInParallel");
programParameters.setProgramParameters(JDOMExternalizer.readString(element, "programParameters"));
programParameters.setWorkingDirectory(JDOMExternalizer.readString(element, "workingDirectory"));
this.moduleName = JDOMExternalizer.readString(element, "moduleName");
HashMap<String, String> envMap = new HashMap<>();
JDOMExternalizer.readMap(element, envMap, "envMap", "envMap");
programParameters.setEnvs(envMap);
rowsRange = JDOMExternalizer.readString(element, "rowsRange");
}
示例2: readExternal
import com.intellij.openapi.util.JDOMExternalizer; //导入方法依赖的package包/类
public void readExternal(Element element) throws InvalidDataException {
dataSourceName = JDOMExternalizer.readString(element, "datasourceName");
sqlMapSuffix = JDOMExternalizer.readString(element, "sqlMapSuffix");
sqlMapPackage = JDOMExternalizer.readString(element, "sqlMapPackage");
beanPackage = JDOMExternalizer.readString(element, "beanPackage");
selectKeyTemplate = JDOMExternalizer.readString(element, "selectKeyTemplate");
String temp = JDOMExternalizer.readString(element, "selectKeyType");
if(null == temp || temp.trim().length() == 0){
selectKeyType = SelectKeyType.none;
}else{
selectKeyType = SelectKeyType.valueOf(temp);
}
insertTemplate = JDOMExternalizer.readString(element, "insertTemplate");
selectTemplate = JDOMExternalizer.readString(element, "selectTemplate");
updateTemplate = JDOMExternalizer.readString(element, "updateTemplate");
deleteTemplate = JDOMExternalizer.readString(element, "deleteTemplate");
injectCreatedSqlMap = JDOMExternalizer.readBoolean(element, "injectCreatedSqlMap");
generateCrudOperations = JDOMExternalizer.readBoolean(element, "generateCrudOperations");
}
示例3: loadState
import com.intellij.openapi.util.JDOMExternalizer; //导入方法依赖的package包/类
public void loadState(Element element) {
final PatternCompiler<PsiElement> helper = getCompiler();
final Element e = element.getChild(getClass().getSimpleName());
if (e != null) {
myInjectedLanguageId = JDOMExternalizer.readString(e, "LANGUAGE");
myPrefix = JDOMExternalizer.readString(e, "PREFIX");
mySuffix = JDOMExternalizer.readString(e, "SUFFIX");
setValuePattern(JDOMExternalizer.readString(e, "VALUE_PATTERN"));
mySingleFile = JDOMExternalizer.readBoolean(e, "SINGLE_FILE");
readExternalImpl(e);
}
else {
myDisplayName = StringUtil.notNullize(element.getChildText("display-name"));
myInjectedLanguageId = StringUtil.notNullize(element.getAttributeValue("language"));
myPrefix = StringUtil.notNullize(element.getChildText("prefix"));
mySuffix = StringUtil.notNullize(element.getChildText("suffix"));
setValuePattern(element.getChildText("value-pattern"));
mySingleFile = element.getChild("single-file") != null;
readExternalImpl(element);
final List<Element> placeElements = element.getChildren("place");
myPlaces = InjectionPlace.ARRAY_FACTORY.create(placeElements.size());
for (int i = 0, placeElementsSize = placeElements.size(); i < placeElementsSize; i++) {
Element placeElement = placeElements.get(i);
final boolean enabled = !Boolean.parseBoolean(placeElement.getAttributeValue("disabled"));
final String text = placeElement.getText();
myPlaces[i] = new InjectionPlace(helper.createElementPattern(text, getDisplayName()), enabled);
}
}
if (myPlaces.length == 0) {
generatePlaces();
}
}
示例4: readExternalImpl
import com.intellij.openapi.util.JDOMExternalizer; //导入方法依赖的package包/类
protected void readExternalImpl(Element e) {
if (e.getAttribute("injector-id") == null) {
setTagName(JDOMExternalizer.readString(e, "TAGNAME"));
setTagNamespace(JDOMExternalizer.readString(e, "TAGNAMESPACE"));
setXPathCondition(JDOMExternalizer.readString(e, "XPATH_CONDITION"));
myApplyToSubTagTexts = JDOMExternalizer.readBoolean(e, "APPLY_TO_SUBTAGS");
}
else {
setXPathCondition(e.getChildText("xpath-condition"));
myApplyToSubTagTexts = e.getChild("apply-to-subtags") != null;
}
}
示例5: readExternal
import com.intellij.openapi.util.JDOMExternalizer; //导入方法依赖的package包/类
public void readExternal(Element element) {
showDefault = JDOMExternalizer.readBoolean(element, ATTR_SHOW_DEFAULT);
lineMinZoomFactor = JDOMExternalizer.readInteger(element, ATTR_LINE_ZOOM_FACTOR, DEFAULT_LINE_ZOOM_FACTOR);
lineSpan = JDOMExternalizer.readInteger(element, ATTR_LINE_SPAN, DEFAULT_LINE_SPAN);
lineColor = JDOMExternalizerEx.readColor(element, ATTR_LINE_COLOR, DEFAULT_LINE_COLOR);
}
示例6: readSettings
import com.intellij.openapi.util.JDOMExternalizer; //导入方法依赖的package包/类
@Override
public void readSettings(@NotNull Element node) throws InvalidDataException
{
mySettings.readSettings(node);
myIgnoreFields = JDOMExternalizer.readBoolean(node, "ignoreFields");
}