Ignore:
Timestamp:
2010-09-22T07:43:38+02:00 (14 years ago)
Author:
bastik
Message:

'use consistent plugin name (don't mix up the words)'

Location:
applications/editors/josm/plugins/ImportImagePlugin
Files:
5 edited
1 moved

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/ImportImagePlugin/build.xml

    r23301 r23305  
    3131
    3232        <!-- 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)" />
    3434        <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    3535        <property name="plugin.main.version" value="3376" />
     
    118118                        <manifest>
    119119                <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.ImageImportPlugin"/>
     120                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.ImportImagePlugin.ImportImagePlugin"/>
    121121                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    122122                <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.ImageImportPlugin;
     1package org.openstreetmap.josm.plugins.ImportImagePlugin;
    22
    33import static org.openstreetmap.josm.tools.I18n.tr;
     
    8181        this.imageFile = file;
    8282        this.image = (BufferedImage) createImage();
    83         layericon = new ImageIcon(ImageImportPlugin.pluginClassLoader.getResource("images/layericon.png"));
     83        layericon = new ImageIcon(ImportImagePlugin.pluginClassLoader.getResource("images/layericon.png"));
    8484       
    8585    }
  • applications/editors/josm/plugins/ImportImagePlugin/src/org/openstreetmap/josm/plugins/ImportImagePlugin/ImportImagePlugin.java

    r23301 r23305  
    1 package org.openstreetmap.josm.plugins.ImageImportPlugin;
     1package org.openstreetmap.josm.plugins.ImportImagePlugin;
    22
    33import java.io.BufferedInputStream;
     
    3030 *
    3131 */
    32 public class ImageImportPlugin extends Plugin{
     32public class ImportImagePlugin extends Plugin{
    3333   
    3434    private static Logger logger;
     
    4444   
    4545    // path constants
    46     static final String PLUGIN_DIR = Main.pref.getPluginsDirectory().getAbsolutePath() + "/ImageImportPlugin/";
    47     static final String PLUGINPROPERTIES_PATH = Main.pref.getPluginsDirectory().getAbsolutePath() + "/ImageImportPlugin/pluginProperties.properties";
    48     static final String PLUGINLIBRARIES_DIR = Main.pref.getPluginsDirectory().getAbsolutePath() + "/ImageImportPlugin/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/";
    4949    static final String PLUGINPROPERTIES_FILENAME = "pluginProperties.properties";
    50     static final String LOGGING_PROPERTIES_FILEPATH = Main.pref.getPluginsDirectory().getAbsolutePath() + "/ImageImportPlugin/log4j.properties/";
     50    static final String LOGGING_PROPERTIES_FILEPATH = Main.pref.getPluginsDirectory().getAbsolutePath() + "/ImportImagePlugin/log4j.properties/";
    5151   
    5252   
     
    6161     * @param info
    6262     */
    63     public ImageImportPlugin(PluginInformation info){
     63    public ImportImagePlugin(PluginInformation info){
    6464        super(info);
    6565       
     
    238238            // Set file for logging here:
    239239            props.setProperty("log4j.appender.MyRoFiAppender.file",
    240                     (Main.pref.getPluginsDirectory().getAbsolutePath() + "/ImageImportPlugin/" + "log.log"));
     240                    (Main.pref.getPluginsDirectory().getAbsolutePath() + "/ImportImagePlugin/" + "log.log"));
    241241           
    242242            PropertyConfigurator.configure(props);
    243243
    244             logger = Logger.getLogger(ImageImportPlugin.class);
     244            logger = Logger.getLogger(ImportImagePlugin.class);
    245245           
    246246            logger.info("Logger successfully initialized.");
     
    264264        // Set file for logging here:
    265265        props.setProperty("log4j.appender.A.file",
    266                 (Main.pref.getPluginsDirectory().getAbsolutePath() + "/ImageImportPlugin/" + "log.log"));
     266                (Main.pref.getPluginsDirectory().getAbsolutePath() + "/ImportImagePlugin/" + "log.log"));
    267267       
    268268        PropertyConfigurator.configure(props);
    269         logger = Logger.getLogger(ImageImportPlugin.class);
     269        logger = Logger.getLogger(ImportImagePlugin.class);
    270270        logger.info("Logger successfully initialized with standard settings.");
    271271       
     
    283283        loader = URLClassLoader.newInstance(
    284284                new URL[] { new File(Main.pref.getPluginsDirectory().getAbsolutePath() + "/ImportImagePlugin.jar").toURI().toURL()},
    285                 ImageImportPlugin.class.getClassLoader()
     285                ImportImagePlugin.class.getClassLoader()
    286286                );
    287287       
  • applications/editors/josm/plugins/ImportImagePlugin/src/org/openstreetmap/josm/plugins/ImportImagePlugin/LayerPropertiesDialog.java

    r23187 r23305  
    1 package org.openstreetmap.josm.plugins.ImageImportPlugin;
     1package org.openstreetmap.josm.plugins.ImportImagePlugin;
    22import java.awt.Cursor;
    33import java.awt.Dimension;
     
    527527                                    PluginOperations.defaultSourceCRSDescription = selection;
    528528                                   
    529                                     ImageImportPlugin.pluginProps.setProperty("default_crs_eastingfirst", "" + eastingFirstCheckBox.isSelected());
    530                                     ImageImportPlugin.pluginProps.setProperty("default_crs_srid", code);
    531                                     FileWriter fileWriter = new FileWriter(new File(ImageImportPlugin.PLUGINPROPERTIES_PATH));
    532                                     ImageImportPlugin.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);
    533533                                    fileWriter.close();
    534534                                   
  • applications/editors/josm/plugins/ImportImagePlugin/src/org/openstreetmap/josm/plugins/ImportImagePlugin/LoadImageAction.java

    r23187 r23305  
    1 package org.openstreetmap.josm.plugins.ImageImportPlugin;
     1package org.openstreetmap.josm.plugins.ImportImagePlugin;
    22import java.awt.event.ActionEvent;
    33import java.io.IOException;
     
    1616import org.openstreetmap.josm.data.coor.LatLon;
    1717import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor;
    18 import org.openstreetmap.josm.plugins.ImageImportPlugin.ImageLayer.LayerCreationCancledException;
     18import org.openstreetmap.josm.plugins.ImportImagePlugin.ImageLayer.LayerCreationCancledException;
    1919
    2020
  • applications/editors/josm/plugins/ImportImagePlugin/src/org/openstreetmap/josm/plugins/ImportImagePlugin/PluginOperations.java

    r23187 r23305  
    1 package org.openstreetmap.josm.plugins.ImageImportPlugin;
     1package org.openstreetmap.josm.plugins.ImportImagePlugin;
    22
    33import java.awt.geom.Rectangle2D;
Note: See TracChangeset for help on using the changeset viewer.