Changeset 32287 in osm for applications/editors/josm/plugins/imagery-xml-bounds/src/org
- Timestamp:
- 2016-06-16T23:05:20+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imagery-xml-bounds/src/org/openstreetmap/josm/plugins/imageryxmlbounds/ImageryXmlBoundsPlugin.java
r30735 r32287 28 28 29 29 /** 30 * Action showing bounds of the selected closed ways in Selection dialog 30 * Action showing bounds of the selected closed ways in Selection dialog 31 31 */ 32 32 private final ShowBoundsAction selectionListAction = new ShowBoundsAction(); 33 33 34 34 /** 35 * Action showing bounds of the selected multipolygons in Properties dialog 35 * Action showing bounds of the selected multipolygons in Properties dialog 36 36 */ 37 37 private final ShowBoundsAction propertiesListAction = new ShowBoundsAction(); 38 38 39 39 /** 40 40 * Action showing bounds of the selected multipolygons in Relations dialog … … 46 46 */ 47 47 private final ShowBoundsSelectionAction selectionAction = new ShowBoundsSelectionAction(); 48 48 49 49 /** 50 50 * Class modifying the Imagery preferences panel 51 51 */ 52 52 private final XmlBoundsPreferenceSetting preferenceSetting = new XmlBoundsPreferenceSetting(); 53 53 54 54 /** 55 55 * Initializes the plugin. … … 59 59 super(info); 60 60 // Allow JOSM to import *.imagery.xml files 61 ExtensionFileFilter. importers.add(0,new XmlBoundsImporter());61 ExtensionFileFilter.addImporterFirst(new XmlBoundsImporter()); 62 62 // Allow JOSM to export *.imagery.xml files 63 ExtensionFileFilter. exporters.add(0,new XmlBoundsExporter());63 ExtensionFileFilter.addExporterFirst(new XmlBoundsExporter()); 64 64 // Initialize the selection action 65 65 DataSet.addSelectionListener(selectionAction); … … 68 68 Main.main.menu.openLocation.addDownloadTaskClass(DownloadXmlBoundsTask.class); 69 69 } 70 70 71 71 @Override 72 72 public PreferenceSetting getPreferenceSetting() { … … 77 77 public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame) { 78 78 if (newFrame != null) { 79 // Initialize dialogs actions only after the main frame is created 79 // Initialize dialogs actions only after the main frame is created 80 80 newFrame.selectionListDialog.getPopupMenuHandler().addSeparator(); 81 81 newFrame.selectionListDialog.getPopupMenuHandler().addAction(selectionListAction);
Note:
See TracChangeset
for help on using the changeset viewer.