forked from fanruan/design
Browse Source
* commit 'f70a24d40b3ed25e766c0aa42e4863c30a753f17': import修改 代码修改 无jira任务,添加final 代码修改 代码修改 REPORT-2354 依赖部分修改master
superman
8 years ago
6 changed files with 49 additions and 124 deletions
@ -1,26 +0,0 @@ |
|||||||
package com.fr.design.extra.exe.extratask; |
|
||||||
|
|
||||||
|
|
||||||
import com.fr.design.extra.exe.callback.InstallOnlineCallback; |
|
||||||
import com.fr.design.extra.exe.callback.JSCallback; |
|
||||||
import com.fr.plugin.context.PluginMarker; |
|
||||||
import com.fr.plugin.manage.PluginManager; |
|
||||||
|
|
||||||
|
|
||||||
/** |
|
||||||
* Created by ibm on 2017/5/27. |
|
||||||
*/ |
|
||||||
public class InstallPluginTask extends AbstractExtraPluginTask { |
|
||||||
protected JSCallback jsCallback; |
|
||||||
|
|
||||||
|
|
||||||
public InstallPluginTask(PluginMarker pluginMarker, JSCallback jsCallback) { |
|
||||||
this.pluginMarker = pluginMarker; |
|
||||||
this.jsCallback = jsCallback; |
|
||||||
} |
|
||||||
|
|
||||||
@Override |
|
||||||
public void doExtraPluginTask() { |
|
||||||
PluginManager.getController().install(pluginMarker, new InstallOnlineCallback(pluginMarker, jsCallback)); |
|
||||||
} |
|
||||||
} |
|
@ -1,26 +0,0 @@ |
|||||||
package com.fr.design.extra.exe.extratask; |
|
||||||
|
|
||||||
import com.fr.design.extra.exe.callback.JSCallback; |
|
||||||
import com.fr.design.extra.exe.callback.UpdateOnlineCallback; |
|
||||||
import com.fr.plugin.context.PluginMarker; |
|
||||||
import com.fr.plugin.manage.PluginManager; |
|
||||||
|
|
||||||
/** |
|
||||||
* Created by ibm on 2017/5/27. |
|
||||||
*/ |
|
||||||
public class UpdatePluginTask extends AbstractExtraPluginTask { |
|
||||||
|
|
||||||
public PluginMarker toPluginMarker; |
|
||||||
protected JSCallback jsCallback; |
|
||||||
|
|
||||||
public UpdatePluginTask(PluginMarker pluginMarker, PluginMarker toPluginMarker, JSCallback jsCallback) { |
|
||||||
this.pluginMarker = pluginMarker; |
|
||||||
this.toPluginMarker = toPluginMarker; |
|
||||||
this.jsCallback = jsCallback; |
|
||||||
} |
|
||||||
|
|
||||||
@Override |
|
||||||
public void doExtraPluginTask() { |
|
||||||
PluginManager.getController().update(pluginMarker, toPluginMarker, new UpdateOnlineCallback(pluginMarker, toPluginMarker, jsCallback)); |
|
||||||
} |
|
||||||
} |
|
Loading…
Reference in new issue