- Timestamp:
- 06/30/09 18:05:35 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/jabberit_messenger/java_source/src/nu/fw/jeti/util/Preferences.java
r1014 r1064 65 65 { 66 66 Preferences.backend = backend; 67 68 67 InputStream data = null; 69 68 … … 77 76 addPreferences(parser, data, defaults); 78 77 } 79 catch(IOException ex) 80 { 81 // Do Nothing 82 //javax.swing.JOptionPane.showMessageDialog(null, 83 // "Comentar esta linha em Preferences.java\n" + "\nERRO : \n" + ex.getMessage() + "\n" + ex + "\n" ); 84 } 78 catch(IOException ex){} 85 79 86 80 // Initialize presence messages if none have been specified … … 91 85 } 92 86 93 private void addPreferences(SAXParser parser, InputStream data,Map store) { 94 try { 87 private void addPreferences(SAXParser parser, InputStream data,Map store) 88 { 89 try 90 { 95 91 parser.parse(data,new PreferencesHandler(store)); 96 } catch (SAXException ex) { 92 } 93 catch (SAXException ex) 94 { 97 95 ex.printStackTrace(); 98 } catch (IOException ex) { 96 } 97 catch (IOException ex) 98 { 99 99 ex.printStackTrace(); 100 100 } … … 109 109 110 110 List tempList = new ArrayList(10); 111 tempList.add("DisponÃvel"); 112 tempList.add("Livre p/ Chat"); 113 mapMessages.put("chat", tempList); 114 mapMessages.put("available", tempList); 115 tempList = new ArrayList(10); 116 tempList.add("Em reunião"); 117 tempList.add("Ocupado"); 118 tempList.add("Trabalhando"); 119 mapMessages.put("dnd", tempList); 120 tempList = new ArrayList(10); 121 tempList.add("No telefone"); 122 tempList.add("Volto Logo"); 123 mapMessages.put("away", tempList); 124 tempList = new ArrayList(10); 125 tempList.add("Férias"); 126 tempList.add("Em casa"); 127 tempList.add("Ausente"); 128 mapMessages.put("xa", tempList); 111 tempList.add("Disponível"); 112 tempList.add("Livre p/ Chat"); 113 mapMessages.put("chat", tempList); 114 mapMessages.put("available", tempList); 115 tempList = new ArrayList(10); 116 tempList.add("Em reunião"); 117 tempList.add("Ocupado"); 118 tempList.add("Trabalhando"); 119 mapMessages.put("dnd", tempList); 120 tempList = new ArrayList(10); 121 tempList.add("No telefone"); 122 tempList.add("Volto Logo"); 123 mapMessages.put("away", tempList); 124 tempList = new ArrayList(10); 125 tempList.add("Férias"); 126 tempList.add("Em casa"); 127 tempList.add("Ausente"); 128 mapMessages.put("xa", tempList); 129 129 130 return mapMessages; 130 131 }
Note: See TracChangeset
for help on using the changeset viewer.