Changeset 34537 in osm for applications/editors/josm


Ignore:
Timestamp:
2018-08-18T19:04:31+02:00 (6 years ago)
Author:
donvip
Message:

update to JOSM 14153

Location:
applications/editors/josm/plugins/osmarender
Files:
1 deleted
4 edited

Legend:

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

    r32174 r34537  
    66        </projects>
    77        <buildSpec>
    8                 <buildCommand>
    9                         <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
    10                         <triggers>full,incremental,</triggers>
    11                         <arguments>
    12                                 <dictionary>
    13                                         <key>LaunchConfigHandle</key>
    14                                         <value>&lt;project&gt;/.externalToolBuilders/copy_styles.launch</value>
    15                                 </dictionary>
    16                         </arguments>
    17                 </buildCommand>
    188                <buildCommand>
    199                        <name>org.eclipse.jdt.core.javabuilder</name>
  • applications/editors/josm/plugins/osmarender/.settings/org.eclipse.jdt.core.prefs

    r32699 r34537  
    33org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore
    44org.eclipse.jdt.core.compiler.annotation.nonnull=org.eclipse.jdt.annotation.NonNull
     5org.eclipse.jdt.core.compiler.annotation.nonnull.secondary=
    56org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annotation.NonNullByDefault
     7org.eclipse.jdt.core.compiler.annotation.nonnullbydefault.secondary=
    68org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nullable
     9org.eclipse.jdt.core.compiler.annotation.nullable.secondary=
    710org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled
    811org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
    912org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
    1013org.eclipse.jdt.core.compiler.compliance=1.8
     14org.eclipse.jdt.core.compiler.problem.APILeak=warning
    1115org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
    1216org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
     
    4650org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
    4751org.eclipse.jdt.core.compiler.problem.nonnullParameterAnnotationDropped=warning
     52org.eclipse.jdt.core.compiler.problem.nonnullTypeVariableFromLegacyInvocation=warning
    4853org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=error
    4954org.eclipse.jdt.core.compiler.problem.nullReference=warning
     
    5257org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
    5358org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
     59org.eclipse.jdt.core.compiler.problem.pessimisticNullAnalysisForFreeTypeVariables=warning
    5460org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
    5561org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore
     
    6874org.eclipse.jdt.core.compiler.problem.syntacticNullAnalysisForFields=disabled
    6975org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
     76org.eclipse.jdt.core.compiler.problem.terminalDeprecation=warning
    7077org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
    7178org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled
     
    7481org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
    7582org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
     83org.eclipse.jdt.core.compiler.problem.unlikelyCollectionMethodArgumentType=warning
     84org.eclipse.jdt.core.compiler.problem.unlikelyCollectionMethodArgumentTypeStrict=disabled
     85org.eclipse.jdt.core.compiler.problem.unlikelyEqualsArgumentType=info
    7686org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
    7787org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore
     
    8191org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
    8292org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
     93org.eclipse.jdt.core.compiler.problem.unusedExceptionParameter=ignore
    8394org.eclipse.jdt.core.compiler.problem.unusedImport=warning
    8495org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
  • applications/editors/josm/plugins/osmarender/build.xml

    r33916 r34537  
    55    <property name="commit.message" value="Fixed #4360 - osmarender plugin does not load"/>
    66    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    7     <property name="plugin.main.version" value="13007"/>
     7    <property name="plugin.main.version" value="14153"/>
    88
    99    <property name="stylesheets" location="./stylesheets"/>
  • applications/editors/josm/plugins/osmarender/src/org/openstreetmap/josm/plugins/osmarender/OsmarenderPlugin.java

    r34396 r34537  
    3030import javax.swing.JTextField;
    3131
    32 import org.openstreetmap.josm.Main;
    3332import org.openstreetmap.josm.actions.JosmAction;
    3433import org.openstreetmap.josm.data.Bounds;
     34import org.openstreetmap.josm.data.Preferences;
    3535import org.openstreetmap.josm.data.coor.LatLon;
    3636import org.openstreetmap.josm.data.osm.DataSet;
     
    5151import org.openstreetmap.josm.plugins.Plugin;
    5252import org.openstreetmap.josm.plugins.PluginInformation;
     53import org.openstreetmap.josm.spi.preferences.Config;
    5354import org.openstreetmap.josm.tools.GBC;
    5455import org.openstreetmap.josm.tools.Logging;
    55 import org.openstreetmap.josm.tools.PlatformHookWindows;
     56import org.openstreetmap.josm.tools.PlatformManager;
    5657import org.openstreetmap.josm.tools.Utils;
    5758
     
    8485            }
    8586
    86             String firefox = Main.pref.get("osmarender.firefox", "firefox");
     87            String firefox = Config.getPref().get("osmarender.firefox", "firefox");
    8788            String pluginDir = getPluginDirs().getUserDataDirectory(false).getPath();
    8889            try (OsmWriter w = OsmWriterFactory.createOsmWriter(new PrintWriter(new OutputStreamWriter(
     
    129130                // get the exec line
    130131                String argument;
    131                 if (Main.platform instanceof PlatformHookWindows)
     132                if (PlatformManager.isPlatformWindows())
    132133                    argument = "file:///"+pluginDir.replace('\\','/').replace(" ","%20")+File.separator+"generated.xml\"";
    133134                else
     
    137138                Runtime.getRuntime().exec(new String[]{firefox, argument});
    138139            } catch (IOException e1) {
    139                 JOptionPane.showMessageDialog(Main.parent,
     140                JOptionPane.showMessageDialog(MainApplication.getMainFrame(),
    140141                        tr("Firefox not found. Please set firefox executable in the Map Settings page of the preferences."));
    141142            }
     
    168169    @Deprecated
    169170    public String _getPluginDir() {
    170         return new File(Main.pref.getPluginsDirectory(), getPluginInformation().name).getPath();
     171        return new File(Preferences.main().getPluginsDirectory(), getPluginInformation().name).getPath();
    171172    }
    172173
     
    222223            panel.add(firefox, GBC.eol().insets(0,5,0,0).fill(GBC.HORIZONTAL));
    223224            panel.add(Box.createVerticalGlue(), GBC.eol().fill(GBC.BOTH));
    224             firefox.setText(Main.pref.get("osmarender.firefox"));
     225            firefox.setText(Config.getPref().get("osmarender.firefox"));
    225226            gui.getMapPreference().getTabPane().addTab(tr("Osmarender"), panel);
    226227        }
     
    228229        @Override
    229230        public boolean ok() {
    230             Main.pref.put("osmarender.firefox", firefox.getText());
     231            Config.getPref().put("osmarender.firefox", firefox.getText());
    231232            return false;
    232233        }
Note: See TracChangeset for help on using the changeset viewer.