|
|
|
@ -5,17 +5,12 @@ import com.fr.base.ServerConfig;
|
|
|
|
|
import com.fr.concurrent.NamedThreadFactory; |
|
|
|
|
import com.fr.design.DesignerEnvManager; |
|
|
|
|
import com.fr.design.ExtraDesignClassManager; |
|
|
|
|
import com.fr.design.constants.DesignerLaunchStatus; |
|
|
|
|
import com.fr.design.dialog.FineJOptionPane; |
|
|
|
|
import com.fr.design.env.DesignerWorkspaceInfo; |
|
|
|
|
import com.fr.design.fun.DesignerEnvProcessor; |
|
|
|
|
import com.fr.design.gui.UILookAndFeel; |
|
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
|
import com.fr.design.mainframe.DesignerContext; |
|
|
|
|
import com.fr.event.Event; |
|
|
|
|
import com.fr.event.EventDispatcher; |
|
|
|
|
import com.fr.event.Listener; |
|
|
|
|
import com.fr.event.Null; |
|
|
|
|
import com.fr.exit.DesignerExiter; |
|
|
|
|
import com.fr.file.FileFILE; |
|
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
@ -66,16 +61,6 @@ import java.util.concurrent.TimeoutException;
|
|
|
|
|
public class DesignUtils { |
|
|
|
|
private static int port = DesignerPort.getInstance().getMessagePort(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static { |
|
|
|
|
EventDispatcher.listen(DesignerLaunchStatus.WORKSPACE_INIT_COMPLETE, new Listener<Null>() { |
|
|
|
|
@Override |
|
|
|
|
public void on(Event event, Null aNull) { |
|
|
|
|
checkDesignerEnvMatch(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private static boolean started = false; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -444,6 +429,9 @@ public class DesignUtils {
|
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* check下设计器jar包版本和当前envjar包版本是否匹配,设计器启动后和环境切换成功后调用 |
|
|
|
|
*/ |
|
|
|
|
public static void checkDesignerEnvMatch(){ |
|
|
|
|
if (WorkContext.getCurrent().isLocal()){ |
|
|
|
|
designerEnvMatch = true; |
|
|
|
|