// is the file in question is not modified yet, group the new action
// with an action that changes the status of the file.
GroupAction ga = new GroupAction();
ga.add(action);
ClassFile cf = getClassFile(targetFile);
ga.add(new MarkClassFileModifiedAction(this.project, targetFile, cf));
um.add(ga);
ga.execute();
} else {
um.add(action);
action.execute();