Changeset 23305 in osm for applications/editors/josm/plugins/ImportImagePlugin
- Timestamp:
- 2010-09-22T07:43:38+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/ImportImagePlugin
- Files:
-
- 5 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/ImportImagePlugin/build.xml
r23301 r23305 31 31 32 32 <!-- enter the SVN commit message --> 33 <property name="commit.message" value=" fix main class; add link" />33 <property name="commit.message" value="use consistent plugin name (don't mix up the words)" /> 34 34 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 35 35 <property name="plugin.main.version" value="3376" /> … … 118 118 <manifest> 119 119 <attribute name="Author" value="Christoph Beekmans, Fabian Kowitz, Anna Robaszkiewicz, Oliver Kuhn, Martin Ulitzny"/> 120 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.ImportImagePlugin.Im ageImportPlugin"/>120 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.ImportImagePlugin.ImportImagePlugin"/> 121 121 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 122 122 <attribute name="Plugin-Description" value="Plugin for importing spatial referenced images"/> -
applications/editors/josm/plugins/ImportImagePlugin/src/org/openstreetmap/josm/plugins/ImportImagePlugin/ImageLayer.java
r23187 r23305 1 package org.openstreetmap.josm.plugins.Im ageImportPlugin;1 package org.openstreetmap.josm.plugins.ImportImagePlugin; 2 2 3 3 import static org.openstreetmap.josm.tools.I18n.tr; … … 81 81 this.imageFile = file; 82 82 this.image = (BufferedImage) createImage(); 83 layericon = new ImageIcon(Im ageImportPlugin.pluginClassLoader.getResource("images/layericon.png"));83 layericon = new ImageIcon(ImportImagePlugin.pluginClassLoader.getResource("images/layericon.png")); 84 84 85 85 } -
applications/editors/josm/plugins/ImportImagePlugin/src/org/openstreetmap/josm/plugins/ImportImagePlugin/ImportImagePlugin.java
r23301 r23305 1 package org.openstreetmap.josm.plugins.Im ageImportPlugin;1 package org.openstreetmap.josm.plugins.ImportImagePlugin; 2 2 3 3 import java.io.BufferedInputStream; … … 30 30 * 31 31 */ 32 public class Im ageImportPlugin extends Plugin{32 public class ImportImagePlugin extends Plugin{ 33 33 34 34 private static Logger logger; … … 44 44 45 45 // path constants 46 static final String PLUGIN_DIR = Main.pref.getPluginsDirectory().getAbsolutePath() + "/Im ageImportPlugin/";47 static final String PLUGINPROPERTIES_PATH = Main.pref.getPluginsDirectory().getAbsolutePath() + "/Im ageImportPlugin/pluginProperties.properties";48 static final String PLUGINLIBRARIES_DIR = Main.pref.getPluginsDirectory().getAbsolutePath() + "/Im ageImportPlugin/lib/";46 static final String PLUGIN_DIR = Main.pref.getPluginsDirectory().getAbsolutePath() + "/ImportImagePlugin/"; 47 static final String PLUGINPROPERTIES_PATH = Main.pref.getPluginsDirectory().getAbsolutePath() + "/ImportImagePlugin/pluginProperties.properties"; 48 static final String PLUGINLIBRARIES_DIR = Main.pref.getPluginsDirectory().getAbsolutePath() + "/ImportImagePlugin/lib/"; 49 49 static final String PLUGINPROPERTIES_FILENAME = "pluginProperties.properties"; 50 static final String LOGGING_PROPERTIES_FILEPATH = Main.pref.getPluginsDirectory().getAbsolutePath() + "/Im ageImportPlugin/log4j.properties/";50 static final String LOGGING_PROPERTIES_FILEPATH = Main.pref.getPluginsDirectory().getAbsolutePath() + "/ImportImagePlugin/log4j.properties/"; 51 51 52 52 … … 61 61 * @param info 62 62 */ 63 public Im ageImportPlugin(PluginInformation info){63 public ImportImagePlugin(PluginInformation info){ 64 64 super(info); 65 65 … … 238 238 // Set file for logging here: 239 239 props.setProperty("log4j.appender.MyRoFiAppender.file", 240 (Main.pref.getPluginsDirectory().getAbsolutePath() + "/Im ageImportPlugin/" + "log.log"));240 (Main.pref.getPluginsDirectory().getAbsolutePath() + "/ImportImagePlugin/" + "log.log")); 241 241 242 242 PropertyConfigurator.configure(props); 243 243 244 logger = Logger.getLogger(Im ageImportPlugin.class);244 logger = Logger.getLogger(ImportImagePlugin.class); 245 245 246 246 logger.info("Logger successfully initialized."); … … 264 264 // Set file for logging here: 265 265 props.setProperty("log4j.appender.A.file", 266 (Main.pref.getPluginsDirectory().getAbsolutePath() + "/Im ageImportPlugin/" + "log.log"));266 (Main.pref.getPluginsDirectory().getAbsolutePath() + "/ImportImagePlugin/" + "log.log")); 267 267 268 268 PropertyConfigurator.configure(props); 269 logger = Logger.getLogger(Im ageImportPlugin.class);269 logger = Logger.getLogger(ImportImagePlugin.class); 270 270 logger.info("Logger successfully initialized with standard settings."); 271 271 … … 283 283 loader = URLClassLoader.newInstance( 284 284 new URL[] { new File(Main.pref.getPluginsDirectory().getAbsolutePath() + "/ImportImagePlugin.jar").toURI().toURL()}, 285 Im ageImportPlugin.class.getClassLoader()285 ImportImagePlugin.class.getClassLoader() 286 286 ); 287 287 -
applications/editors/josm/plugins/ImportImagePlugin/src/org/openstreetmap/josm/plugins/ImportImagePlugin/LayerPropertiesDialog.java
r23187 r23305 1 package org.openstreetmap.josm.plugins.Im ageImportPlugin;1 package org.openstreetmap.josm.plugins.ImportImagePlugin; 2 2 import java.awt.Cursor; 3 3 import java.awt.Dimension; … … 527 527 PluginOperations.defaultSourceCRSDescription = selection; 528 528 529 Im ageImportPlugin.pluginProps.setProperty("default_crs_eastingfirst", "" + eastingFirstCheckBox.isSelected());530 Im ageImportPlugin.pluginProps.setProperty("default_crs_srid", code);531 FileWriter fileWriter = new FileWriter(new File(Im ageImportPlugin.PLUGINPROPERTIES_PATH));532 Im ageImportPlugin.pluginProps.store(fileWriter, null);529 ImportImagePlugin.pluginProps.setProperty("default_crs_eastingfirst", "" + eastingFirstCheckBox.isSelected()); 530 ImportImagePlugin.pluginProps.setProperty("default_crs_srid", code); 531 FileWriter fileWriter = new FileWriter(new File(ImportImagePlugin.PLUGINPROPERTIES_PATH)); 532 ImportImagePlugin.pluginProps.store(fileWriter, null); 533 533 fileWriter.close(); 534 534 -
applications/editors/josm/plugins/ImportImagePlugin/src/org/openstreetmap/josm/plugins/ImportImagePlugin/LoadImageAction.java
r23187 r23305 1 package org.openstreetmap.josm.plugins.Im ageImportPlugin;1 package org.openstreetmap.josm.plugins.ImportImagePlugin; 2 2 import java.awt.event.ActionEvent; 3 3 import java.io.IOException; … … 16 16 import org.openstreetmap.josm.data.coor.LatLon; 17 17 import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; 18 import org.openstreetmap.josm.plugins.Im ageImportPlugin.ImageLayer.LayerCreationCancledException;18 import org.openstreetmap.josm.plugins.ImportImagePlugin.ImageLayer.LayerCreationCancledException; 19 19 20 20 -
applications/editors/josm/plugins/ImportImagePlugin/src/org/openstreetmap/josm/plugins/ImportImagePlugin/PluginOperations.java
r23187 r23305 1 package org.openstreetmap.josm.plugins.Im ageImportPlugin;1 package org.openstreetmap.josm.plugins.ImportImagePlugin; 2 2 3 3 import java.awt.geom.Rectangle2D;
Note:
See TracChangeset
for help on using the changeset viewer.