Changeset 32538 in osm for applications/editors/josm


Ignore:
Timestamp:
2016-07-02T22:07:14+02:00 (8 years ago)
Author:
donvip
Message:

checkstyle

Location:
applications/editors/josm/plugins/public_transport_layer
Files:
2 added
6 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/public_transport_layer/.project

    r32286 r32538  
    1616                        </arguments>
    1717                </buildCommand>
     18                <buildCommand>
     19                        <name>net.sf.eclipsecs.core.CheckstyleBuilder</name>
     20                        <arguments>
     21                        </arguments>
     22                </buildCommand>
    1823        </buildSpec>
    1924        <natures>
    2025                <nature>org.eclipse.jdt.core.javanature</nature>
     26                <nature>net.sf.eclipsecs.core.CheckstyleNature</nature>
    2127        </natures>
    2228</projectDescription>
  • applications/editors/josm/plugins/public_transport_layer/.settings/org.eclipse.jdt.core.prefs

    r31240 r32538  
    8181org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
    8282org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
     83org.eclipse.jdt.core.compiler.problem.unusedExceptionParameter=ignore
    8384org.eclipse.jdt.core.compiler.problem.unusedImport=warning
    8485org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
  • applications/editors/josm/plugins/public_transport_layer/build.xml

    r32475 r32538  
    33
    44    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    5     <property name="plugin.main.version" value="10353"/>
     5    <property name="plugin.main.version" value="10420"/>
    66
    77    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/public_transport_layer/src/ptl/DistanceBetweenStops.java

    r32475 r32538  
     1// License: GPL. For details, see LICENSE file.
    12package ptl;
    23
     
    5455            final List<Node> nodes = routeSegments.get(i).getWay().getNodes();
    5556            switch (link.direction) {
    56                 case BACKWARD:
    57                     Collections.reverse(nodes);
    58                     // fall through
    59                 case FORWARD:
    60                     routeNodes.addAll(link.linkPrev ? nodes.subList(1, nodes.size()) : nodes);
    61                     break;
     57            case BACKWARD:
     58                Collections.reverse(nodes);
     59                // fall through
     60            case FORWARD:
     61                routeNodes.addAll(link.linkPrev ? nodes.subList(1, nodes.size()) : nodes);
     62                break;
    6263            }
    6364        }
     
    137138            if (!isRouteSupported(relation)) {
    138139                JOptionPane.showMessageDialog(Main.parent, "<html>" + tr("A valid public_transport:version=2 route is required")
    139                         + Utils.joinAsHtmlUnorderedList(Collections.singleton(relation.getDisplayName(DefaultNameFormatter.getInstance()))),
    140                         tr("Invalid selection"), JOptionPane.WARNING_MESSAGE);
     140                + Utils.joinAsHtmlUnorderedList(Collections.singleton(relation.getDisplayName(DefaultNameFormatter.getInstance()))),
     141                tr("Invalid selection"), JOptionPane.WARNING_MESSAGE);
    141142                continue;
    142143            }
  • applications/editors/josm/plugins/public_transport_layer/src/ptl/Plugin.java

    r32142 r32538  
     1// License: GPL. For details, see LICENSE file.
    12package ptl;
    23
  • applications/editors/josm/plugins/public_transport_layer/src/ptl/PublicTransportLayer.java

    r32475 r32538  
     1// License: GPL. For details, see LICENSE file.
    12package ptl;
    23
     
    7576                color = ColorHelper.html2color(relation.get("colour"));
    7677            } catch (RuntimeException ignore) {
     78                Main.trace(ignore);
    7779            }
    7880            renderer.drawWay(way, color, new BasicStroke(1), null, null, 0, doDrawArrows, false, false, false);
     
    8789        for (Pair<Node, Node> nodePair : segmentRefs.keySet()) {
    8890            final String label = Utils.join(tr(", "), new TreeSet<>(segmentRefs.get(nodePair)));
    89             final TextLabel text = new TextLabel(new LabelCompositionStrategy.StaticLabelCompositionStrategy(label), new Font("SansSerif", Font.PLAIN, 16), 0, 0, new Color(0x80FFFFFF, true), 0f, null);
     91            final TextLabel text = new TextLabel(new LabelCompositionStrategy.StaticLabelCompositionStrategy(label),
     92                    new Font("SansSerif", Font.PLAIN, 16), 0, 0, new Color(0x80FFFFFF, true), 0f, null);
    9093            final Way way = new Way();
    9194            way.addNode(nodePair.a);
Note: See TracChangeset for help on using the changeset viewer.