Changeset 35868 in osm for applications/editors/josm/plugins/reverter
- Timestamp:
- 2021-11-28T08:59:42+01:00 (3 years ago)
- Location:
- applications/editors/josm/plugins/reverter/src/reverter
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reverter/src/reverter/RevertChangesetCommand.java
r35409 r35868 23 23 public RevertChangesetCommand(String name, Collection<Command> sequenz) { 24 24 super(name, sequenz); 25 ReverterPlugin.reverterUsed = true;25 ReverterPlugin.reverterUsed.set(true); 26 26 setSequenceComplete(true); 27 27 } -
applications/editors/josm/plugins/reverter/src/reverter/ReverterPlugin.java
r34974 r35868 1 1 // License: GPL. For details, see LICENSE file. 2 2 package reverter; 3 4 import java.util.concurrent.atomic.AtomicBoolean; 3 5 4 6 import javax.swing.JMenu; … … 15 17 */ 16 18 public class ReverterPlugin extends Plugin { 17 static boolean reverterUsed;19 static AtomicBoolean reverterUsed = new AtomicBoolean(); 18 20 19 21 /** -
applications/editors/josm/plugins/reverter/src/reverter/ReverterUploadHook.java
r35452 r35868 27 27 @Override 28 28 public boolean checkUpload(APIDataSet apiDataSet) { 29 if (ReverterPlugin.reverterUsed ) {29 if (ReverterPlugin.reverterUsed.get()) { 30 30 for (Command cmd : UndoRedoHandler.getInstance().getUndoCommands()) { 31 31 if (isReverterCmd(cmd)) {
Note:
See TracChangeset
for help on using the changeset viewer.