Commit fdc3e5f4 by s_guodong

update

parent ec0f1b57
......@@ -137,11 +137,11 @@ public class MdaContext implements IContext {
}
public void setMessage(String errorNo, Object message) {
// if (errorNo != null && errorNo.matches("E\\d+")) {
this.errorNo = errorNo;
this.errorMessage = message + "";
//this.message = message + "";
// }
// if (errorNo != null && errorNo.matches("E\\d+")) {
this.errorNo = errorNo;
this.errorMessage = message + "";
//this.message = message + "";
// }
}
public boolean checkAll(IModule module) {
......@@ -251,12 +251,16 @@ public class MdaContext implements IContext {
@Override
public boolean saveDisplay(IPanel[] panels, String fileName) {
return false;
boolean f = false;
for (IPanel panel : panels) {
f = saveDisplay(panel.getPath(), fileName);
}
return f;
}
@Override
public boolean saveDisplay(IPanel panel, String fileName) {
return false;
return saveDisplay(panel.getPath(), fileName);
}
@Override
......
......@@ -19,6 +19,11 @@ public class PanelImpl extends AbstractBaseObject implements IPanel {
this.titleI18nKey = titleI18nKey;
}
public PanelImpl(String path) {
super(null);
this.name = path;
}
public synchronized void dispose() {
if (IPanel.log.isTraceEnabled())
IPanel.log.trace("Panel disposing:" + this.url);
......@@ -67,4 +72,5 @@ public class PanelImpl extends AbstractBaseObject implements IPanel {
sort();
return RuleUtils.invoke(this.eventRules, ctx, event, new int[0]);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment