public static void constructFVFunctionActions(Set<Function> functions,
FunctionFieldViewManager manager) {
Iterator<Function> iterator = functions.iterator();
while (iterator.hasNext()) {
Function function = iterator.next();
String prefix = FunctionFieldViewManager.FIELDVIEW_PREFIX;
String oldFunctionName = function.getName();
String newFunctionName = FunctionManager.cutSuperComponentPrefix(oldFunctionName,
prefix);
Messages messages = Messages.getMessages();
if (newFunctionName == null) {
messages.err("AbstractFieldView", "constructFVFunctionActions says: "
+ oldFunctionName + " does not start with "
+ prefix);
messages.err("AbstractFieldView", "--> Aborting...");
System.exit(-1);
} else {
FieldViewFunctionAction functionAction
= new FieldViewFunctionAction(manager, newFunctionName);
function.setAction(functionAction);
}
}
}