-
Improvement
-
Resolution: Fixed
-
Major
-
None
-
Platform: All, OS: All
I have a plugin which would like to provide multiple project actions:
@Override
public Action getProjectAction(AbstractProject project) {
if (this.reportTargets.isEmpty())
else
{ //TODO: return ALL project actions, not just the first one return this.reportTargets.get(0).getProjectAction(project); }}
Currently I am only returning the first but some sort of API to allow returning
a List, or perhaps a getProjectActions which can be implemented and supercedes
getProjectAction, would be useful! This way I could just return reportTargets
and it works whether the list is empty or has 4 actions.