public Scene createScene() {
ClassLoader theClassLoader = getClass().getClassLoader();
if (null != this.classLoader) {
theClassLoader = this.classLoader;
}
FXMLLoader loader = new FXMLLoader();
loader.setClassLoader(theClassLoader);
InputStream is = null;
try {
is = theClassLoader
.getResource(
"dsk/php_export/plugin/desktop/javafx/application/selectPackages.fxml")
.openConnection().getInputStream();
loader.load(is);
this.controller = loader.getController();
} catch (IOException e) {
throw new DskRuntimeException("fxmlの指定が不正です", e);
} finally {
IoTools.close(is);
}
Parent root = loader.getRoot();
Scene scene = new Scene(root);
return scene;
}