|
|
@ -29,19 +29,19 @@ public class WebManagerPaneFactory { |
|
|
|
if (StableUtils.getMajorJavaVersion() == 8) { |
|
|
|
if (StableUtils.getMajorJavaVersion() == 8) { |
|
|
|
return new ShopManagerPane(new ShopPaneConfig() { |
|
|
|
return new ShopManagerPane(new ShopPaneConfig() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
String getMainJS() { |
|
|
|
String setMainJS() { |
|
|
|
String relativePath = "/scripts/store/web/index.html"; |
|
|
|
String relativePath = "/scripts/store/web/index.html"; |
|
|
|
return StableUtils.pathJoin(new File(installHome).getAbsolutePath(), relativePath); |
|
|
|
return StableUtils.pathJoin(new File(installHome).getAbsolutePath(), relativePath); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
String getScriptsId() { |
|
|
|
String setScriptsId() { |
|
|
|
return "shop_scripts"; |
|
|
|
return "shop_scripts"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
JFXPanel getWebPane() { |
|
|
|
JFXPanel setWebPane() { |
|
|
|
return new PluginWebPane(getMainJS()); |
|
|
|
return new PluginWebPane(setMainJS()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
@ -61,19 +61,19 @@ public class WebManagerPaneFactory { |
|
|
|
public BasicPane createReusePane() { |
|
|
|
public BasicPane createReusePane() { |
|
|
|
return new ShopManagerPane(new ShopPaneConfig() { |
|
|
|
return new ShopManagerPane(new ShopPaneConfig() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
String getMainJS() { |
|
|
|
String setMainJS() { |
|
|
|
String relativePath = "/scripts/store/reuse/index.html"; |
|
|
|
String relativePath = "/scripts/store/reuse/index.html"; |
|
|
|
return StableUtils.pathJoin(new File(installHome).getAbsolutePath(), relativePath); |
|
|
|
return StableUtils.pathJoin(new File(installHome).getAbsolutePath(), relativePath); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
String getScriptsId() { |
|
|
|
String setScriptsId() { |
|
|
|
return "reuse_scripts"; |
|
|
|
return "reuse_scripts"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
JFXPanel getWebPane() { |
|
|
|
JFXPanel setWebPane() { |
|
|
|
return new ReuseWebPane(getMainJS()); |
|
|
|
return new ReuseWebPane(setMainJS()); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|