Ejemplo n.º 1
0
 /**
  * Instantiates a new purge container action.
  *
  * @param contentService the content service
  * @param res the res
  */
 @Inject
 public PurgeContainerAction(
     final ContentServiceHelper contentService, final IconicResources res) {
   super(AccessRolDTO.Administrator, true);
   this.contentService = contentService;
   this.withText(I18n.t("Delete permanently")).withIcon(res.trashGrey());
 }
Ejemplo n.º 2
0
 /**
  * Instantiates a new content viewer options menu.
  *
  * @param res the res
  * @param session the session
  */
 @Inject
 public ContentViewerOptionsMenu(final CoreResources res, final Session session) {
   super();
   // this.withIcon(res.arrowdownsitebar())
   this.withId(ID);
   this.withText(I18n.t("More"));
   this.setAtRight(true);
 }