Browse Source

Merge pull request #17 in PF/design from ~JU/co-pf-9.0-design:9.0 to 9.0

* commit '2c929b06ef8c84a54801e1456604eb3994fbcf07':
  远程环境时,自动同步插件的运行状态
  fix
master
superman 8 years ago
parent
commit
9ef9d6e99f
  1. 20
      designer_base/src/com/fr/env/RemoteEnv.java
  2. 2
      designer_chart/src/com/fr/design/ChartTypeInterfaceManager.java

20
designer_base/src/com/fr/env/RemoteEnv.java vendored

@ -2195,7 +2195,25 @@ public class RemoteEnv extends AbstractEnv {
@Override @Override
public boolean hasPluginServiceStarted(String key) { public boolean hasPluginServiceStarted(String key) {
// TODO: 2017/5/22
return true; return true;
} }
@Override
public JSONArray getPluginStatus() {
try {
HashMap<String, String> para = new HashMap<String, String>();
para.put("op", "plugin");
para.put("cmd", "get_states");
para.put("current_uid", this.createUserID());
para.put("currentUsername", this.getUser());
HttpClient client = createHttpMethod(para);
InputStream input = execute4InputStream(client);
return new JSONArray(stream2String(input));
} catch (Exception e) {
return JSONArray.create();
}
}
} }

2
designer_chart/src/com/fr/design/ChartTypeInterfaceManager.java

@ -20,7 +20,6 @@ import com.fr.design.mainframe.chart.gui.data.report.AbstractReportDataContentPa
import com.fr.design.mainframe.chart.gui.data.table.AbstractTableDataContentPane; import com.fr.design.mainframe.chart.gui.data.table.AbstractTableDataContentPane;
import com.fr.design.module.DesignModuleFactory; import com.fr.design.module.DesignModuleFactory;
import com.fr.form.ui.ChartEditor; import com.fr.form.ui.ChartEditor;
import com.fr.general.GeneralContext;
import com.fr.general.IOUtils; import com.fr.general.IOUtils;
import com.fr.general.Inter; import com.fr.general.Inter;
import com.fr.plugin.context.PluginContext; import com.fr.plugin.context.PluginContext;
@ -35,7 +34,6 @@ import com.fr.stable.StringUtils;
import com.fr.stable.bridge.StableFactory; import com.fr.stable.bridge.StableFactory;
import com.fr.stable.collections.map.CloseableContainedMap; import com.fr.stable.collections.map.CloseableContainedMap;
import com.fr.stable.plugin.ExtraChartDesignClassManagerProvider; import com.fr.stable.plugin.ExtraChartDesignClassManagerProvider;
import com.fr.stable.plugin.PluginReadListener;
import javax.swing.*; import javax.swing.*;
import java.util.*; import java.util.*;

Loading…
Cancel
Save