Browse Source

Merge pull request #79 in DESIGN/design from ~JU/design:feature/10.0 to feature/10.0

* commit '8a1b91e876a5d9fc56b6bde6892273704bed5693':
  无JIRA任务 提前加载buildPath
master
superman 7 years ago
parent
commit
338dc174c0
  1. 13
      designer-realize/src/com/fr/start/Designer.java
  2. 1
      designer-realize/src/com/fr/start/module/PreStartActivator.java

13
designer-realize/src/com/fr/start/Designer.java

@ -43,6 +43,7 @@ import com.fr.general.ComparatorUtils;
import com.fr.general.Inter;
import com.fr.module.Module;
import com.fr.module.ModuleContext;
import com.fr.stable.BuildContext;
import com.fr.stable.OperatingSystem;
import com.fr.stable.ProductConstants;
import com.fr.stable.StableUtils;
@ -51,16 +52,12 @@ import com.fr.stable.xml.XMLTools;
import com.fr.start.fx.SplashFx;
import com.fr.start.jni.SplashMac;
import com.fr.start.module.StartupArgs;
import com.fr.start.server.ServerTray;
import com.fr.start.server.FineEmbedServer;
import com.fr.start.server.ServerTray;
import javax.swing.JComponent;
import javax.swing.JPanel;
import javax.swing.*;
import javax.swing.border.MatteBorder;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Insets;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
@ -90,6 +87,8 @@ public class Designer extends BaseDesigner {
* @param args 参数
*/
public static void main(String[] args) {
BuildContext.setBuildFilePath("/com/fr/stable/build.properties");
SplashContext.getInstance().registerSplash(createSplash());
SplashContext.getInstance().show();
Module designerRoot = ModuleContext.parseRoot("designer-startup.xml");

1
designer-realize/src/com/fr/start/module/PreStartActivator.java

@ -25,7 +25,6 @@ public class PreStartActivator extends Activator {
public void start() {
RestartHelper.deleteRecordFilesWhenStart();
BuildContext.setBuildFilePath("/com/fr/stable/build.properties");
SiteCenter.getInstance();
if (checkMultiStart()) {
return;

Loading…
Cancel
Save