Ignore:
Timestamp:
2016-06-24T09:10:57+02:00 (10 years ago)
Author:
donvip
Message:

checkstyle, update to JOSM 10279

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/DownloadParentsAction.java

    r30737 r32395  
     1// License: GPL. For details, see LICENSE file.
    12package relcontext.actions;
    23
     
    2526/**
    2627 * Downloads parent relations for this relation and all parent objects for its members.
    27  * 
     28 *
    2829 * @author Zverik
    2930 */
     
    3132    private ChosenRelation rel;
    3233
    33     public DownloadParentsAction( ChosenRelation rel ) {
     34    public DownloadParentsAction(ChosenRelation rel) {
    3435        super(tr("Download referrers"));
    3536        putValue(SMALL_ICON, ImageProvider.get("download"));
     
    4041    }
    4142
    42     public void actionPerformed( ActionEvent e ) {
     43    @Override
     44    public void actionPerformed(ActionEvent e) {
    4345        Relation relation = rel.get();
    44         if( relation == null ) return;
     46        if (relation == null ) return;
    4547        List<OsmPrimitive> objects = new ArrayList<>();
    4648        objects.add(relation);
     
    4951    }
    5052
    51     public void chosenRelationChanged( Relation oldRelation, Relation newRelation ) {
     53    @Override
     54    public void chosenRelationChanged(Relation oldRelation, Relation newRelation) {
    5255        setEnabled(newRelation != null && Main.main.getEditLayer() != null);
    5356    }
    5457
    55     protected void downloadMembers( Relation rel ) {
    56         if( !rel.isNew() ) {
     58    protected void downloadMembers(Relation rel) {
     59        if (!rel.isNew()) {
    5760            Main.worker.submit(new DownloadRelationTask(Collections.singletonList(rel), Main.main.getEditLayer()));
    5861        }
    5962    }
    6063
    61     protected void downloadIncomplete( Relation rel ) {
    62         if( rel.isNew() ) return;
     64    protected void downloadIncomplete(Relation rel) {
     65        if (rel.isNew() ) return;
    6366        Set<OsmPrimitive> ret = new HashSet<>();
    6467        ret.addAll(rel.getIncompleteMembers());
    65         if( ret.isEmpty() ) return;
     68        if (ret.isEmpty() ) return;
    6669        Main.worker.submit(new DownloadRelationMemberTask(Collections.singletonList(rel), ret, Main.main.getEditLayer()));
    6770    }
Note: See TracChangeset for help on using the changeset viewer.