|
|
|
@ -7,11 +7,11 @@ import com.fr.base.io.BaseBook;
|
|
|
|
|
import com.fr.base.iofile.attr.DesignBanCopyAttrMark; |
|
|
|
|
import com.fr.base.iofile.attr.TemplateIdAttrMark; |
|
|
|
|
import com.fr.base.iofile.attr.TemplateThemeAttrMark; |
|
|
|
|
import com.fr.base.theme.TemplateTheme; |
|
|
|
|
import com.fr.base.theme.TemplateThemeCompatible; |
|
|
|
|
import com.fr.base.theme.TemplateThemeConfig; |
|
|
|
|
import com.fr.base.theme.ThemedTemplate; |
|
|
|
|
import com.fr.base.vcs.DesignerMode; |
|
|
|
|
import com.fr.base.theme.TemplateTheme; |
|
|
|
|
import com.fr.base.theme.TemplateThemeConfig; |
|
|
|
|
import com.fr.decision.config.FSConfig; |
|
|
|
|
import com.fr.design.DesignModelAdapter; |
|
|
|
|
import com.fr.design.DesignState; |
|
|
|
@ -70,14 +70,13 @@ import com.fr.general.ComparatorUtils;
|
|
|
|
|
import com.fr.general.IOUtils; |
|
|
|
|
import com.fr.locale.InterProviderFactory; |
|
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
|
import com.fr.nx.app.designer.toolbar.TemplateTransformer; |
|
|
|
|
import com.fr.nx.app.designer.utils.CptAndCptxCompatibilityUtil; |
|
|
|
|
import com.fr.nx.app.designer.utils.CptCompileUtil; |
|
|
|
|
import com.fr.nx.cptx.entry.metadata.CptxMetadata; |
|
|
|
|
import com.fr.nx.cptx.utils.CptxFileUtils; |
|
|
|
|
import com.fr.plugin.context.PluginContext; |
|
|
|
|
import com.fr.plugin.context.PluginRuntime; |
|
|
|
|
import com.fr.nx.app.designer.toolbar.CompileAction; |
|
|
|
|
import com.fr.nx.app.designer.toolbar.TemplateTransformer; |
|
|
|
|
import com.fr.plugin.injectable.PluginModule; |
|
|
|
|
import com.fr.plugin.manage.PluginFilter; |
|
|
|
|
import com.fr.plugin.observer.PluginEvent; |
|
|
|
@ -642,6 +641,16 @@ public abstract class JTemplate<T extends BaseBook, U extends BaseUndoState<?>>
|
|
|
|
|
fireSuperTargetModified(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void undoToCurrent() { |
|
|
|
|
UIUtil.invokeLaterIfNeeded(new Runnable() { |
|
|
|
|
@Override |
|
|
|
|
public void run() { |
|
|
|
|
BaseUndoState current = JTemplate.this.getUndoState(); |
|
|
|
|
current.applyState(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 模板更新 |
|
|
|
|
*/ |
|
|
|
|