Ignore:
Timestamp:
2010-11-17T12:28:52+01:00 (14 years ago)
Author:
ocroquette
Message:

PicLayer: name of the layer is now the name of the loaded file by default

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/PicLayerFromFile.java

    r23190 r24291  
    4141        // Generate tooltip text
    4242        m_tooltiptext = m_file.getAbsolutePath();
     43       
     44        // Set the name of the layer as the base name of the file
     45        setName(m_file.getName());
     46        System.out.println( "name="+m_file.getName() );
     47    }
     48
     49    protected String getFilePath() {
     50        return m_file.getAbsolutePath();
     51    }
     52
     53    public File getDefaultCalPath() {
     54        File calFile = new File(m_file + CalibrationFileFilter.EXTENSION);
     55        return calFile;
    4356    }
    4457
Note: See TracChangeset for help on using the changeset viewer.