Browse Source

1、添加插件商店授权信息api

2、减小插件商店窗体高度以适配win下出现滚动条的问题
master
vito 9 years ago
parent
commit
949b1919c2
  1. 2
      designer_base/src/com/fr/design/extra/PluginShopDialog.java
  2. 12
      designer_base/src/com/fr/design/extra/PluginWebBridge.java

2
designer_base/src/com/fr/design/extra/PluginShopDialog.java

@ -10,7 +10,7 @@ import java.awt.*;
* Created by vito on 16/4/18.
*/
public class PluginShopDialog extends UIDialog {
private static final Dimension DEFAULT_SHOP = new Dimension(900, 710);
private static final Dimension DEFAULT_SHOP = new Dimension(900, 700);
public PluginShopDialog(Frame frame, BasicPane pane) {
super(frame, pane, false);

12
designer_base/src/com/fr/design/extra/PluginWebBridge.java

@ -8,6 +8,8 @@ import com.fr.general.FRLogger;
import com.fr.general.Inter;
import com.fr.general.SiteCenter;
import com.fr.plugin.Plugin;
import com.fr.plugin.PluginLicense;
import com.fr.plugin.PluginLicenseManager;
import com.fr.plugin.PluginLoader;
import com.fr.stable.ArrayUtils;
import com.fr.stable.StringUtils;
@ -196,6 +198,16 @@ public class PluginWebBridge {
return PluginLoader.getLoader().getInstalled();
}
/**
* 获取已经安装的插件的授权情况
*
* @return 已安装的插件授权对象
*/
public PluginLicense getPluginLicenseByID(String pluginID ) {
return PluginLicenseManager.getInstance().getPluginLicenseByID(pluginID);
}
private String[] jsObjectToStringArray(JSObject obj) {
if (obj == null) {
return ArrayUtils.EMPTY_STRING_ARRAY;

Loading…
Cancel
Save