Browse Source

update

master
Fangjie Hu 8 years ago
parent
commit
a86323108b
  1. 2
      designer_base/src/com/fr/design/extra/PluginHelper.java
  2. 5
      designer_base/src/com/fr/design/extra/plugindependence/DownLoadDependenceUI.java
  3. 4
      designer_base/src/com/fr/design/extra/plugindependence/PluginDependenceUtils.java

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

@ -134,7 +134,7 @@ public class PluginHelper {
for (int i = 0;list != null && i < list.size(); i++){
PluginDependenceUnit dependenceUnit = list.get(i);
if (!dependenceUnit.checkFileEnv()){
PluginDependenceUtils.installDependenceOnline(currentID, dependenceUnit.getDependenceID(),dependenceUnit.getDependenceType(), dependenceUnit.getDependenceDir());
PluginDependenceUtils.installDependenceOnline(currentID, dependenceUnit.getDependenceID(), dependenceUnit.getDependenceDir());
}
}
}

5
designer_base/src/com/fr/design/extra/plugindependence/DownLoadDependenceUI.java

@ -1,6 +1,5 @@
package com.fr.design.extra.plugindependence;
import com.fr.base.Env;
import com.fr.base.FRContext;
import com.fr.design.extra.PluginConstants;
import com.fr.design.extra.PluginHelper;
@ -48,7 +47,6 @@ public class DownLoadDependenceUI implements ActionListener {
private String currentID;
private String dependenceID;
private String dependenceDir;
private PluginDependenceType dependenceType;
//安装结果
private boolean result = false;
//链接服务器的客户端
@ -60,11 +58,10 @@ public class DownLoadDependenceUI implements ActionListener {
public DownLoadDependenceUI() {
}
public DownLoadDependenceUI(String currentID, String dependenceID, PluginDependenceType dependenceType, String dependenceDir) {
public DownLoadDependenceUI(String currentID, String dependenceID, String dependenceDir) {
this.currentID = currentID;
this.dependenceID = dependenceID;
this.dependenceDir = dependenceDir;
this.dependenceType = dependenceType;
this.totalSize = getFileLength();
init();
}

4
designer_base/src/com/fr/design/extra/plugindependence/PluginDependenceUtils.java

@ -8,8 +8,8 @@ import com.fr.plugin.dependence.PluginDependenceType;
public class PluginDependenceUtils {
public static boolean installDependenceOnline(String currentID, String dependenceID, PluginDependenceType dependenceType, String dependenceDir) {
DownLoadDependenceUI ui = new DownLoadDependenceUI(currentID, dependenceID, dependenceType, dependenceDir);
public static boolean installDependenceOnline(String currentID, String dependenceID, String dependenceDir) {
DownLoadDependenceUI ui = new DownLoadDependenceUI(currentID, dependenceID, dependenceDir);
return ui.installOnline();
}
}

Loading…
Cancel
Save