|
|
|
@ -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对象 |
|
|
|
|
* |
|
|
|
|