Browse Source

代码修改

feature/big-screen
kerry 5 years ago
parent
commit
61d773eb84
  1. 5
      designer-base/src/main/java/com/fr/design/mainframe/JTemplate.java
  2. 4
      designer-form/src/main/java/com/fr/design/form/util/FormDesignerUtils.java
  3. 7
      designer-form/src/main/java/com/fr/design/mainframe/JForm.java

5
designer-base/src/main/java/com/fr/design/mainframe/JTemplate.java

@ -38,7 +38,6 @@ import com.fr.design.i18n.Toolkit;
import com.fr.design.layout.FRGUIPaneFactory;
import com.fr.design.mainframe.chart.info.ChartInfoCollector;
import com.fr.design.mainframe.template.info.TemplateInfoCollector;
import com.fr.design.mainframe.template.info.TemplateOperate;
import com.fr.design.mainframe.template.info.TemplateProcessInfo;
import com.fr.design.mainframe.template.info.TimeConsumeTimer;
import com.fr.design.mainframe.toolbar.ToolBarMenuDockPlus;
@ -1263,10 +1262,6 @@ public abstract class JTemplate<T extends BaseBook, U extends BaseUndoState<?>>
template.setTemplateID(templateId);
}
public void updateTemplateOperationInfo(TemplateOperate operateInfo) {
}
public abstract String route();
public String getTemplateName() {

4
designer-form/src/main/java/com/fr/design/form/util/FormDesignerUtils.java

@ -34,12 +34,12 @@ public class FormDesignerUtils {
public static void addWidgetProcessInfo(Widget widget) {
JTemplate jTemplate = HistoryTemplateListCache.getInstance().getCurrentEditingTemplate();
jTemplate.updateTemplateOperationInfo(new ComponentCreateOperate(widget));
jTemplate.getProcessInfo().updateTemplateOperationInfo(new ComponentCreateOperate(widget));
}
public static void removeWidgetProcessInfo(Widget widget) {
JTemplate jTemplate = HistoryTemplateListCache.getInstance().getCurrentEditingTemplate();
jTemplate.updateTemplateOperationInfo(new ComponentDeleteOperate(widget));
jTemplate.getProcessInfo().updateTemplateOperationInfo(new ComponentDeleteOperate(widget));
}
}

7
designer-form/src/main/java/com/fr/design/mainframe/JForm.java

@ -45,7 +45,6 @@ import com.fr.design.layout.FRGUIPaneFactory;
import com.fr.design.mainframe.form.FormECCompositeProvider;
import com.fr.design.mainframe.form.FormECDesignerProvider;
import com.fr.design.mainframe.template.info.JFormProcessInfo;
import com.fr.design.mainframe.template.info.TemplateOperate;
import com.fr.design.mainframe.template.info.TemplateProcessInfo;
import com.fr.design.mainframe.toolbar.ToolBarMenuDock;
import com.fr.design.mainframe.toolbar.ToolBarMenuDockPlus;
@ -217,12 +216,6 @@ public class JForm extends JTemplate<Form, FormUndoState> implements BaseJForm<F
return processInfo;
}
public void updateTemplateOperationInfo(TemplateOperate operateInfo) {
if (processInfo == null) {
return;
}
processInfo.updateTemplateOperationInfo(operateInfo);
}
public FormECCompositeProvider getReportComposite() {
return this.reportComposite;

Loading…
Cancel
Save