mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
Cfg: Convert rest of pages
This commit is contained in:
@@ -17,7 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package gplx.xowa.bldrs.setups.addons; import gplx.*; import gplx.xowa.*; import gplx.xowa.bldrs.*; import gplx.xowa.bldrs.setups.*;
|
||||
public class Xoi_addon_mgr implements Gfo_invk {
|
||||
public Xoi_firefox_installer Firefox() {return firefox;} private Xoi_firefox_installer firefox = new Xoi_firefox_installer();
|
||||
Xoi_firefox_installer Firefox() {return firefox;} private Xoi_firefox_installer firefox = new Xoi_firefox_installer();
|
||||
public void Init_by_app(Xoae_app app) {
|
||||
firefox.Init_by_app(app);
|
||||
}
|
||||
|
||||
@@ -28,6 +28,7 @@ public class Xoi_firefox_installer implements Gfo_invk {
|
||||
trg_xpi_package = trg_xpi.OwnerDir().GenSubDir("package");
|
||||
Xoa_fsys_eval cmd_eval = app.Url_cmd_eval();
|
||||
Process_adp.ini_(this, app.Usr_dlg(), program, cmd_eval, Process_adp.Run_mode_async, 0, "firefox", "\"~{url}\"", "url");
|
||||
app.Cfg().Bind_many_app(this, Cfg__firefox_cmd);
|
||||
}
|
||||
public void Install_via_process() {
|
||||
Generate();
|
||||
@@ -57,9 +58,11 @@ public class Xoi_firefox_installer implements Gfo_invk {
|
||||
+ String_.Mid(src, end);
|
||||
}
|
||||
public Object Invk(GfsCtx ctx, int ikey, String k, GfoMsg m) {
|
||||
if (ctx.Match(k, Invk_program)) return program;
|
||||
if (ctx.Match(k, Invk_install)) Install_via_process();
|
||||
else if (ctx.Match(k, Cfg__firefox_cmd)) gplx.xowa.apps.progs.Xoa_prog_mgr.Init_cmd(m.ReadStr("v"), program);
|
||||
else return Gfo_invk_.Rv_unhandled;
|
||||
return this;
|
||||
} private static final String Invk_program = "program", Invk_install = "install";
|
||||
} private static final String Invk_install = "install";
|
||||
private static final String Cfg__firefox_cmd = "xowa.addon.xowa_viewer.firefox";
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user