Browse Source

Merge pull request #1050 in BA/design from ~JU/ba-9.0-design:9.0 to 9.0

* commit '882025d0c4d477e9924ce9b57e25b64c2a19647f':
  PFC-607 插件安装删除更新不重启支持 通过动态编译来加密报表
  PFC-607 插件安装删除更新不重启支持 方法中不保存解密后的字节码,这样debug时,切换到当前页面也找不到数据(切换到这个页面时,还没解密,切换到下个页面时,已经解密完了--下个页面之后改成直接调用native方法,就没办法从debug中获取字节码,也没办法通过修改jre来输出了),性能影响可忽略不计,解密很快
master
superman 7 years ago
parent
commit
99006ae50c
  1. 9
      designer_base/src/com/fr/design/menu/ToolBarDef.java
  2. 6
      designer_base/src/com/fr/start/BaseDesigner.java

9
designer_base/src/com/fr/design/menu/ToolBarDef.java

@ -1,14 +1,13 @@
package com.fr.design.menu; package com.fr.design.menu;
import com.fr.design.gui.itoolbar.UIToolBarUI;
import com.fr.design.gui.itoolbar.UIToolbar;
import javax.swing.*;
import java.awt.*; import java.awt.*;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import javax.swing.*;
import com.fr.design.gui.itoolbar.UIToolBarUI;
import com.fr.design.gui.itoolbar.UIToolbar;
/** /**
* Define toolbar.. * Define toolbar..
*/ */

6
designer_base/src/com/fr/start/BaseDesigner.java

@ -12,7 +12,6 @@ import com.fr.design.file.HistoryTemplateListPane;
import com.fr.design.file.MutilTempalteTabPane; import com.fr.design.file.MutilTempalteTabPane;
import com.fr.design.file.TemplateTreePane; import com.fr.design.file.TemplateTreePane;
import com.fr.design.fun.DesignerStartOpenFileProcessor; import com.fr.design.fun.DesignerStartOpenFileProcessor;
import com.fr.design.fun.GlobalListenerProvider;
import com.fr.design.fun.impl.GlobalListenerProviderManager; import com.fr.design.fun.impl.GlobalListenerProviderManager;
import com.fr.design.mainframe.DesignerFrame; import com.fr.design.mainframe.DesignerFrame;
import com.fr.design.mainframe.TemplatePane; import com.fr.design.mainframe.TemplatePane;
@ -36,7 +35,6 @@ import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent; import java.awt.event.WindowEvent;
import java.io.File; import java.io.File;
import java.lang.reflect.Method; import java.lang.reflect.Method;
import java.util.Set;
/** /**
* The main class of Report Designer. * The main class of Report Designer.
@ -84,6 +82,8 @@ public abstract class BaseDesigner extends ToolBarMenuDock {
DesignUtils.initLookAndFeel(); DesignUtils.initLookAndFeel();
DesignUtils.creatListeningServer(getStartPort(), startFileSuffix()); DesignUtils.creatListeningServer(getStartPort(), startFileSuffix());
//初始化插件引擎
PluginManager.init();
// 初始化Log Handler // 初始化Log Handler
DesignerEnvManager.loadLogSetting(); DesignerEnvManager.loadLogSetting();
DesignerFrame df = createDesignerFrame(); DesignerFrame df = createDesignerFrame();
@ -93,7 +93,7 @@ public abstract class BaseDesigner extends ToolBarMenuDock {
initDefaultFont(); initDefaultFont();
//PluginManager要在环境切换和模块启动之前初始化 //PluginManager要在环境切换和模块启动之前初始化
PluginManager.init(); PluginManager.registerEnvListener();
// 必须先初始化Env再去startModule, 不然会导致lic读取不到 // 必须先初始化Env再去startModule, 不然会导致lic读取不到
ModuleContext.startModule(module2Start()); ModuleContext.startModule(module2Start());

Loading…
Cancel
Save