Changeset 14816 in osm
- Timestamp:
- 2009-04-29T13:34:01+02:00 (16 years ago)
- Location:
- applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/ConfigKeys.java
r13497 r14816 31 31 public static final String OSB_API_DISABLED = "osb.api.disabled"; 32 32 public static final String OSB_API_URI_CLOSE = "osb.uri.close"; 33 public static final String OSB_API_URI_DOWNLOAD = "osb.uri.download"; 33 34 public static final String OSB_API_URI_EDIT = "osb.uri.edit"; 34 public static final String OSB_API_URI_DOWNLOAD = "osb.uri.download";35 35 public static final String OSB_API_URI_NEW = "osb.uri.new"; 36 public static final String OSB_NICKNAME = "osb.nickname";37 36 public static final String OSB_AUTO_DOWNLOAD = "osb.auto_download"; 38 37 public static final String OSB_BUTTON_LABELS = "osb.button_labels"; 38 public static final String OSB_COMMENT_HISTORY = "osb.comment.history"; 39 39 public static final String OSB_INCLUDE_DATE = "osb.include_date"; 40 public static final String OSB_NEW_HISTORY = "osb.new.history"; 41 public static final String OSB_NICKNAME = "osb.nickname"; 40 42 } -
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/gui/action/AddCommentAction.java
r14748 r14816 34 34 35 35 import org.openstreetmap.josm.Main; 36 import org.openstreetmap.josm.plugins.osb.ConfigKeys; 36 37 import org.openstreetmap.josm.plugins.osb.OsbPlugin; 37 38 import org.openstreetmap.josm.plugins.osb.api.EditAction; … … 52 53 @Override 53 54 protected void doActionPerformed(ActionEvent e) throws Exception { 54 List<String> history = StringUtils.stringToList(Main.pref.get( "osb.comment.history"), "§§§");55 List<String> history = StringUtils.stringToList(Main.pref.get(ConfigKeys.OSB_COMMENT_HISTORY), "§§§"); 55 56 HistoryChangedListener l = new HistoryChangedListener() { 56 57 public void historyChanged(List<String> history) { 57 Main.pref.put( "osb.comment.history", StringUtils.listToString(history, "§§§"));58 Main.pref.put(ConfigKeys.OSB_COMMENT_HISTORY, StringUtils.listToString(history, "§§§")); 58 59 } 59 60 }; -
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/gui/action/CloseIssueAction.java
r14750 r14816 34 34 35 35 import org.openstreetmap.josm.Main; 36 import org.openstreetmap.josm.plugins.osb.ConfigKeys; 36 37 import org.openstreetmap.josm.plugins.osb.OsbPlugin; 37 38 import org.openstreetmap.josm.plugins.osb.api.CloseAction; … … 54 55 @Override 55 56 protected void doActionPerformed(ActionEvent e) throws Exception { 56 List<String> history = StringUtils.stringToList(Main.pref.get( "osb.comment.history"), "§§§");57 List<String> history = StringUtils.stringToList(Main.pref.get(ConfigKeys.OSB_COMMENT_HISTORY), "§§§"); 57 58 HistoryChangedListener l = new HistoryChangedListener() { 58 59 public void historyChanged(List<String> history) { 59 Main.pref.put( "osb.comment.history", StringUtils.listToString(history, "§§§"));60 Main.pref.put(ConfigKeys.OSB_COMMENT_HISTORY, StringUtils.listToString(history, "§§§")); 60 61 } 61 62 }; -
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/gui/action/NewIssueAction.java
r14748 r14816 97 97 98 98 private void addNewIssue(MouseEvent e) { 99 List<String> history = StringUtils.stringToList(Main.pref.get( "osb.new.history"), "§§§");99 List<String> history = StringUtils.stringToList(Main.pref.get(ConfigKeys.OSB_NEW_HISTORY), "§§§"); 100 100 HistoryChangedListener l = new HistoryChangedListener() { 101 101 public void historyChanged(List<String> history) { 102 Main.pref.put( "osb.new.history", StringUtils.listToString(history, "§§§"));102 Main.pref.put(ConfigKeys.OSB_NEW_HISTORY, StringUtils.listToString(history, "§§§")); 103 103 } 104 104 };
Note:
See TracChangeset
for help on using the changeset viewer.