Ignore:
Timestamp:
2016-03-30T00:10:58+02:00 (8 years ago)
Author:
donvip
Message:

fix #josm12704 - maintain plugin indoorhelper

Location:
applications/editors/josm/plugins/indoorhelper
Files:
3 deleted
3 edited

Legend:

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

    r32122 r32134  
    1212                        </arguments>
    1313                </buildCommand>
     14                <buildCommand>
     15                        <name>org.sonarlint.eclipse.core.sonarlintBuilder</name>
     16                        <arguments>
     17                        </arguments>
     18                </buildCommand>
    1419        </buildSpec>
    1520        <natures>
  • applications/editors/josm/plugins/indoorhelper/build.xml

    r32122 r32134  
    11<?xml version="1.0" encoding="utf-8"?>
    2 <!--
    3 ** This is a template build file for a JOSM  plugin.
    4 **
    5 ** Maintaining versions
    6 ** ====================
    7 ** See README.template
    8 **
    9 ** Usage
    10 ** =====
    11 ** Call "ant help" to get possible build targets.
    12 **
    13 -->
    142<project name="indoorhelper" default="dist" basedir=".">
    153
     
    175    <property name="commit.message" value="Inital commit"/>
    186    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    19     <property name="plugin.main.version" value="7001"/>
     7    <property name="plugin.main.version" value="9759"/>
    208
    219    <!-- Configure these properties (replace "..." accordingly).
    22 
    23 
    24 
    2510         See http://josm.openstreetmap.de/wiki/DevelopersGuide/DevelopingPlugins
    2611    -->
     
    4025    <!-- ** include targets that all plugins have in common ** -->
    4126    <import file="../build-common.xml"/>
    42  
    4327</project>
  • applications/editors/josm/plugins/indoorhelper/src/controller/IndoorHelperController.java

    r32122 r32134  
    3535import org.openstreetmap.josm.Main;
    3636import org.openstreetmap.josm.actions.ValidateAction;
    37 import org.openstreetmap.josm.data.Preferences.MapListSetting;
    38 import org.openstreetmap.josm.data.Preferences.Setting;
     37import org.openstreetmap.josm.data.preferences.MapListSetting;
     38import org.openstreetmap.josm.data.preferences.Setting;
    3939import org.openstreetmap.josm.data.osm.Tag;
    4040import org.openstreetmap.josm.data.validation.OsmValidator;
     
    527527         */
    528528        private void updateSettings(){
    529                 try {
    530                         Main.pref.load();
    531                         Main.pref.init(false);
    532                 } catch (IOException e) {
    533                         // TODO Auto-generated catch block
    534                         e.printStackTrace();
    535                 } catch (SAXException e) {
    536                         // TODO Auto-generated catch block
    537                         e.printStackTrace();
    538                 } catch (XMLStreamException e) {
    539                         // TODO Auto-generated catch block
    540                         e.printStackTrace();
    541                 }
    542                
     529                Main.pref.init(false);
    543530                MapCSSTagChecker tagChecker = OsmValidator.getTest(MapCSSTagChecker.class);
    544         if (tagChecker != null) {
    545             OsmValidator.initializeTests(Collections.singleton(tagChecker));
    546         }
    547        
    548         MapPaintStyles.readFromPreferences();
     531            if (tagChecker != null) {
     532                OsmValidator.initializeTests(Collections.singleton(tagChecker));
     533            }
     534           
     535            MapPaintStyles.readFromPreferences();
    549536        }
    550537}
Note: See TracChangeset for help on using the changeset viewer.