Changeset 29819 in osm for applications
- Timestamp:
- 2013-08-03T11:50:12+02:00 (11 years ago)
- Location:
- applications/editors/josm/plugins/CommandLine/src/CommandLine
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/CommandLine/src/CommandLine/Command.java
r29505 r29819 26 26 public int currentParameterNum; 27 27 public boolean tracks; 28 29 public Command () { parameters = new ArrayList<Parameter>(); optParameters = new ArrayList<Parameter>(); currentParameterNum = 0; tracks = false; icon = ""; } 28 public boolean asynchronous; 29 30 public Command () { parameters = new ArrayList<Parameter>(); optParameters = new ArrayList<Parameter>(); currentParameterNum = 0; tracks = false; asynchronous = false; icon = ""; } 30 31 31 32 public boolean loadObject(Object obj) { -
applications/editors/josm/plugins/CommandLine/src/CommandLine/CommandLine.java
r29817 r29819 558 558 } 559 559 Utils.close(osmWriter); 560 synchronized (syncObj) { 561 if (currentCommand.asynchronous) { 562 tp.running = false; 563 syncObj.notifyAll(); 564 } 565 } 560 566 } 561 567 }); -
applications/editors/josm/plugins/CommandLine/src/CommandLine/Loader.java
r29769 r29819 85 85 if (Value.equals("bbox")) 86 86 currentCommand.tracks = true; 87 } 88 else if (Name.equals("icon")) { 87 } else if (Name.equals("icon")) { 89 88 currentCommand.icon = Value; 89 } else if (Name.equals("asynchronous")) { 90 currentCommand.asynchronous = Value.equals("true") ? true : false; 90 91 } 91 92 } … … 126 127 } 127 128 128 129 @Override 129 130 public void characters(char ch[], int start, int length) 130 131 { … … 167 168 } 168 169 169 170 @Override 170 171 public void warning(SAXParseException ex) { 171 172 System.err.println("Warning in command xml file " + currentFile + ": " + ex.getMessage()); 172 173 } 173 174 174 175 @Override 175 176 public void error(SAXParseException ex) { 176 177 System.err.println("Error in command xml file " + currentFile + ": " + ex.getMessage()); 177 178 } 178 179 179 180 @Override 180 181 public void fatalError(SAXParseException ex) throws SAXException { 181 182 182 System.err.println("Error in command xml file " + currentFile + ": " + ex.getMessage()); 183 throw ex; 183 184 } 184 185 }
Note:
See TracChangeset
for help on using the changeset viewer.