public static String getStatusDescription(int status) {
    final String description;

    switch (status) {
      case CollabPrincipal.STATUS_AWAY:
        description =
            NbBundle.getMessage(ContactNode.class, "LBL_ContactNode_StatusAway"); // NOI18N

        break;

      case CollabPrincipal.STATUS_BUSY:
        description =
            NbBundle.getMessage(ContactNode.class, "LBL_ContactNode_StatusBusy"); // NOI18N

        break;

      case CollabPrincipal.STATUS_IDLE:
        description =
            NbBundle.getMessage(ContactNode.class, "LBL_ContactNode_StatusIdle"); // NOI18N

        break;

      case CollabPrincipal.STATUS_OFFLINE:
        description =
            NbBundle.getMessage(ContactNode.class, "LBL_ContactNode_StatusOffline"); // NOI18N

        break;

      case CollabPrincipal.STATUS_ONLINE:
        description =
            NbBundle.getMessage(ContactNode.class, "LBL_ContactNode_StatusOnline"); // NOI18N

        break;

      default:
        description =
            NbBundle.getMessage(ContactNode.class, "LBL_ContactNode_StatusUnknown"); // NOI18N
    }

    return description;
  }
Esempio n. 2
0
 @Override
 public String getName() {
   return NbBundle.getMessage(
       ChangeVariableNameAction.class, "ChangeVariableNameAction"); // NOI18N
 }
Esempio n. 3
0
 /**
  * Gets the name of this action. This may be presented as an item in a menu.
  *
  * @return actionName
  */
 @Override
 public String getName() {
   return NbBundle.getMessage(CaseDeleteAction.class, "CTL_CaseDeleteAction");
 }
Esempio n. 4
0
 /** The constructor for this class */
 public CaseDeleteAction() {
   putValue(
       Action.NAME,
       NbBundle.getMessage(CaseDeleteAction.class, "CTL_CaseDeleteAction")); // put the action Name
   this.setEnabled(false);
 }
 public String getName() {
   return NbBundle.getBundle(ContextNode.class).getString("CTL_BindNewObject");
 }