Browse Source

REPORT-78469【迭代】【起始页】不打开任何报表启动,点模板主题管理没反应

模板管理部分消除 npe
feature/x
Harrison 2 years ago
parent
commit
a6fdd1b060
  1. 9
      designer-realize/src/main/java/com/fr/start/MainDesigner.java

9
designer-realize/src/main/java/com/fr/start/MainDesigner.java

@ -240,8 +240,13 @@ public class MainDesigner extends BaseDesigner {
if (WorkContext.getCurrent().isRoot()) { if (WorkContext.getCurrent().isRoot()) {
menuDef.addShortCut( menuDef.addShortCut(
new ServerConfigManagerAction(), new ServerConfigManagerAction()
new TemplateThemeManagerAction(), );
JTemplate<?, ?> jt = HistoryTemplateListCache.getInstance().getCurrentEditingTemplate();
if (JTemplate.isValid(jt)) {
menuDef.addShortCut(new TemplateThemeManagerAction());
}
menuDef.addShortCut(
new WidgetManagerAction() new WidgetManagerAction()
); );
menuDef.addShortCut(new ChartPreStyleAction(), new ChartEmptyDataStyleAction(),new ChartMapEditorAction()); menuDef.addShortCut(new ChartPreStyleAction(), new ChartEmptyDataStyleAction(),new ChartMapEditorAction());

Loading…
Cancel
Save