wizardDialog.setPageSize(500, 200);
if (wizardDialog.open() == Dialog.OK) {
Controller.getInstance().getPlaylistController().addEmptyPlaylist(wizard.getPlaylistName());
Controller.getInstance().getPlaylistController().addItemToPlaylist(wizard.getPlaylistName(), wizard.getGenerator().getResults(), wizard.getPlay());
new OpenPlaylistAction(wizard.getPlaylistName()).run();
}
}
};
playlistGeneratorAction.setActionDefinitionId("Jampa.playlistGeneratorWizard");
handlerService.activateHandler("Jampa.playlistGeneratorWizard", new ActionHandler(playlistGeneratorAction));