// called via shortcut
if (!FuelUtils.isFuelPHP(phpModule)) {
return;
}
// open dialog
FuelPhpGeneratePanel generatePanel = getPanel(phpModule);
DialogDescriptor descriptor = new DialogDescriptor(generatePanel, getPureName(), true, null);
Dialog dialog = DialogDisplayer.getDefault().createDialog(descriptor);
dialog.pack();
dialog.validate();
dialog.setVisible(true);
if (descriptor.getValue() == DialogDescriptor.OK_OPTION) {
try {
// run command
List<String> params = generatePanel.getParameters();
Oil.forPhpModule(phpModule, true).runCommand(phpModule, params, new RefreshPhpModuleRunnable(phpModule));
} catch (InvalidPhpExecutableException ex) {
Exceptions.printStackTrace(ex);
}
}