()
| 139 | } |
| 140 | |
| 141 | public void eventOk(){ |
| 142 | //destroyView(); |
| 143 | boolean connected= ( sd.roster.isLoggedIn() ); |
| 144 | MenuItem me=(MenuItem) getFocusedObject(); |
| 145 | if (me==null) return; |
| 146 | int index=me.index; |
| 147 | switch (index) { |
| 148 | //#ifdef SERVICE_DISCOVERY |
| 149 | case 0: // Service Discovery |
| 150 | if (connected) new ServiceDiscovery(null, null, false); |
| 151 | break; |
| 152 | //#endif |
| 153 | //#ifdef PRIVACY |
| 154 | case 1: // Privacy Lists |
| 155 | if (connected) new QuickPrivacy().show(); |
| 156 | break; |
| 157 | //#endif |
| 158 | //#ifdef PEP |
| 159 | case 2: |
| 160 | if (connected) |
| 161 | new PepForm(); |
| 162 | return; |
| 163 | //#endif |
| 164 | case 3: { |
| 165 | if (! connected) break; |
| 166 | Contact c=sd.roster.selfContact(); |
| 167 | if (c.vcard!=null) { |
| 168 | new VCardEdit(c.vcard); |
| 169 | return; |
| 170 | } |
| 171 | VCard.request(c.jid.getBare(), c.getJid().toString()); |
| 172 | return; |
| 173 | } |
| 174 | case 4: |
| 175 | new ConfigForm(); |
| 176 | return; |
| 177 | //#if (HISTORY) |
| 178 | case 6: //history |
| 179 | new HistoryConfig(); |
| 180 | return; |
| 181 | //#endif |
| 182 | case 7: |
| 183 | new ConfigFonts(); |
| 184 | return; |
| 185 | //#if (FILE_IO) |
| 186 | case 8: |
| 187 | new io.file.browse.Browser(null, null, false); |
| 188 | return; |
| 189 | //#endif |
| 190 | //#if (FILE_TRANSFER) |
| 191 | case 9: |
| 192 | new io.file.transfer.TransferManager(); |
| 193 | return; |
| 194 | //#endif |
| 195 | case 10: |
| 196 | new ColorConfigForm(); |
| 197 | return; |
| 198 | //#if IMPORT_EXPORT |
nothing calls this directly
no test coverage detected