directoryFile = attribute.directory.asFile();
fileFilter = attribute.fileFilter.getExpression();
subdirs = ((BooleanToken) attribute.subdirs.getToken())
.booleanValue();
} catch (IllegalActionException e) {
throw new KernelRuntimeException(e,
"Unable to get boolean " + "token.");
}
}
if (directoryFile == null) {
ComponentDialog dialog = new ComponentDialog(
TransformationEditor.this, "Select Model Directory",
new Configurer(_attribute));
if (dialog.buttonPressed().equalsIgnoreCase("OK")) {
try {
directoryFile = _attribute.directory.asFile();
fileFilter = _attribute.fileFilter.getExpression();
subdirs = ((BooleanToken) _attribute.subdirs.getToken())
.booleanValue();
} catch (IllegalActionException e) {
throw new KernelRuntimeException(e, "Unable to get "
+ "boolean token.");
}
}
}