Beispiel #1
0
 /**
  * Returns the transient {@link Action}s associated with the top page.
  *
  * <p>If views don't want to show top-level actions, this method can be overridden to return
  * different objects.
  *
  * @see Jenkins#getActions()
  */
 public List<Action> getActions() {
   List<Action> result = new ArrayList<Action>();
   result.addAll(getOwnerViewActions());
   synchronized (this) {
     if (transientActions == null) {
       transientActions = TransientViewActionFactory.createAllFor(this);
     }
     result.addAll(transientActions);
   }
   return result;
 }
Beispiel #2
0
 public synchronized void updateTransientActions() {
   transientActions = TransientViewActionFactory.createAllFor(this);
 }