src/net/java/sip/communicator/impl/protocol/jabber/OperationSetPersistentPresenceJabberImpl.java
/**
     * Initializes the map with priorities and statuses which we will use when
     * changing statuses.
     */
Initializes the map with priorities and statuses which we will use when
changing statuses.
Initializes the map with priorities and statuses which we will use when changing statuses .
private void initializePriorities()
    {
        try
        {
            this.resourcePriorityAvailable =
                Integer.parseInt(parentProvider.getAccountID()
                    .getAccountPropertyString(
                        ProtocolProviderFactory.RESOURCE_PRIORITY));
        }
        catch(NumberFormatException ex)
        {
            logger.error("Wrong value for resource priority", ex);
        }
        addDefaultValue(JabberStatusEnum.AWAY, -5);
        addDefaultValue(JabberStatusEnum.EXTENDED_AWAY, -10);
        addDefaultValue(JabberStatusEnum.ON_THE_PHONE, -15);
        addDefaultValue(JabberStatusEnum.IN_A_MEETING, -16);
        addDefaultValue(JabberStatusEnum.DO_NOT_DISTURB, -20);
        addDefaultValue(JabberStatusEnum.FREE_FOR_CHAT, +5);
    }
private void initializePriorities ( ) { try { this . resourcePriorityAvailable = Integer . parseInt ( parentProvider . getAccountID ( ) . getAccountPropertyString ( ProtocolProviderFactory . RESOURCE_PRIORITY ) ) ; } catch ( NumberFormatException ex ) { logger . error ( "Wrong value for resource priority" , ex ) ; } addDefaultValue ( JabberStatusEnum . AWAY , - 5 ) ; addDefaultValue ( JabberStatusEnum . EXTENDED_AWAY , - 10 ) ; addDefaultValue ( JabberStatusEnum . ON_THE_PHONE , - 15 ) ; addDefaultValue ( JabberStatusEnum . IN_A_MEETING , - 16 ) ; addDefaultValue ( JabberStatusEnum . DO_NOT_DISTURB , - 20 ) ; addDefaultValue ( JabberStatusEnum . FREE_FOR_CHAT , + 5 ) ; }
Initializes the map with priorities and statuses which we will use when
 changing statuses.
Initializes the map with priorities and statuses which we will use when changing statuses .