Changeset 34166 in osm for applications/editors/josm
- Timestamp:
- 2018-04-24T02:20:27+02:00 (7 years ago)
- Location:
- applications/editors/josm/plugins/public_transport
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/public_transport/.settings/org.eclipse.jdt.core.prefs
r32699 r34166 14 14 org.eclipse.jdt.core.compiler.debug.localVariable=generate 15 15 org.eclipse.jdt.core.compiler.debug.sourceFile=generate 16 org.eclipse.jdt.core.compiler.doc.comment.support=enabled 16 17 org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning 17 18 org.eclipse.jdt.core.compiler.problem.assertIdentifier=error … … 37 38 org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning 38 39 org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore 40 org.eclipse.jdt.core.compiler.problem.invalidJavadoc=warning 41 org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled 42 org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=disabled 43 org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=disabled 44 org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=private 39 45 org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore 40 46 org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning … … 43 49 org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled 44 50 org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore 51 org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore 52 org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled 53 org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public 54 org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=all_standard_tags 55 org.eclipse.jdt.core.compiler.problem.missingJavadocTags=warning 56 org.eclipse.jdt.core.compiler.problem.missingJavadocTagsMethodTypeParameters=disabled 57 org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled 58 org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=private 45 59 org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore 46 60 org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled -
applications/editors/josm/plugins/public_transport/build.xml
r33765 r34166 5 5 <property name="commit.message" value="Commit message"/> 6 6 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 7 <property name="plugin.main.version" value="1 2643"/>7 <property name="plugin.main.version" value="13665"/> 8 8 9 9 <property name="plugin.author" value="Roland M. Olbricht"/> -
applications/editors/josm/plugins/public_transport/src/org/openstreetmap/josm/plugins/public_transport/actions/GTFSImporterAction.java
r33765 r34166 40 40 import org.openstreetmap.josm.tools.Logging; 41 41 42 /** 43 * Create Stops from GTFS 44 */ 42 45 public class GTFSImporterAction extends JosmAction { 43 46 private static GTFSImporterDialog dialog = null; … … 260 263 /** 261 264 * returns a collection of all selected lines or a collection of all lines otherwise 265 * @param table table 266 * @return all selected lines or a collection of all lines otherwise 262 267 */ 263 268 public static Vector<Integer> getConsideredLines(JTable table) { … … 276 281 } 277 282 278 /** marks the table items whose nodes are marked on the map */ 283 /** 284 * marks the table items whose nodes are marked on the map 285 * @param table table 286 * @param nodes nodes 287 */ 279 288 public static void findNodesInTable(JTable table, Vector<Node> nodes) { 280 289 DataSet ds = MainApplication.getLayerManager().getEditDataSet(); … … 293 302 * shows the nodes that correspond to the marked lines in the table. 294 303 * If no lines are marked in the table, show all nodes from the vector 304 * @param table table 305 * @param nodes nodes 295 306 */ 296 307 public static void showNodesFromTable(JTable table, Vector<Node> nodes) { … … 311 322 * marks the nodes that correspond to the marked lines in the table. 312 323 * If no lines are marked in the table, mark all nodes from the vector 324 * @param table table 325 * @param nodes nodes 313 326 */ 314 327 public static void markNodesFromTable(JTable table, Vector<Node> nodes) { -
applications/editors/josm/plugins/public_transport/src/org/openstreetmap/josm/plugins/public_transport/actions/StopImporterAction.java
r33765 r34166 51 51 import org.xml.sax.SAXException; 52 52 53 /** 54 * Create Stops from GPX 55 */ 53 56 public class StopImporterAction extends JosmAction { 54 57 private static StopImporterDialog dialog = null; … … 270 273 } 271 274 272 /** sets the tags of the node according to the type */ 275 /** 276 * sets the tags of the node according to the type 277 * @param node node 278 * @param type type 279 */ 273 280 public static void setTagsWrtType(Node node, String type) { 274 281 node.remove("highway"); … … 288 295 /** 289 296 * returns a collection of all selected lines or a collection of all lines otherwise 297 * @param table table 298 * @return all selected lines or a collection of all lines otherwise 290 299 */ 291 300 public static Vector<Integer> getConsideredLines(JTable table) { … … 304 313 } 305 314 306 /** marks the table items whose nodes are marked on the map */ 315 /** 316 * marks the table items whose nodes are marked on the map 317 * @param table table 318 * @param nodes nodes 319 */ 307 320 public static void findNodesInTable(JTable table, Vector<Node> nodes) { 308 321 DataSet ds = MainApplication.getLayerManager().getEditDataSet(); … … 320 333 /** 321 334 * shows the nodes that correspond to the marked lines in the table. If no lines are marked in the table, show all nodes from the vector 335 * @param table table 336 * @param nodes nodes 322 337 */ 323 338 public static void showNodesFromTable(JTable table, Vector<Node> nodes) { … … 337 352 /** 338 353 * marks the nodes that correspond to the marked lines in the table. If no lines are marked in the table, mark all nodes from the vector 354 * @param table table 355 * @param nodes nodes 339 356 */ 340 357 public static void markNodesFromTable(JTable table, Vector<Node> nodes) { -
applications/editors/josm/plugins/public_transport/src/org/openstreetmap/josm/plugins/public_transport/models/GTFSStopTableModel.java
r33765 r34166 7 7 import java.util.Vector; 8 8 9 import javax.swing.event.TableModelEvent;10 import javax.swing.event.TableModelListener;11 9 import javax.swing.table.DefaultTableModel; 12 10 … … 18 16 import org.openstreetmap.josm.plugins.public_transport.actions.GTFSImporterAction; 19 17 20 public class GTFSStopTableModel extends DefaultTableModel implements TableModelListener { 21 private GTFSImporterAction controller = null; 18 /** 19 * GTFS stop table model 20 */ 21 public class GTFSStopTableModel extends DefaultTableModel { 22 22 23 23 public Vector<Node> nodes = new Vector<>(); … … 71 71 lonCol = i; 72 72 73 this.controller = controller;74 73 addColumn(tr("Id")); 75 74 addColumn(tr("Name")); 76 75 addColumn(tr("State")); 77 addTableModelListener(this);78 76 } 79 77 … … 103 101 /** 104 102 * tokenizes a line as follows: any comma outside a pair of double quotation marks is taken as field separator. 105 * In particular, neither \" nor \, have a special meaning. Returns the position of the next field separator, if any. 106 * Otherwise it returns -1. s - the string to tokenize. startPos 107 * - the position of the last field separator plus 1 or the value 0. 103 * In particular, neither \" nor \, have a special meaning. 104 * @param s the string to tokenize 105 * @param startPos the position of the last field separator plus 1 or the value 0 106 * @return the position of the next field separator, if any. Otherwise it returns -1 108 107 */ 109 108 private int tokenize(String s, int startPos) { … … 214 213 super.setRowCount(0); 215 214 } 216 217 @Override218 public void tableChanged(TableModelEvent e) {219 }220 215 }
Note:
See TracChangeset
for help on using the changeset viewer.