Changeset 34683 in osm for applications/editors
- Timestamp:
- 2018-10-20T15:49:44+02:00 (6 years ago)
- Location:
- applications/editors/josm/plugins/photoadjust/src/org/openstreetmap/josm/plugins/photoadjust
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/photoadjust/src/org/openstreetmap/josm/plugins/photoadjust/PhotoAdjustPlugin.java
r33757 r34683 23 23 */ 24 24 public class PhotoAdjustPlugin extends Plugin implements ActiveLayerChangeListener { 25 25 26 26 private GeoImageLayer imageLayer; 27 27 private MouseAdapter mouseAdapter; … … 32 32 * Will be invoked by JOSM to bootstrap the plugin. 33 33 * 34 * @param info information about the plugin and its local installation 34 * @param info information about the plugin and its local installation 35 35 */ 36 36 public PhotoAdjustPlugin(PluginInformation info) { 37 37 super(info); 38 38 GeoImageLayer.registerMenuAddition(new UntaggedGeoImageLayerAction()); 39 39 PhotoPropertyEditor.init(); … … 72 72 73 73 /** 74 * Called when the JOSM map frame is created or destroyed. 74 * Called when the JOSM map frame is created or destroyed. 75 75 */ 76 76 @Override -
applications/editors/josm/plugins/photoadjust/src/org/openstreetmap/josm/plugins/photoadjust/PhotoPropertyEditor.java
r34611 r34683 41 41 */ 42 42 public class PhotoPropertyEditor { 43 44 /** 45 * This class is not intended to be instantiated. Throw an exception if 46 * it is. 47 */ 48 private PhotoPropertyEditor() { 49 throw new IllegalStateException("Utility class"); 50 } 43 51 44 52 /** … … 365 373 * @return {@code true} if the values differ, {@code false} otherwise. 366 374 */ 367 private boolean isDoubleFieldDifferent(JosmTextField txtFld,368 Double value) {375 private static boolean isDoubleFieldDifferent(JosmTextField txtFld, 376 Double value) { 369 377 final Double fieldValue = getDoubleValue(txtFld); 370 378 if (fieldValue == null) { -
applications/editors/josm/plugins/photoadjust/src/org/openstreetmap/josm/plugins/photoadjust/UntaggedGeoImageLayerAction.java
r34612 r34683 35 35 * @return the layer this menu entry belongs to 36 36 */ 37 private GeoImageLayer getSelectedLayer() {37 private static GeoImageLayer getSelectedLayer() { 38 38 return (GeoImageLayer)LayerListDialog.getInstance().getModel() 39 39 .getSelectedLayers().get(0); … … 42 42 /** This is called after the menu entry was selected. */ 43 43 @Override 44 public void actionPerformed(ActionEvent arg0) {44 public void actionPerformed(ActionEvent evt) { 45 45 GeoImageLayer layer = getSelectedLayer(); 46 46 if (layer != null) { … … 69 69 * @return {@code true} if there is any image without coordinates 70 70 */ 71 private boolean enabled(GeoImageLayer layer) {71 private static boolean enabled(GeoImageLayer layer) { 72 72 if (layer != null) { 73 73 for (ImageEntry img: layer.getImages()) {
Note:
See TracChangeset
for help on using the changeset viewer.