|
|
@ -7,7 +7,11 @@ import com.fr.event.Event; |
|
|
|
import com.fr.event.EventDispatcher; |
|
|
|
import com.fr.event.EventDispatcher; |
|
|
|
import com.fr.event.Listener; |
|
|
|
import com.fr.event.Listener; |
|
|
|
import com.fr.event.Null; |
|
|
|
import com.fr.event.Null; |
|
|
|
|
|
|
|
import com.fr.general.FRFont; |
|
|
|
|
|
|
|
import com.fr.general.GeneralContext; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.plaf.ColorUIResource; |
|
|
|
|
|
|
|
import java.util.Locale; |
|
|
|
import java.util.concurrent.Executors; |
|
|
|
import java.util.concurrent.Executors; |
|
|
|
import java.util.concurrent.ScheduledExecutorService; |
|
|
|
import java.util.concurrent.ScheduledExecutorService; |
|
|
|
import java.util.concurrent.TimeUnit; |
|
|
|
import java.util.concurrent.TimeUnit; |
|
|
@ -86,8 +90,14 @@ public class FineEmbedServerMonitor { |
|
|
|
} |
|
|
|
} |
|
|
|
if (!DesignerContext.getDesignerFrame().getProgressDialog().isVisible()) { |
|
|
|
if (!DesignerContext.getDesignerFrame().getProgressDialog().isVisible()) { |
|
|
|
DesignerContext.getDesignerFrame().showProgressDialog(); |
|
|
|
DesignerContext.getDesignerFrame().showProgressDialog(); |
|
|
|
DesignerContext.getDesignerFrame().getProgressDialog() |
|
|
|
String text = com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Loading_Embed_Server"); |
|
|
|
.updateLoadingText(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Loading_Embed_Server")); |
|
|
|
//如果为韩文则改变字体
|
|
|
|
|
|
|
|
if (GeneralContext.getLocale().equals(Locale.KOREA)) { |
|
|
|
|
|
|
|
FRFont font = FRFont.getInstance().applySize(14).applyForeground(new ColorUIResource(333334)).applyName("Dialog"); |
|
|
|
|
|
|
|
DesignerContext.getDesignerFrame().getProgressDialog().updateLoadingText(text, font); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
DesignerContext.getDesignerFrame().getProgressDialog().updateLoadingText(text); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
DesignerContext.getDesignerFrame().updateProgress(getProgress()); |
|
|
|
DesignerContext.getDesignerFrame().updateProgress(getProgress()); |
|
|
|
} |
|
|
|
} |
|
|
|