public static boolean showDialog(
Container parent,
Simulation simulation,
MoteType moteType) {
final AbstractCompileDialog dialog = new MicaZCompileDialog(parent, simulation, moteType);
/* Show dialog and wait for user */
dialog.setVisible(true); /* BLOCKS */
if (!dialog.createdOK()) {
return false;
}
/* Assume that if a firmware exists, compilation was ok */
return true;