Browse Source

重命名文件

master
vito 9 years ago
parent
commit
2a0c239ad1
  1. 1
      designer_base/src/com/fr/design/extra/PluginManagerPane.java
  2. 2
      designer_base/src/com/fr/design/extra/PluginWebBridge.java
  3. 5
      designer_base/src/com/fr/design/extra/exe/SearchOnlineExecutor.java

1
designer_base/src/com/fr/design/extra/PluginManagerPane.java

@ -3,7 +3,6 @@ package com.fr.design.extra;
import com.fr.design.dialog.BasicPane;
import com.fr.design.gui.frpane.UITabbedPane;
import com.fr.general.Inter;
import com.fr.stable.StableUtils;
import java.awt.*;
import java.net.URL;

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

@ -205,7 +205,7 @@ public class PluginWebBridge {
* @param keyword 关键字
*/
public void searchPlugin(String keyword, final JSObject callback) {
Task<Void> task = new PluginTask<>(webEngine, callback, new SearchExecutor(keyword));
Task<Void> task = new PluginTask<>(webEngine, callback, new SearchOnlineExecutor(keyword));
new Thread(task).start();
}

5
designer_base/src/com/fr/design/extra/exe/searchExecutor.java → designer_base/src/com/fr/design/extra/exe/SearchOnlineExecutor.java

@ -9,11 +9,11 @@ import com.fr.stable.StringUtils;
/**
* Created by vito on 16/4/18.
*/
public class SearchExecutor implements Executor {
public class SearchOnlineExecutor implements Executor {
private String result;
private String keyword;
public SearchExecutor(String keyword) {
public SearchOnlineExecutor(String keyword) {
this.keyword = keyword;
}
@ -36,6 +36,7 @@ public class SearchExecutor implements Executor {
try {
HttpClient httpClient = new HttpClient(PluginWebBridge.PLUGIN_SHOP + "&keyword=" + keyword);
result = httpClient.getResponseText();
} catch (Exception e) {
FRLogger.getLogger().error(e.getMessage());
}
Loading…
Cancel
Save