public String getName() { // TODO: This could probably be easier, but I wanted to use a localized string and couldn't think of anything better. if (this == STEPS) { return Messages.StageDirective_Steps_name(); } else if (this == PARALLEL) { return Messages.StageDirective_Parallel_name(); } else if (this == STAGES) { return Messages.StageDirective_Stages_name(); } else { return "(unknown)"; } } }