| 129 | } |
| 130 | |
| 131 | public String getTipString() { |
| 132 | StringBuffer tip=new StringBuffer(actions[action]); |
| 133 | tip.append(" if ").append(types[type]); |
| 134 | if (type!=ITEM_ANY) { |
| 135 | tip.append('=').append(value); |
| 136 | } |
| 137 | tip.append(' '); |
| 138 | |
| 139 | if (messageStz && presenceInStz && presenceOutStz && iqStz) { |
| 140 | tip.append("all stanzas"); |
| 141 | } else if (!messageStz && !presenceInStz && !presenceOutStz && !iqStz) { |
| 142 | tip.append("all stanzas"); |
| 143 | } else { |
| 144 | if (messageStz) { tip.append(stanzas[STANZA_MSG]); tip.append(" "); } |
| 145 | if (presenceInStz) { tip.append(stanzas[STANZA_PRESENCE_IN]); tip.append(" "); } |
| 146 | if (presenceOutStz) { tip.append(stanzas[STANZA_PRESENCE_OUT]); tip.append(" "); } |
| 147 | if (iqStz) { tip.append(stanzas[STANZA_IQ]); tip.append(" "); } |
| 148 | } |
| 149 | return tip.toString(); |
| 150 | } |
| 151 | } |
| 152 | |
| 153 | //#endif |