/**
  * Creates a new instance.
  *
  * @param model Reference to the Model. Mustn't be <code>null</code>.
  */
 public RefreshExperimenterData(TreeViewer model) {
   super(model);
   putValue(Action.NAME, NAME);
   putValue(Action.SHORT_DESCRIPTION, UIUtilities.formatToolTipText(DESCRIPTION));
   IconManager im = IconManager.getInstance();
   putValue(Action.SMALL_ICON, im.getIcon(IconManager.REFRESH));
 }
 /**
  * Creates a new instance.
  *
  * @param model Reference to the Model. Mustn't be <code>null</code>.
  */
 public CollapseAction(Browser model) {
   super(model);
   setEnabled(true);
   putValue(Action.SHORT_DESCRIPTION, UIUtilities.formatToolTipText(DESCRIPTION));
   IconManager im = IconManager.getInstance();
   putValue(Action.SMALL_ICON, im.getIcon(IconManager.COLLAPSE));
 }
 /**
  * Creates a new instance.
  *
  * @param model Reference to the Model. Mustn't be <code>null</code>.
  */
 public TaggingAction(TreeViewer model) {
   super(model);
   name = NAME;
   putValue(Action.SHORT_DESCRIPTION, UIUtilities.formatToolTipText(DESCRIPTION));
   description = (String) getValue(Action.SHORT_DESCRIPTION);
   IconManager im = IconManager.getInstance();
   putValue(Action.SMALL_ICON, im.getIcon(IconManager.TAG));
 }
 /**
  * Creates a new instance.
  *
  * @param model Reference to the Model. Mustn't be <code>null</code>.
  */
 public LogOffAction(TreeViewer model) {
   super(model);
   name = NAME;
   putValue(Action.NAME, NAME);
   putValue(Action.SHORT_DESCRIPTION, UIUtilities.formatToolTipText(DESCRIPTION));
   IconManager im = IconManager.getInstance();
   putValue(Action.SMALL_ICON, im.getIcon(IconManager.LOGIN));
 }
 /**
  * Checks if the passed value is supported.
  *
  * @param value The value to handle.
  */
 private void checkType(int value) {
   IconManager icons = IconManager.getInstance();
   switch (value) {
     case PROJECT:
       name = NAME_PROJECT;
       putValue(Action.SMALL_ICON, icons.getIcon(IconManager.PROJECT));
       putValue(Action.SHORT_DESCRIPTION, UIUtilities.formatToolTipText(DESCRIPTION_PROJECT));
       break;
     case DATASET:
       name = NAME_DATASET;
       putValue(Action.SMALL_ICON, icons.getIcon(IconManager.DATASET));
       putValue(Action.SHORT_DESCRIPTION, UIUtilities.formatToolTipText(DESCRIPTION_DATASET));
       break;
     case TAG:
       name = NAME_TAG;
       putValue(Action.SMALL_ICON, icons.getIcon(IconManager.TAG));
       putValue(Action.SHORT_DESCRIPTION, UIUtilities.formatToolTipText(DESCRIPTION_TAG));
       break;
     case TAG_SET:
       name = NAME_TAG_SET;
       putValue(Action.SMALL_ICON, icons.getIcon(IconManager.TAG_SET));
       putValue(Action.SHORT_DESCRIPTION, UIUtilities.formatToolTipText(DESCRIPTION_TAG_SET));
       break;
     case SCREEN:
       name = NAME_SCREEN;
       putValue(Action.SMALL_ICON, icons.getIcon(IconManager.SCREEN));
       putValue(Action.SHORT_DESCRIPTION, UIUtilities.formatToolTipText(DESCRIPTION_SCREEN));
       break;
     case GROUP:
       name = NAME_GROUP;
       putValue(Action.SMALL_ICON, icons.getIcon(IconManager.OWNER_GROUP));
       putValue(Action.SHORT_DESCRIPTION, UIUtilities.formatToolTipText(DESCRIPTION_GROUP));
       break;
     case EXPERIMENTER:
       name = NAME_EXPERIMENTER;
       putValue(Action.SMALL_ICON, icons.getIcon(IconManager.OWNER));
       putValue(Action.SHORT_DESCRIPTION, UIUtilities.formatToolTipText(DESCRIPTION_EXPERIMENTER));
       break;
     default:
       throw new IllegalArgumentException("Type not supported.");
   }
 }
 /**
  * Creates a new instance.
  *
  * @param model Reference to the Model. Mustn't be <code>null</code>.
  */
 public ManagerAction(TreeViewer model) {
   super(model);
   putValue(Action.SHORT_DESCRIPTION, UIUtilities.formatToolTipText(DESCRIPTION));
   IconManager im = IconManager.getInstance();
   putValue(Action.SMALL_ICON, im.getIcon(IconManager.DATA_MANAGER));
 }