|
|
|
@ -7,6 +7,7 @@ import com.fr.design.actions.UpdateAction;
|
|
|
|
|
import com.fr.general.GeneralContext; |
|
|
|
|
|
|
|
|
|
import com.fr.start.ServerStarter; |
|
|
|
|
import com.fr.start.server.DesignEmbedHelper; |
|
|
|
|
import com.fr.workspace.WorkContext; |
|
|
|
|
|
|
|
|
|
import java.awt.event.ActionEvent; |
|
|
|
@ -23,7 +24,7 @@ public class ChartMapEditorAction extends UpdateAction {
|
|
|
|
|
|
|
|
|
|
public void actionPerformed(ActionEvent evt) { |
|
|
|
|
int port = DesignerEnvManager.getEnvManager().getEmbedServerPort(); |
|
|
|
|
String web = GeneralContext.getCurrentAppNameOfEnv(); |
|
|
|
|
String web = DesignEmbedHelper.getAppFolderName(); |
|
|
|
|
String serverlet = ServerConfig.getInstance().getServletName(); |
|
|
|
|
ServerStarter.browserURLWithLocalEnv(WorkContext.getCurrent().isLocal() ? String.format("http://localhost:%d/%s/%s/map/edit", port, web, serverlet) : WorkContext.getCurrent().getPath() + "/map/edit"); |
|
|
|
|
} |
|
|
|
|