Changeset 8380 in josm
- Timestamp:
- 2015-05-17T06:02:07+02:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/upload/UploadNotesTask.java
r8285 r8380 72 72 } 73 73 for (NoteComment comment : note.getComments()) { 74 if (comment. getIsNew()) {74 if (comment.isNew()) { 75 75 if (Main.isDebugEnabled()) { 76 76 Main.debug("found note change to upload"); -
trunk/src/org/openstreetmap/josm/actions/upload/ValidateUploadHook.java
r8378 r8380 92 92 } 93 93 } 94 if (!error. getIgnored()) {94 if (!error.isIgnored()) { 95 95 ++nume; 96 96 } -
trunk/src/org/openstreetmap/josm/data/notes/NoteComment.java
r8377 r8380 61 61 } 62 62 63 public void set IsNew(boolean isNew) {63 public void setNew(boolean isNew) { 64 64 this.isNew = isNew; 65 65 } 66 66 67 67 /** @return true if this is a new comment/action and needs to be uploaded to the API */ 68 public boolean getIsNew() {68 public boolean isNew() { 69 69 return isNew; 70 70 } -
trunk/src/org/openstreetmap/josm/data/osm/NoteData.java
r8365 r8380 149 149 } 150 150 for (NoteComment comment : note.getComments()) { 151 if (comment. getIsNew()) {151 if (comment.isNew()) { 152 152 return true; 153 153 } … … 170 170 @Override 171 171 public boolean evaluate(NoteComment object) { 172 return object. getIsNew();172 return object.isNew(); 173 173 } 174 174 }); -
trunk/src/org/openstreetmap/josm/data/validation/PaintVisitor.java
r8285 r8380 112 112 @Override 113 113 public void visit(TestError error) { 114 if (error != null && !error. getIgnored()) {114 if (error != null && !error.isIgnored()) { 115 115 color = error.getSeverity().getColor(); 116 116 selected = error.isSelected(); -
trunk/src/org/openstreetmap/josm/data/validation/TestError.java
r8378 r8380 208 208 } 209 209 210 public boolean getIgnored() {210 public boolean isIgnored() { 211 211 return ignored; 212 212 } -
trunk/src/org/openstreetmap/josm/gui/MainMenu.java
r8378 r8380 486 486 */ 487 487 public static JMenuItem add(JMenu menu, JosmAction action, boolean isExpert, Integer index) { 488 if (action.getShortcut(). getAutomatic())488 if (action.getShortcut().isAutomatic()) 489 489 return null; 490 490 final JMenuItem menuitem; … … 540 540 */ 541 541 public static <E extends Enum<E>> JMenuItem add(JMenu menu, JosmAction action, Enum<E> group) { 542 if (action.getShortcut(). getAutomatic())542 if (action.getShortcut().isAutomatic()) 543 543 return null; 544 544 int i = getInsertionIndexForGroup(menu, group.ordinal()); -
trunk/src/org/openstreetmap/josm/gui/dialogs/validator/ValidatorTreePanel.java
r8378 r8380 182 182 final Boolean other = ValidatorPreference.PREF_OTHER.get(); 183 183 for (TestError e : errors) { 184 if (e. getIgnored()) {184 if (e.isIgnored()) { 185 185 continue; 186 186 } … … 321 321 DataSet ds = Main.main.getCurrentDataSet(); 322 322 for (TestError error : newerrors) { 323 if (!error. getIgnored()) {323 if (!error.isIgnored()) { 324 324 errors.add(error); 325 325 if (ds != null) { -
trunk/src/org/openstreetmap/josm/gui/preferences/ToolbarPreferences.java
r8345 r8380 1121 1121 1122 1122 // add shortcut info to the tooltip if needed 1123 if (sc. getAssignedUser()) {1123 if (sc.isAssignedUser()) { 1124 1124 if (tt.startsWith("<html>") && tt.endsWith("</html>")) { 1125 1125 tt = tt.substring(6,tt.length()-6); -
trunk/src/org/openstreetmap/josm/gui/preferences/shortcut/PrefJPanel.java
r8345 r8380 166 166 label.setForeground(Main.pref.getUIColor("Table.foreground")); 167 167 } 168 if(sc. getAssignedUser()) {168 if(sc.isAssignedUser()) { 169 169 label.setBackground(Main.pref.getColor( 170 170 marktr("Shortcut Background: User"), 171 171 new Color(200,255,200))); 172 } else if(!sc. getAssignedDefault()) {172 } else if(!sc.isAssignedDefault()) { 173 173 label.setBackground(Main.pref.getColor( 174 174 marktr("Shortcut Background: Modified"), … … 289 289 int row = panel.shortcutTable.convertRowIndexToModel(lsm.getMinSelectionIndex()); 290 290 Shortcut sc = (Shortcut)panel.model.getValueAt(row, -1); 291 panel.cbDefault.setSelected(!sc. getAssignedUser());291 panel.cbDefault.setSelected(!sc.isAssignedUser()); 292 292 panel.cbDisable.setSelected(sc.getKeyStroke() == null); 293 293 panel.cbShift.setSelected(sc.getAssignedModifier() != -1 && (sc.getAssignedModifier() & KeyEvent.SHIFT_DOWN_MASK) != 0); -
trunk/src/org/openstreetmap/josm/io/NoteWriter.java
r8346 r8380 77 77 out.print("user=\"" + encode(comment.getUser().getName()) + "\" "); 78 78 } 79 out.print("is_new=\"" + comment. getIsNew() + "\" ");79 out.print("is_new=\"" + comment.isNew() + "\" "); 80 80 out.print(">"); 81 81 out.print(encode(comment.getText(), false)); -
trunk/src/org/openstreetmap/josm/tools/Shortcut.java
r8378 r8380 82 82 } 83 83 84 public boolean getAssignedDefault() {84 public boolean isAssignedDefault() { 85 85 return assignedDefault; 86 86 } 87 87 88 public boolean getAssignedUser() {88 public boolean isAssignedUser() { 89 89 return assignedUser; 90 90 } 91 91 92 public boolean getAutomatic() {92 public boolean isAutomatic() { 93 93 return automatic; 94 94 } … … 98 98 } 99 99 100 private boolean getReset() {100 private boolean isReset() { 101 101 return reset; 102 102 } … … 167 167 // get a string that can be put into the preferences 168 168 private boolean save() { 169 if ( getAutomatic() ||getReset() || !getAssignedUser()) {169 if (isAutomatic() || isReset() || !isAssignedUser()) { 170 170 return Main.pref.putCollection("shortcut.entry."+shortText, null); 171 171 } else { … … 316 316 317 317 for(Shortcut sc : newshortcuts) { 318 if (sc. getAssignedUser()318 if (sc.isAssignedUser() 319 319 && findShortcut(sc.getAssignedKey(), sc.getAssignedModifier()) == null) { 320 320 shortcuts.put(sc.getShortText(), sc); … … 323 323 // Shortcuts at their default values 324 324 for(Shortcut sc : newshortcuts) { 325 if (!sc. getAssignedUser() && sc.getAssignedDefault()325 if (!sc.isAssignedUser() && sc.isAssignedDefault() 326 326 && findShortcut(sc.getAssignedKey(), sc.getAssignedModifier()) == null) { 327 327 shortcuts.put(sc.getShortText(), sc); … … 330 330 // Shortcuts that were automatically moved 331 331 for(Shortcut sc : newshortcuts) { 332 if (!sc. getAssignedUser() && !sc.getAssignedDefault()332 if (!sc.isAssignedUser() && !sc.isAssignedDefault() 333 333 && findShortcut(sc.getAssignedKey(), sc.getAssignedModifier()) == null) { 334 334 shortcuts.put(sc.getShortText(), sc);
Note:
See TracChangeset
for help on using the changeset viewer.