Changeset 34537 in osm for applications/editors/josm
- Timestamp:
- 2018-08-18T19:04:31+02:00 (6 years ago)
- Location:
- applications/editors/josm/plugins/osmarender
- Files:
-
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/osmarender/.project
r32174 r34537 6 6 </projects> 7 7 <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><project>/.externalToolBuilders/copy_styles.launch</value>15 </dictionary>16 </arguments>17 </buildCommand>18 8 <buildCommand> 19 9 <name>org.eclipse.jdt.core.javabuilder</name> -
applications/editors/josm/plugins/osmarender/.settings/org.eclipse.jdt.core.prefs
r32699 r34537 3 3 org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore 4 4 org.eclipse.jdt.core.compiler.annotation.nonnull=org.eclipse.jdt.annotation.NonNull 5 org.eclipse.jdt.core.compiler.annotation.nonnull.secondary= 5 6 org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annotation.NonNullByDefault 7 org.eclipse.jdt.core.compiler.annotation.nonnullbydefault.secondary= 6 8 org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nullable 9 org.eclipse.jdt.core.compiler.annotation.nullable.secondary= 7 10 org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled 8 11 org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 9 12 org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 10 13 org.eclipse.jdt.core.compiler.compliance=1.8 14 org.eclipse.jdt.core.compiler.problem.APILeak=warning 11 15 org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning 12 16 org.eclipse.jdt.core.compiler.problem.assertIdentifier=error … … 46 50 org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore 47 51 org.eclipse.jdt.core.compiler.problem.nonnullParameterAnnotationDropped=warning 52 org.eclipse.jdt.core.compiler.problem.nonnullTypeVariableFromLegacyInvocation=warning 48 53 org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=error 49 54 org.eclipse.jdt.core.compiler.problem.nullReference=warning … … 52 57 org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning 53 58 org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore 59 org.eclipse.jdt.core.compiler.problem.pessimisticNullAnalysisForFreeTypeVariables=warning 54 60 org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore 55 61 org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore … … 68 74 org.eclipse.jdt.core.compiler.problem.syntacticNullAnalysisForFields=disabled 69 75 org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore 76 org.eclipse.jdt.core.compiler.problem.terminalDeprecation=warning 70 77 org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning 71 78 org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled … … 74 81 org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore 75 82 org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning 83 org.eclipse.jdt.core.compiler.problem.unlikelyCollectionMethodArgumentType=warning 84 org.eclipse.jdt.core.compiler.problem.unlikelyCollectionMethodArgumentTypeStrict=disabled 85 org.eclipse.jdt.core.compiler.problem.unlikelyEqualsArgumentType=info 76 86 org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore 77 87 org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore … … 81 91 org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled 82 92 org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled 93 org.eclipse.jdt.core.compiler.problem.unusedExceptionParameter=ignore 83 94 org.eclipse.jdt.core.compiler.problem.unusedImport=warning 84 95 org.eclipse.jdt.core.compiler.problem.unusedLabel=warning -
applications/editors/josm/plugins/osmarender/build.xml
r33916 r34537 5 5 <property name="commit.message" value="Fixed #4360 - osmarender plugin does not load"/> 6 6 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 7 <property name="plugin.main.version" value="1 3007"/>7 <property name="plugin.main.version" value="14153"/> 8 8 9 9 <property name="stylesheets" location="./stylesheets"/> -
applications/editors/josm/plugins/osmarender/src/org/openstreetmap/josm/plugins/osmarender/OsmarenderPlugin.java
r34396 r34537 30 30 import javax.swing.JTextField; 31 31 32 import org.openstreetmap.josm.Main;33 32 import org.openstreetmap.josm.actions.JosmAction; 34 33 import org.openstreetmap.josm.data.Bounds; 34 import org.openstreetmap.josm.data.Preferences; 35 35 import org.openstreetmap.josm.data.coor.LatLon; 36 36 import org.openstreetmap.josm.data.osm.DataSet; … … 51 51 import org.openstreetmap.josm.plugins.Plugin; 52 52 import org.openstreetmap.josm.plugins.PluginInformation; 53 import org.openstreetmap.josm.spi.preferences.Config; 53 54 import org.openstreetmap.josm.tools.GBC; 54 55 import org.openstreetmap.josm.tools.Logging; 55 import org.openstreetmap.josm.tools.Platform HookWindows;56 import org.openstreetmap.josm.tools.PlatformManager; 56 57 import org.openstreetmap.josm.tools.Utils; 57 58 … … 84 85 } 85 86 86 String firefox = Main.pref.get("osmarender.firefox", "firefox");87 String firefox = Config.getPref().get("osmarender.firefox", "firefox"); 87 88 String pluginDir = getPluginDirs().getUserDataDirectory(false).getPath(); 88 89 try (OsmWriter w = OsmWriterFactory.createOsmWriter(new PrintWriter(new OutputStreamWriter( … … 129 130 // get the exec line 130 131 String argument; 131 if ( Main.platform instanceof PlatformHookWindows)132 if (PlatformManager.isPlatformWindows()) 132 133 argument = "file:///"+pluginDir.replace('\\','/').replace(" ","%20")+File.separator+"generated.xml\""; 133 134 else … … 137 138 Runtime.getRuntime().exec(new String[]{firefox, argument}); 138 139 } catch (IOException e1) { 139 JOptionPane.showMessageDialog(Main .parent,140 JOptionPane.showMessageDialog(MainApplication.getMainFrame(), 140 141 tr("Firefox not found. Please set firefox executable in the Map Settings page of the preferences.")); 141 142 } … … 168 169 @Deprecated 169 170 public String _getPluginDir() { 170 return new File( Main.pref.getPluginsDirectory(), getPluginInformation().name).getPath();171 return new File(Preferences.main().getPluginsDirectory(), getPluginInformation().name).getPath(); 171 172 } 172 173 … … 222 223 panel.add(firefox, GBC.eol().insets(0,5,0,0).fill(GBC.HORIZONTAL)); 223 224 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")); 225 226 gui.getMapPreference().getTabPane().addTab(tr("Osmarender"), panel); 226 227 } … … 228 229 @Override 229 230 public boolean ok() { 230 Main.pref.put("osmarender.firefox", firefox.getText());231 Config.getPref().put("osmarender.firefox", firefox.getText()); 231 232 return false; 232 233 }
Note:
See TracChangeset
for help on using the changeset viewer.