|
|
@ -2,9 +2,11 @@ package com.fanruan.api.design; |
|
|
|
|
|
|
|
|
|
|
|
import com.fr.base.TableData; |
|
|
|
import com.fr.base.TableData; |
|
|
|
import com.fr.design.data.datapane.preview.PreviewTablePane; |
|
|
|
import com.fr.design.data.datapane.preview.PreviewTablePane; |
|
|
|
|
|
|
|
import com.fr.design.file.HistoryTemplateListPane; |
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
import com.fr.design.mainframe.DesignerContext; |
|
|
|
import com.fr.design.mainframe.DesignerContext; |
|
|
|
import com.fr.design.mainframe.DesignerFrame; |
|
|
|
import com.fr.design.mainframe.DesignerFrame; |
|
|
|
|
|
|
|
import com.fr.design.mainframe.JTemplate; |
|
|
|
|
|
|
|
|
|
|
|
public class DesignKit { |
|
|
|
public class DesignKit { |
|
|
|
/** |
|
|
|
/** |
|
|
@ -41,4 +43,12 @@ public class DesignKit { |
|
|
|
public static DesignerFrame getDesignerFrame() { |
|
|
|
public static DesignerFrame getDesignerFrame() { |
|
|
|
return DesignerContext.getDesignerFrame(); |
|
|
|
return DesignerContext.getDesignerFrame(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 得到当前在修改的模板 |
|
|
|
|
|
|
|
* @return 返回当前正在编辑的模板 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public static JTemplate<?, ?> getCurrentEditingTemplate(){ |
|
|
|
|
|
|
|
return HistoryTemplateListPane.getInstance().getCurrentEditingTemplate(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|