/** * {@inheritDoc} * * <p> * Note that this method returns a read-only view of {@link Action}s. * {@link LabelAtomProperty}s who want to add a project action * should do so by implementing {@link LabelAtomProperty#getActions(LabelAtom)}. */ @SuppressWarnings("deprecation") @Override public List<Action> getActions() { // add all the transient actions, too List<Action> actions = new Vector<Action>(super.getActions()); actions.addAll(transientActions); // return the read only list to cause a failure on plugins who try to add an action here return Collections.unmodifiableList(actions); }
/** * {@inheritDoc} * * <p> * Note that this method returns a read-only view of {@link Action}s. * {@link LabelAtomProperty}s who want to add a project action * should do so by implementing {@link LabelAtomProperty#getActions(LabelAtom)}. */ @Override public synchronized List<Action> getActions() { // add all the transient actions, too List<Action> actions = new Vector<Action>(super.getActions()); actions.addAll(transientActions); // return the read only list to cause a failure on plugins who try to add an action here return Collections.unmodifiableList(actions); }
/** * {@inheritDoc} * * <p> Note that this method returns a read-only view of {@link Action}s. * {@link LabelAtomProperty}s who want to add a project action should do so * by implementing {@link LabelAtomProperty#getActions(LabelAtom)}. */ @Override public synchronized List<Action> getActions() { // add all the transient actions, too List<Action> actions = new Vector<Action>(super.getActions()); actions.addAll(transientActions); // return the read only list to cause a failure on plugins who try to add an action here return Collections.unmodifiableList(actions); }
/** * {@inheritDoc} * * <p> * Note that this method returns a read-only view of {@link Action}s. * {@link LabelAtomProperty}s who want to add a project action * should do so by implementing {@link LabelAtomProperty#getActions(LabelAtom)}. */ @Override public synchronized List<Action> getActions() { // add all the transient actions, too List<Action> actions = new Vector<Action>(super.getActions()); actions.addAll(transientActions); // return the read only list to cause a failure on plugins who try to add an action here return Collections.unmodifiableList(actions); }
/** * {@inheritDoc} * * <p> * Note that this method returns a read-only view of {@link Action}s. * {@link LabelAtomProperty}s who want to add a project action * should do so by implementing {@link LabelAtomProperty#getActions(LabelAtom)}. */ @SuppressWarnings("deprecation") @Override public List<Action> getActions() { // add all the transient actions, too List<Action> actions = new Vector<Action>(super.getActions()); actions.addAll(transientActions); // return the read only list to cause a failure on plugins who try to add an action here return Collections.unmodifiableList(actions); }
/** * {@inheritDoc} * * <p> * Note that this method returns a read-only view of {@link Action}s. * {@link LabelAtomProperty}s who want to add a project action * should do so by implementing {@link LabelAtomProperty#getActions(LabelAtom)}. */ @Override public synchronized List<Action> getActions() { // add all the transient actions, too List<Action> actions = new Vector<Action>(super.getActions()); actions.addAll(transientActions); // return the read only list to cause a failure on plugins who try to add an action here return Collections.unmodifiableList(actions); }