From b3ecd97d1de370b2ad48fe1b999859506355b89d Mon Sep 17 00:00:00 2001 From: XiaXiang Date: Wed, 18 Oct 2017 11:01:54 +0800 Subject: [PATCH 1/2] =?UTF-8?q?REPORT-5095=20=E8=BF=9C=E7=A8=8B=E8=AE=BE?= =?UTF-8?q?=E8=AE=A1=E7=BC=93=E5=AD=98=E5=A4=B1=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- designer/src/com/fr/start/Designer.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/designer/src/com/fr/start/Designer.java b/designer/src/com/fr/start/Designer.java index d84492381..35ace6e6a 100644 --- a/designer/src/com/fr/start/Designer.java +++ b/designer/src/com/fr/start/Designer.java @@ -1,6 +1,7 @@ package com.fr.start; import com.fr.base.BaseUtils; +import com.fr.base.Env; import com.fr.base.FRContext; import com.fr.design.DesignerEnvManager; import com.fr.design.actions.core.ActionFactory; @@ -447,7 +448,8 @@ public class Designer extends BaseDesigner { InformationCollector collector = InformationCollector.getInstance(); collector.collectStopTime(); collector.saveXMLFile(); - ServletContext.fireServletStopListener(); + Env currentEnv = FRContext.getCurrentEnv(); + currentEnv.doWhenServerShutDown(); } -} \ No newline at end of file +} From 29335470e6d9100126bf6cb2e54972a152ffc6f7 Mon Sep 17 00:00:00 2001 From: vito Date: Wed, 18 Oct 2017 11:37:55 +0800 Subject: [PATCH 2/2] =?UTF-8?q?REPORT-5093=20=E4=BC=98=E5=8C=96=E5=BC=80?= =?UTF-8?q?=E5=90=AF=E7=94=BB=E9=9D=A2=E9=94=AF=E9=BD=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/com/fr/start/SplashWindow.java | 42 ++++++++----------- 1 file changed, 18 insertions(+), 24 deletions(-) diff --git a/designer_base/src/com/fr/start/SplashWindow.java b/designer_base/src/com/fr/start/SplashWindow.java index f2df42981..aa83c34f7 100644 --- a/designer_base/src/com/fr/start/SplashWindow.java +++ b/designer_base/src/com/fr/start/SplashWindow.java @@ -1,46 +1,40 @@ package com.fr.start; -import java.awt.BorderLayout; -import java.awt.Color; -import java.awt.Dimension; -import java.awt.Image; - -import javax.swing.ImageIcon; -import javax.swing.JFrame; -import javax.swing.JPanel; - import com.fr.base.BaseUtils; import com.fr.design.gui.ilable.UILabel; -import com.fr.design.layout.FRGUIPaneFactory; import com.fr.design.utils.gui.GUICoreUtils; import com.fr.stable.OperatingSystem; import com.sun.awt.AWTUtilities; +import javax.swing.ImageIcon; +import javax.swing.JFrame; +import java.awt.Color; +import java.awt.Dimension; +import java.awt.Image; + + public class SplashWindow extends JFrame { private SplashPane splash = null; @SuppressWarnings("LeakingThisInConstructor") - public SplashWindow(SplashPane splashPane) { + public SplashWindow(SplashPane splashPane) { // alex:必须设置这个属性为true,才可以用透明背景 System.setProperty("sun.java2d.noddraw", "true"); this.setIconImage(BaseUtils.readImage("/com/fr/base/images/oem/logo.png")); - JPanel defaultPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); - this.setContentPane(defaultPane); - - defaultPane.setBackground(new Color(0, 0, 0, 0)); //slash pane this.splash = splashPane; - splash.setBackground(null); - Image image = splash.getSplashImage(); - ImageIcon imageIcon = new ImageIcon(image); + if (splash != null) { - defaultPane.add(splash, BorderLayout.CENTER); + splash.setBackground(null); + Image image = splash.getSplashImage(); + ImageIcon imageIcon = new ImageIcon(image); + this.setContentPane(splash); this.setSize(new Dimension(imageIcon.getIconWidth(), imageIcon.getIconHeight())); } else { - defaultPane.add(new UILabel("Error, please contract: support@finereport.com"), BorderLayout.CENTER); + this.setContentPane(new UILabel("Error, please contract: support@finereport.com")); this.setSize(new Dimension(480, 320)); } @@ -50,9 +44,9 @@ public class SplashWindow extends JFrame { //使窗体背景透明 if (OperatingSystem.isWindows()) { - this.setBackground(new Color(0,0,0,0)); + this.setBackground(new Color(0, 0, 0, 0)); } - + GUICoreUtils.centerWindow(this); this.setVisible(true); } @@ -62,8 +56,8 @@ public class SplashWindow extends JFrame { */ public void dispose() { super.dispose(); - if(this.splash != null){ - this.splash.releaseTimer(); + if (this.splash != null) { + this.splash.releaseTimer(); } }