diff --git a/designer-base/src/main/java/com/fr/design/actions/server/LocalAnalyzerAction.java b/designer-base/src/main/java/com/fr/design/actions/server/LocalAnalyzerAction.java index 358de5774f..2db6e6aef0 100644 --- a/designer-base/src/main/java/com/fr/design/actions/server/LocalAnalyzerAction.java +++ b/designer-base/src/main/java/com/fr/design/actions/server/LocalAnalyzerAction.java @@ -26,7 +26,7 @@ public class LocalAnalyzerAction extends UpdateAction { @Override public void actionPerformed(ActionEvent e) { - String path = StableUtils.pathJoin("/url", URLConstants.ANALYZE_VIEW); + String path = StableUtils.pathJoin("/nx", URLConstants.ANALYZE_VIEW); DesignUtils.visitEnvServerByParameters(path, new String[]{}, new String[]{}); } diff --git a/designer-base/src/main/java/com/fr/nx/app/designer/transform/BatchTransformer.java b/designer-base/src/main/java/com/fr/nx/app/designer/transform/BatchTransformer.java index 0f6a76f833..8dee1ca309 100644 --- a/designer-base/src/main/java/com/fr/nx/app/designer/transform/BatchTransformer.java +++ b/designer-base/src/main/java/com/fr/nx/app/designer/transform/BatchTransformer.java @@ -2,7 +2,6 @@ package com.fr.nx.app.designer.transform; import com.fr.design.utils.concurrent.ThreadFactoryBuilder; import com.fr.file.filetree.FileNode; -import com.fr.plugin.context.PluginContexts; import com.fr.nx.app.designer.toolbar.TransformResultInfo; import com.fr.nx.app.designer.utils.CompileTransformUtil; @@ -10,6 +9,7 @@ import java.util.List; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; /** * Created by kerry on 2019-12-10 @@ -21,7 +21,7 @@ public class BatchTransformer { private static final int MAXPOOLSIZE = 5; private static final String THREAD_NAME_TEMPLATE = "batchtransform-thread-%s"; private ExecutorService threadPoolExecutor = - PluginContexts.currentContext().newFixedThreadPool(MAXPOOLSIZE, + Executors.newFixedThreadPool(MAXPOOLSIZE, new ThreadFactoryBuilder().setNameFormat(THREAD_NAME_TEMPLATE).build()); public BatchTransformer(UpdateCallBack updateCallBack) { @@ -59,7 +59,7 @@ public class BatchTransformer { if (threadPoolExecutor != null) { threadPoolExecutor.shutdownNow(); } - threadPoolExecutor = PluginContexts.currentContext().newFixedThreadPool(MAXPOOLSIZE, + threadPoolExecutor = Executors.newFixedThreadPool(MAXPOOLSIZE, new ThreadFactoryBuilder().setNameFormat(THREAD_NAME_TEMPLATE).build()); updateCallBack.shutDown(); }