MasterScheduler<?> p = (MasterScheduler<?>) PluginFactory
.getKonstPlug(this.list.getSelectedValue().toString(),
this.pars);
EASRunnable env = p.generateRunnables(this.pars)[0];
int i = 0;
// for (EASRunnable env : p.generateRunnables(this.pars)) {
try {
BufferedImage img = env.getOutsideView();
if (liveWindow != null) {
liveWindow.setVisible(false);
liveWindow.dispose();
}
liveWindow = StaticMethods.showImage(img, "Preview of " + p.id() + " - Runnable_" + env.id());
liveWindow.setLocation(this.getX() + this.getWidth(), 0 + i * 100);
liveWindow.setAlwaysOnTop(true);
} catch (Exception e1) {
StaticMethods.logWarning(
"Could not generate image from environment '"
+ "Runnable_" + env.id()
+ "'",
this.pars);
if (liveWindow != null) {
liveWindow.setVisible(false);
liveWindow.dispose();