public boolean includes(String s) {
try {
logger.info("include:{}",s);
String[] idData = s.split(",");
I call mergePerspective s == “ccontrol center”,this is not idData.
@Override
public void forkPerspective(String name) {
try {
logger.info("??????:{}...", name);
CControlPerspective ccp = control.getPerspectives();
if (ccp != null) {
CPerspective cp = ccp.getPerspective(name);
if (cp != null) {
XElement xElement = new XElement(name);
ccp.writeXML(xElement, cp);
XIO.write(xElement, new FileOutputStream(new File(LocalStore.getLoginUserPath() + "/" + name + ".xml")), "UTF-8");
logger.info("??????:{}??", name);
} else {
logger.error("CPerspective==null");
}
} else {
logger.error("CControlPerspective==null");
}
} catch (Throwable t) {
logger.error("??????????", t);
}
}
@Override
public void mergePerspective(String name) {
try {
logger.info("??????:{}...", name);
CControlPerspective ccp = control.getPerspectives();
if (ccp != null) {
XElement xElement = XIO.read(new FileInputStream(new File(LocalStore.getLoginUserPath() + "/" + name + ".xml")), "UTF-8");
CPerspective cp = ccp.readXML(xElement);
ccp.setPerspective(xElement.getName(), cp);
this.control.load(xElement.getName());
logger.info("??????:{}??", name);
} else {
logger.error("CControlPerspective==null");
}
} catch (Throwable t) {
logger.error("??????????", t);
}
}
Sorry, my English is very bad.