|
|
@ -94,18 +94,18 @@ public class AlphaFineConfigManager implements XMLable { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void readXML(XMLableReader reader) { |
|
|
|
public void readXML(XMLableReader reader) { |
|
|
|
if (reader.isAttr()) { |
|
|
|
if (reader.isAttr()) { |
|
|
|
this.setEnabled(reader.getAttrAsBoolean("enabled", true)); |
|
|
|
this.setEnabled(reader.getAttrAsBoolean("isEnabled", true)); |
|
|
|
this.setSearchOnLine(reader.getAttrAsBoolean("searchOnline", true)); |
|
|
|
this.setSearchOnLine(reader.getAttrAsBoolean("isSearchOnline", true)); |
|
|
|
this.setContainPlugin(reader.getAttrAsBoolean("containDocument", true)); |
|
|
|
this.setContainPlugin(reader.getAttrAsBoolean("isContainDocument", true)); |
|
|
|
this.setContainDocument(reader.getAttrAsBoolean("containDocument", true)); |
|
|
|
this.setContainDocument(reader.getAttrAsBoolean("isContainDocument", true)); |
|
|
|
this.setContainRecommend(reader.getAttrAsBoolean("containRecommend", true)); |
|
|
|
this.setContainRecommend(reader.getAttrAsBoolean("isContainRecommend", true)); |
|
|
|
this.setContainAction(reader.getAttrAsBoolean("containAction", true)); |
|
|
|
this.setContainAction(reader.getAttrAsBoolean("isContainAction", true)); |
|
|
|
this.setContainTemplate(reader.getAttrAsBoolean("containTemplate", true)); |
|
|
|
this.setContainTemplate(reader.getAttrAsBoolean("isContainTemplate", true)); |
|
|
|
this.setContainFileContent(reader.getAttrAsBoolean("containFileContent", false)); |
|
|
|
this.setContainFileContent(reader.getAttrAsBoolean("isContainFileContent", false)); |
|
|
|
this.setNeedSegmentationCheckbox(reader.getAttrAsBoolean("needSegmentationCheckbox", true)); |
|
|
|
this.setNeedSegmentationCheckbox(reader.getAttrAsBoolean("needSegmentationCheckbox", true)); |
|
|
|
this.setNeedIntelligentCustomerService(reader.getAttrAsBoolean("needIntelligentCustomerService", true)); |
|
|
|
this.setNeedIntelligentCustomerService(reader.getAttrAsBoolean("needIntelligentCustomerService", true)); |
|
|
|
this.setShortcuts(reader.getAttrAsString("shortcuts", getDefaultShortCuts())); |
|
|
|
this.setShortcuts(reader.getAttrAsString("shortcuts", getDefaultShortCuts())); |
|
|
|
this.setNeedRemind(reader.getAttrAsBoolean("needRemind", true)); |
|
|
|
this.setNeedRemind(reader.getAttrAsBoolean("isNeedRemind", true)); |
|
|
|
this.setOperateCount(reader.getAttrAsInt("operateCount", 0)); |
|
|
|
this.setOperateCount(reader.getAttrAsInt("operateCount", 0)); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
@ -115,16 +115,16 @@ public class AlphaFineConfigManager implements XMLable { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void writeXML(XMLPrintWriter writer) { |
|
|
|
public void writeXML(XMLPrintWriter writer) { |
|
|
|
writer.startTAG("AlphaFineConfigManager"); |
|
|
|
writer.startTAG("AlphaFineConfigManager"); |
|
|
|
writer.attr("enabled", this.isEnabled()) |
|
|
|
writer.attr("isEnabled", this.isEnabled()) |
|
|
|
.attr("searchOnline", this.isSearchOnLine()) |
|
|
|
.attr("isSearchOnline", this.isSearchOnLine()) |
|
|
|
.attr("shortcuts", this.getShortcuts()) |
|
|
|
.attr("shortcuts", this.getShortcuts()) |
|
|
|
.attr("containRecommend", this.isContainRecommend()) |
|
|
|
.attr("isContainRecommend", this.isContainRecommend()) |
|
|
|
.attr("containAction", this.isContainAction()) |
|
|
|
.attr("isContainAction", this.isContainAction()) |
|
|
|
.attr("containDocument", this.isContainDocument()) |
|
|
|
.attr("isContainDocument", this.isContainDocument()) |
|
|
|
.attr("containTemplate", this.isContainTemplate()) |
|
|
|
.attr("isContainTemplate", this.isContainTemplate()) |
|
|
|
.attr("containPlugin", this.isContainPlugin()) |
|
|
|
.attr("isContainPlugin", this.isContainPlugin()) |
|
|
|
.attr("containFileContent", this.isContainFileContent()) |
|
|
|
.attr("isContainFileContent", this.isContainFileContent()) |
|
|
|
.attr("needRemind", this.isNeedRemind()) |
|
|
|
.attr("isNeedRemind", this.isNeedRemind()) |
|
|
|
.attr("operateCount", this.getOperateCount()) |
|
|
|
.attr("operateCount", this.getOperateCount()) |
|
|
|
.attr("needSegmentationCheckbox", this.isNeedSegmentationCheckbox()) |
|
|
|
.attr("needSegmentationCheckbox", this.isNeedSegmentationCheckbox()) |
|
|
|
.attr("needIntelligentCustomerService", this.isNeedIntelligentCustomerService()); |
|
|
|
.attr("needIntelligentCustomerService", this.isNeedIntelligentCustomerService()); |
|
|
|