Changeset 10134 in josm for trunk/src/org
- Timestamp:
- 2016-04-10T16:57:50+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 1 added
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/relation/RecentRelationsAction.java
r9722 r10134 159 159 } 160 160 161 p ublicstatic void launch(Component parent, KeyStroke keystroke) {161 protected static void launch(Component parent, KeyStroke keystroke) { 162 162 Rectangle r = parent.getBounds(); 163 163 new RecentRelationsPopupMenu(getRecentRelationsOnActiveLayer(), keystroke).show(parent, r.x, r.y + r.height); -
trunk/src/org/openstreetmap/josm/actions/upload/UploadNotesTask.java
r9486 r10134 89 89 Note newNote; 90 90 switch (comment.getNoteAction()) { 91 case opened:91 case OPENED: 92 92 if (Main.isDebugEnabled()) { 93 93 Main.debug("opening new note"); … … 95 95 newNote = api.createNote(note.getLatLon(), comment.getText(), monitor); 96 96 break; 97 case closed:97 case CLOSED: 98 98 if (Main.isDebugEnabled()) { 99 99 Main.debug("closing note " + note.getId()); … … 101 101 newNote = api.closeNote(note, comment.getText(), monitor); 102 102 break; 103 case commented:103 case COMMENTED: 104 104 if (Main.isDebugEnabled()) { 105 105 Main.debug("adding comment to note " + note.getId()); … … 107 107 newNote = api.addCommentToNote(note, comment.getText(), monitor); 108 108 break; 109 case reopened:109 case REOPENED: 110 110 if (Main.isDebugEnabled()) { 111 111 Main.debug("reopening note " + note.getId()); -
trunk/src/org/openstreetmap/josm/data/cache/ICachedLoaderListener.java
r8624 r10134 2 2 package org.openstreetmap.josm.data.cache; 3 3 4 /** 5 * Cache loader listener. 6 * @since 8168 7 */ 4 8 public interface ICachedLoaderListener { 5 9 -
trunk/src/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJob.java
r9983 r10134 142 142 } 143 143 144 @Override 144 145 public V get() { 145 146 ensureCacheElement(); -
trunk/src/org/openstreetmap/josm/data/notes/Note.java
r10098 r10134 12 12 13 13 /** 14 * A map note. It always has at least one comment since a comment is required 15 * to create a note on osm.org14 * A map note. It always has at least one comment since a comment is required to create a note on osm.org. 15 * @since 7451 16 16 */ 17 17 public class Note { 18 18 19 public enum State { open, closed } 19 /** Note state */ 20 public enum State { 21 /** Note is open */ 22 OPEN, 23 /** Note is closed */ 24 CLOSED 25 } 20 26 21 27 private long id; … … 39 45 } 40 46 47 /** 48 * Sets note id. 49 * @param id OSM ID of this note 50 */ 41 51 public void setId(long id) { 42 52 this.id = id; … … 53 63 } 54 64 65 /** 66 * Sets date at which this note has been created. 67 * @param createdAt date at which this note has been created 68 */ 55 69 public void setCreatedAt(Date createdAt) { 56 70 this.createdAt = createdAt; … … 62 76 } 63 77 78 /** 79 * Sets date at which this note has been closed. 80 * @param closedAt date at which this note has been closed 81 */ 64 82 public void setClosedAt(Date closedAt) { 65 83 this.closedAt = closedAt; … … 71 89 } 72 90 91 /** 92 * Sets the note state. 93 * @param state note state (open or closed) 94 */ 73 95 public void setState(State state) { 74 96 this.state = state; … … 80 102 } 81 103 104 /** 105 * Adds a comment. 106 * @param comment note comment 107 */ 82 108 public void addComment(NoteComment comment) { 83 109 comments.add(comment); … … 112 138 @Override 113 139 public boolean equals(Object obj) { 114 if (this == obj) return true; 115 if (obj == null || getClass() != obj.getClass()) return false; 140 if (this == obj) 141 return true; 142 if (obj == null || getClass() != obj.getClass()) 143 return false; 116 144 Note note = (Note) obj; 117 145 return id == note.id; -
trunk/src/org/openstreetmap/josm/data/notes/NoteComment.java
r10098 r10134 9 9 * Represents a comment made on a note. All notes have at least on comment 10 10 * which is the comment the note was opened with. Comments are immutable. 11 * @since 7451 11 12 */ 12 13 public class NoteComment { … … 25 26 */ 26 27 public enum Action { 27 opened, 28 closed, 29 reopened, 30 commented, 31 hidden 28 /** note has been opened */ 29 OPENED, 30 /** note has been closed */ 31 CLOSED, 32 /** note has been reopened */ 33 REOPENED, 34 /** note has been commented */ 35 COMMENTED, 36 /** note has been hidden */ 37 HIDDEN 32 38 } 33 39 -
trunk/src/org/openstreetmap/josm/data/osm/NoteData.java
r9213 r10134 46 46 return -1; 47 47 } 48 if (n1.getState() == State. closed&& n2.getState() == State.open) {48 if (n1.getState() == State.CLOSED && n2.getState() == State.OPEN) { 49 49 return 1; 50 50 } 51 if (n1.getState() == State. open&& n2.getState() == State.closed) {51 if (n1.getState() == State.OPEN && n2.getState() == State.CLOSED) { 52 52 return -1; 53 53 } … … 200 200 Note note = new Note(location); 201 201 note.setCreatedAt(new Date()); 202 note.setState(State. open);202 note.setState(State.OPEN); 203 203 note.setId(newNoteId--); 204 NoteComment comment = new NoteComment(new Date(), getCurrentUser(), text, NoteComment.Action. opened, true);204 NoteComment comment = new NoteComment(new Date(), getCurrentUser(), text, NoteComment.Action.OPENED, true); 205 205 note.addComment(comment); 206 206 if (Main.isDebugEnabled()) { … … 220 220 throw new IllegalArgumentException("Note to modify must be in layer"); 221 221 } 222 if (note.getState() == State. closed) {222 if (note.getState() == State.CLOSED) { 223 223 throw new IllegalStateException("Cannot add a comment to a closed note"); 224 224 } … … 226 226 Main.debug("Adding comment to note {0}: {1}", note.getId(), text); 227 227 } 228 NoteComment comment = new NoteComment(new Date(), getCurrentUser(), text, NoteComment.Action. commented, true);228 NoteComment comment = new NoteComment(new Date(), getCurrentUser(), text, NoteComment.Action.COMMENTED, true); 229 229 note.addComment(comment); 230 230 dataUpdated(); … … 240 240 throw new IllegalArgumentException("Note to close must be in layer"); 241 241 } 242 if (note.getState() != State. open) {242 if (note.getState() != State.OPEN) { 243 243 throw new IllegalStateException("Cannot close a note that isn't open"); 244 244 } … … 246 246 Main.debug("closing note {0} with comment: {1}", note.getId(), text); 247 247 } 248 NoteComment comment = new NoteComment(new Date(), getCurrentUser(), text, NoteComment.Action. closed, true);248 NoteComment comment = new NoteComment(new Date(), getCurrentUser(), text, NoteComment.Action.CLOSED, true); 249 249 note.addComment(comment); 250 note.setState(State. closed);250 note.setState(State.CLOSED); 251 251 note.setClosedAt(new Date()); 252 252 dataUpdated(); … … 262 262 throw new IllegalArgumentException("Note to reopen must be in layer"); 263 263 } 264 if (note.getState() != State. closed) {264 if (note.getState() != State.CLOSED) { 265 265 throw new IllegalStateException("Cannot reopen a note that isn't closed"); 266 266 } … … 268 268 Main.debug("reopening note {0} with comment: {1}", note.getId(), text); 269 269 } 270 NoteComment comment = new NoteComment(new Date(), getCurrentUser(), text, NoteComment.Action. reopened, true);270 NoteComment comment = new NoteComment(new Date(), getCurrentUser(), text, NoteComment.Action.REOPENED, true); 271 271 note.addComment(comment); 272 note.setState(State. open);272 note.setState(State.OPEN); 273 273 dataUpdated(); 274 274 } -
trunk/src/org/openstreetmap/josm/data/osm/visitor/MergeSourceBuildingVisitor.java
r9067 r10134 27 27 * incomplete {@link OsmPrimitive}s which are referred to by relations in the original collection. And 28 28 * it turns {@link OsmPrimitive} referred to by {@link Relation}s in the original collection into 29 * incomplete {@link OsmPrimitive}s in the "hull", if they are not themselves present in the 30 * original collection. 31 * 29 * incomplete {@link OsmPrimitive}s in the "hull", if they are not themselves present in the original collection. 30 * @since 1891 32 31 */ 33 32 public class MergeSourceBuildingVisitor extends AbstractVisitor { … … 103 102 List<RelationMemberData> newMembers = new ArrayList<>(); 104 103 for (RelationMember member: r.getMembers()) { 105 newMembers.add( 106 new RelationMemberData(member.getRole(), mappedPrimitives.get(member.getMember()))); 104 newMembers.add(new RelationMemberData(member.getRole(), mappedPrimitives.get(member.getMember()))); 107 105 108 106 } … … 134 132 public void visit(Way w) { 135 133 // remember all nodes this way refers to ... 136 //137 134 for (Node n: w.getNodes()) { 138 135 n.accept(this); … … 144 141 @Override 145 142 public void visit(Relation r) { 146 // first, remember all primitives members refer to (only if necessary, see 147 // below) 148 // 143 // first, remember all primitives members refer to (only if necessary, see below) 149 144 rememberRelationPartial(r); 150 145 for (RelationMember member: r.getMembers()) { 151 146 if (isAlreadyRemembered(member.getMember())) { 152 147 // referred primitive already remembered 153 //154 148 continue; 155 149 } … … 186 180 } 187 181 182 /** 183 * Builds and returns the "hull". 184 * @return the "hull" data set 185 */ 188 186 public DataSet build() { 189 187 for (OsmPrimitive primitive: selectionBase.getAllSelected()) { -
trunk/src/org/openstreetmap/josm/gui/conflict/ConflictColors.java
r9212 r10134 9 9 import org.openstreetmap.josm.data.Preferences.ColorKey; 10 10 11 /** 12 * Conflict color constants. 13 * @since 4162 14 */ 11 15 public enum ConflictColors implements ColorKey { 12 16 17 /** Conflict background: no conflict */ 13 18 BGCOLOR_NO_CONFLICT(marktr("Conflict background: no conflict"), new Color(234, 234, 234)), 19 /** Conflict background: decided */ 14 20 BGCOLOR_DECIDED(marktr("Conflict background: decided"), new Color(217, 255, 217)), 21 /** Conflict background: undecided */ 15 22 BGCOLOR_UNDECIDED(marktr("Conflict background: undecided"), new Color(255, 197, 197)), 23 /** Conflict background: drop */ 16 24 BGCOLOR_DROP(marktr("Conflict background: drop"), Color.white), 25 /** Conflict background: keep */ 17 26 BGCOLOR_KEEP(marktr("Conflict background: keep"), new Color(217, 255, 217)), 27 /** Conflict background: combined */ 18 28 BGCOLOR_COMBINED(marktr("Conflict background: combined"), new Color(217, 255, 217)), 29 /** Conflict background: selected */ 19 30 BGCOLOR_SELECTED(marktr("Conflict background: selected"), new Color(143, 170, 255)), 20 31 32 /** Conflict foreground: undecided */ 21 33 FGCOLOR_UNDECIDED(marktr("Conflict foreground: undecided"), Color.black), 34 /** Conflict foreground: drop */ 22 35 FGCOLOR_DROP(marktr("Conflict foreground: drop"), Color.lightGray), 36 /** Conflict foreground: keep */ 23 37 FGCOLOR_KEEP(marktr("Conflict foreground: keep"), Color.black), 24 38 39 /** Conflict background: empty row */ 25 40 BGCOLOR_EMPTY_ROW(marktr("Conflict background: empty row"), new Color(234, 234, 234)), 41 /** Conflict background: frozen */ 26 42 BGCOLOR_FROZEN(marktr("Conflict background: frozen"), new Color(234, 234, 234)), 43 /** Conflict background: in comparison */ 27 44 BGCOLOR_PARTICIPATING_IN_COMPARISON(marktr("Conflict background: in comparison"), Color.black), 45 /** Conflict foreground: in comparison */ 28 46 FGCOLOR_PARTICIPATING_IN_COMPARISON(marktr("Conflict foreground: in comparison"), Color.white), 47 /** Conflict background */ 29 48 BGCOLOR(marktr("Conflict background"), Color.white), 49 /** Conflict foreground */ 30 50 FGCOLOR(marktr("Conflict foreground"), Color.black), 31 51 52 /** Conflict background: not in opposite */ 32 53 BGCOLOR_NOT_IN_OPPOSITE(marktr("Conflict background: not in opposite"), new Color(255, 197, 197)), 54 /** Conflict background: in opposite */ 33 55 BGCOLOR_IN_OPPOSITE(marktr("Conflict background: in opposite"), new Color(255, 234, 213)), 56 /** Conflict background: same position in opposite */ 34 57 BGCOLOR_SAME_POSITION_IN_OPPOSITE(marktr("Conflict background: same position in opposite"), new Color(217, 255, 217)), 35 58 59 /** Conflict background: keep one tag */ 36 60 BGCOLOR_TAG_KEEP_ONE(marktr("Conflict background: keep one tag"), new Color(217, 255, 217)), 61 /** Conflict foreground: keep one tag */ 37 62 FGCOLOR_TAG_KEEP_ONE(marktr("Conflict foreground: keep one tag"), Color.black), 63 /** Conflict background: drop tag */ 38 64 BGCOLOR_TAG_KEEP_NONE(marktr("Conflict background: drop tag"), Color.lightGray), 65 /** Conflict foreground: drop tag */ 39 66 FGCOLOR_TAG_KEEP_NONE(marktr("Conflict foreground: drop tag"), Color.black), 67 /** Conflict background: keep all tags */ 40 68 BGCOLOR_TAG_KEEP_ALL(marktr("Conflict background: keep all tags"), new Color(255, 234, 213)), 69 /** Conflict foreground: keep all tags */ 41 70 FGCOLOR_TAG_KEEP_ALL(marktr("Conflict foreground: keep all tags"), Color.black), 71 /** Conflict background: sum all numeric tags */ 42 72 BGCOLOR_TAG_SUM_ALL_NUM(marktr("Conflict background: sum all numeric tags"), new Color(255, 234, 213)), 73 /** Conflict foreground: sum all numeric tags */ 43 74 FGCOLOR_TAG_SUM_ALL_NUM(marktr("Conflict foreground: sum all numeric tags"), Color.black), 44 75 76 /** Conflict background: keep member */ 45 77 BGCOLOR_MEMBER_KEEP(marktr("Conflict background: keep member"), new Color(217, 255, 217)), 78 /** Conflict foreground: keep member */ 46 79 FGCOLOR_MEMBER_KEEP(marktr("Conflict foreground: keep member"), Color.black), 80 /** Conflict background: remove member */ 47 81 BGCOLOR_MEMBER_REMOVE(marktr("Conflict background: remove member"), Color.lightGray), 82 /** Conflict foreground: remove member */ 48 83 FGCOLOR_MEMBER_REMOVE(marktr("Conflict foreground: remove member"), Color.black); 49 84 -
trunk/src/org/openstreetmap/josm/gui/dialogs/NotesDialog.java
r9983 r10134 146 146 addCommentAction.setEnabled(false); 147 147 reopenAction.setEnabled(false); 148 } else if (noteData.getSelectedNote().getState() == State. open) {148 } else if (noteData.getSelectedNote().getState() == State.OPEN) { 149 149 closeAction.setEnabled(true); 150 150 addCommentAction.setEnabled(true); … … 249 249 if (note.getId() < 0) { 250 250 icon = ICON_NEW_SMALL; 251 } else if (note.getState() == State. closed) {251 } else if (note.getState() == State.CLOSED) { 252 252 icon = ICON_CLOSED_SMALL; 253 253 } else { -
trunk/src/org/openstreetmap/josm/gui/layer/NoteLayer.java
r9751 r10134 113 113 if (note.getId() < 0) { 114 114 icon = NotesDialog.ICON_NEW_SMALL; 115 } else if (note.getState() == State. closed) {115 } else if (note.getState() == State.CLOSED) { 116 116 icon = NotesDialog.ICON_CLOSED_SMALL; 117 117 } else { -
trunk/src/org/openstreetmap/josm/gui/preferences/display/LanguagePreference.java
r8836 r10134 31 31 /** 32 32 * Language preferences. 33 * @since 1065 33 34 */ 34 35 public class LanguagePreference implements SubPreferenceSetting { 36 37 private static final String LANGUAGE = "language"; 35 38 36 39 /** … … 52 55 // Selecting the language BEFORE the JComboBox listens to model changes speed up initialization by ~35ms (see #7386) 53 56 // See https://stackoverflow.com/questions/3194958/fast-replacement-for-jcombobox-basiccomboboxui 54 model.selectLanguage(Main.pref.get( "language"));57 model.selectLanguage(Main.pref.get(LANGUAGE)); 55 58 langCombo = new JosmComboBox<>(model); 56 59 langCombo.setRenderer(new LanguageCellRenderer()); … … 70 73 public boolean ok() { 71 74 if (langCombo.getSelectedItem() == null) 72 return Main.pref.put( "language", null);75 return Main.pref.put(LANGUAGE, null); 73 76 else 74 return Main.pref.put( "language",77 return Main.pref.put(LANGUAGE, 75 78 LanguageInfo.getJOSMLocaleCode((Locale) langCombo.getSelectedItem())); 76 79 } … … 84 87 } 85 88 86 p ublicvoid selectLanguage(String language) {89 private void selectLanguage(String language) { 87 90 setSelectedItem(null); 88 91 if (language != null) { 89 language= LanguageInfo.getJavaLocaleCode(language);92 String lang = LanguageInfo.getJavaLocaleCode(language); 90 93 for (Locale locale: data) { 91 94 if (locale == null) { 92 95 continue; 93 96 } 94 if (locale.toString().equals(lang uage)) {97 if (locale.toString().equals(lang)) { 95 98 setSelectedItem(locale); 96 99 return; -
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreference.java
r10099 r10134 878 878 } 879 879 880 p ublicOffsetBookmark getRow(int row) {880 private OffsetBookmark getRow(int row) { 881 881 return bookmarks.get(row); 882 882 } 883 883 884 p ublicvoid addRow(OffsetBookmark i) {884 private void addRow(OffsetBookmark i) { 885 885 bookmarks.add(i); 886 886 int p = getRowCount() - 1; -
trunk/src/org/openstreetmap/josm/gui/preferences/shortcut/PrefJPanel.java
r9543 r10134 77 77 private static Map<Integer, String> keyList = setKeyList(); 78 78 79 private final JCheckBox cbAlt = new JCheckBox(); 80 private final JCheckBox cbCtrl = new JCheckBox(); 81 private final JCheckBox cbMeta = new JCheckBox(); 82 private final JCheckBox cbShift = new JCheckBox(); 83 private final JCheckBox cbDefault = new JCheckBox(); 84 private final JCheckBox cbDisable = new JCheckBox(); 85 private final JosmComboBox<String> tfKey = new JosmComboBox<>(); 86 87 private final JTable shortcutTable = new JTable(); 88 89 private final JosmTextField filterField = new JosmTextField(); 90 91 /** Creates new form prefJPanel */ 92 public PrefJPanel() { 93 this.model = new ScListModel(); 94 initComponents(); 95 } 96 79 97 private static Map<Integer, String> setKeyList() { 80 98 Map<Integer, String> list = new LinkedHashMap<>(); … … 89 107 list.put(Integer.valueOf(i), s); 90 108 } 91 } catch (Exception e) { 109 } catch (IllegalArgumentException | IllegalAccessException e) { 92 110 Main.error(e); 93 111 } … … 96 114 list.put(Integer.valueOf(-1), ""); 97 115 return list; 98 }99 100 private final JCheckBox cbAlt = new JCheckBox();101 private final JCheckBox cbCtrl = new JCheckBox();102 private final JCheckBox cbMeta = new JCheckBox();103 private final JCheckBox cbShift = new JCheckBox();104 private final JCheckBox cbDefault = new JCheckBox();105 private final JCheckBox cbDisable = new JCheckBox();106 private final JosmComboBox<String> tfKey = new JosmComboBox<>();107 108 private final JTable shortcutTable = new JTable();109 110 private final JosmTextField filterField = new JosmTextField();111 112 /** Creates new form prefJPanel */113 public PrefJPanel() {114 this.model = new ScListModel();115 initComponents();116 116 } 117 117 … … 169 169 int row1 = shortcutTable.convertRowIndexToModel(row); 170 170 Shortcut sc = (Shortcut) model.getValueAt(row1, -1); 171 if (sc == null) return null; 171 if (sc == null) 172 return null; 172 173 JLabel label = (JLabel) super.getTableCellRendererComponent( 173 174 table, name ? sc.getLongText() : sc.getKeyText(), isSelected, hasFocus, row, column); … … 187 188 188 189 private void initComponents() { 189 JPanel listPane = new JPanel(new GridLayout());190 JScrollPane listScrollPane = new JScrollPane();191 JPanel shortcutEditPane = new JPanel(new GridLayout(5, 2));192 193 190 CbAction action = new CbAction(this); 194 191 setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); … … 197 194 // This is the list of shortcuts: 198 195 shortcutTable.setModel(model); 199 shortcutTable.getSelectionModel().addListSelectionListener( new CbAction(this));196 shortcutTable.getSelectionModel().addListSelectionListener(action); 200 197 shortcutTable.setFillsViewportHeight(true); 201 198 shortcutTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); … … 204 201 mod.getColumn(0).setCellRenderer(new ShortcutTableCellRenderer(true)); 205 202 mod.getColumn(1).setCellRenderer(new ShortcutTableCellRenderer(false)); 203 JScrollPane listScrollPane = new JScrollPane(); 206 204 listScrollPane.setViewportView(shortcutTable); 207 205 206 JPanel listPane = new JPanel(new GridLayout()); 208 207 listPane.add(listScrollPane); 209 210 208 add(listPane); 211 209 … … 227 225 cbMeta.setText(META); // see above for why no tr() 228 226 227 JPanel shortcutEditPane = new JPanel(new GridLayout(5, 2)); 228 229 229 shortcutEditPane.add(cbDefault); 230 230 shortcutEditPane.add(new JLabel()); … … 266 266 } 267 267 268 private void disableAllModifierCheckboxes() {269 cbDefault.setEnabled(false);270 cbDisable.setEnabled(false);271 cbShift.setEnabled(false);272 cbCtrl.setEnabled(false);273 cbAlt.setEnabled(false);274 cbMeta.setEnabled(false);275 }276 277 268 // this allows to edit shortcuts. it: 278 269 // * sets the edit controls to the selected shortcut … … 282 273 // are playing ping-pong (politically correct: table tennis, I know) and 283 274 // even have some duplicated code. Feel free to refactor, If you have 284 // more exp irience with GUI coding than I have.285 private class CbAction extends AbstractAction implements ListSelectionListener { 275 // more experience with GUI coding than I have. 276 private static class CbAction extends AbstractAction implements ListSelectionListener { 286 277 private final PrefJPanel panel; 287 278 288 279 CbAction(PrefJPanel panel) { 289 280 this.panel = panel; 281 } 282 283 private void disableAllModifierCheckboxes() { 284 panel.cbDefault.setEnabled(false); 285 panel.cbDisable.setEnabled(false); 286 panel.cbShift.setEnabled(false); 287 panel.cbCtrl.setEnabled(false); 288 panel.cbAlt.setEnabled(false); 289 panel.cbMeta.setEnabled(false); 290 290 } 291 291 … … 303 303 panel.cbMeta.setSelected(sc.getAssignedModifier() != -1 && (sc.getAssignedModifier() & KeyEvent.META_DOWN_MASK) != 0); 304 304 if (sc.getKeyStroke() != null) { 305 tfKey.setSelectedItem(keyList.get(sc.getKeyStroke().getKeyCode())); 305 panel.tfKey.setSelectedItem(keyList.get(sc.getKeyStroke().getKeyCode())); 306 306 } else { 307 tfKey.setSelectedItem(keyList.get(-1)); 307 panel.tfKey.setSelectedItem(keyList.get(-1)); 308 308 } 309 309 if (!sc.isChangeable()) { … … 314 314 actionPerformed(null); 315 315 } 316 model.fireTableRowsUpdated(row, row); 316 panel.model.fireTableRowsUpdated(row, row); 317 317 } else { 318 panel.disableAllModifierCheckboxes();318 disableAllModifierCheckboxes(); 319 319 panel.tfKey.setEnabled(false); 320 320 } … … 357 357 panel.tfKey.setEnabled(state); 358 358 } else { 359 panel.disableAllModifierCheckboxes();359 disableAllModifierCheckboxes(); 360 360 panel.tfKey.setEnabled(false); 361 361 } … … 364 364 365 365 class FilterFieldAdapter implements DocumentListener { 366 p ublicvoid filter() {366 private void filter() { 367 367 String expr = filterField.getText().trim(); 368 368 if (expr.isEmpty()) { -
trunk/src/org/openstreetmap/josm/io/NoteReader.java
r9569 r10134 101 101 String closedTimeStr = attrs.getValue("closed_at"); 102 102 if (closedTimeStr == null) { //no closed_at means the note is still open 103 thisNote.setState(Note.State. open);103 thisNote.setState(Note.State.OPEN); 104 104 } else { 105 thisNote.setState(Note.State. closed);105 thisNote.setState(Note.State.CLOSED); 106 106 thisNote.setClosedAt(DateUtils.fromString(closedTimeStr)); 107 107 }
Note:
See TracChangeset
for help on using the changeset viewer.