From b6778538bca5a6d93c413dbe718bbc02ad6b9f3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=B9=E7=A3=8A?= <294531121@qq.com> Date: Wed, 7 Apr 2021 09:53:50 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-50744=20=E5=9C=A8FineKit=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E8=8E=B7=E5=8F=96=E5=BD=93=E5=89=8D=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?ID=E7=9A=84=E6=96=B9=E6=B3=95=E5=92=8C=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E8=AE=BE=E8=AE=A1=E5=99=A8ID=E7=9A=84=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/fanruan/api/design/DesignKit.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/main/java/com/fanruan/api/design/DesignKit.java b/src/main/java/com/fanruan/api/design/DesignKit.java index 60d73d4..b203735 100644 --- a/src/main/java/com/fanruan/api/design/DesignKit.java +++ b/src/main/java/com/fanruan/api/design/DesignKit.java @@ -1,5 +1,6 @@ package com.fanruan.api.design; +import com.fr.design.DesignerEnvManager; import com.fr.design.mainframe.WidgetPropertyPane; import com.fr.base.TableData; import com.fr.design.DesignModelAdapter; @@ -64,6 +65,24 @@ public class DesignKit { return HistoryTemplateListPane.getInstance().getCurrentEditingTemplate(); } + /** + * 获取当前正在编辑的模板的ID + * + * @return 正在编辑的模板的ID + */ + public static String getCurrentEditingTemplateId() { + return getCurrentEditingTemplate().getTarget().getTemplateID(); + } + + /** + * 获取设计器ID + * + * @return 设计器ID + */ + public static String getDesignerId() { + return DesignerEnvManager.getEnvManager().getUUID(); + } + /** * 根据名字获取已经定义的bean对象 *