Changeset 21225 in osm for applications/editors
- Timestamp:
- 2010-05-11T14:38:06+02:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/reverter
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reverter/.classpath
r21201 r21225 4 4 <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> 5 5 <classpathentry combineaccessrules="false" kind="src" path="/JOSM"/> 6 <classpathentry kind="output" path="b in"/>6 <classpathentry kind="output" path="build"/> 7 7 </classpath> -
applications/editors/josm/plugins/reverter/build.xml
r21210 r21225 31 31 32 32 <!-- enter the SVN commit message --> 33 <property name="commit.message" value=" Fix #5003 ignores any changes that come after the change set that is to be reverted" />33 <property name="commit.message" value="Trivial fixes" /> 34 34 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 35 35 <property name="plugin.main.version" value="3000" /> -
applications/editors/josm/plugins/reverter/src/reverter/ChangesetIdQuery.java
r21201 r21225 28 28 } 29 29 public ChangesetIdQuery() { 30 super(Main.parent, tr("Objects history"), new String[] { "Revert","Cancel"}, true);30 super(Main.parent, tr("Objects history"), new String[] {tr("Revert"),tr("Cancel")}, true); 31 31 contentConstraints = GBC.eol().fill().insets(10,10,10,5); 32 32 setButtonIcons(new String[] {"ok.png", "cancel.png" }); -
applications/editors/josm/plugins/reverter/src/reverter/ObjectsHistoryAction.java
r21201 r21225 22 22 setEnabled(false); 23 23 } 24 // private ObjectsHistoryDialog dlg = null;25 24 public void actionPerformed(ActionEvent arg0) { 26 // if (dlg.get)27 25 new ObjectsHistoryDialog().setVisible(true); 28 26 } -
applications/editors/josm/plugins/reverter/src/reverter/RevertChangesetAction.java
r21201 r21225 23 23 super(tr("Revert changeset"),null,tr("Revert changeset"), 24 24 Shortcut.registerShortcut("tool:revert", 25 "Tool: Revert changeset",25 tr("Tool: {0}", tr("Revert changeset")), 26 26 KeyEvent.VK_T, Shortcut.GROUP_EDIT, 27 27 Shortcut.SHIFT_DEFAULT), 28 28 true); 29 29 } 30 // private ObjectsHistoryDialog dlg = null; 30 31 @Override 32 protected void updateEnabledState() { 33 setEnabled(Main.main.getCurrentDataSet() != null); 34 } 35 31 36 public void actionPerformed(ActionEvent arg0) { 32 33 37 ChangesetIdQuery dlg = new ChangesetIdQuery(); 34 38 dlg.setVisible(true); 35 System.out.println(tr("reverter: {0}",dlg.getValue()));36 39 if (dlg.getValue() != 1) return; 37 40 final int changesetId = dlg.ChangesetId(); 38 41 if (changesetId == 0) return; 39 Main.worker.submit(new PleaseWaitRunnable( "Reverting...") {42 Main.worker.submit(new PleaseWaitRunnable(tr("Reverting...")) { 40 43 @Override 41 44 protected void realRun() { -
applications/editors/josm/plugins/reverter/src/reverter/ReverterPlugin.java
r21201 r21225 19 19 super(info); 20 20 JMenu historyMenu = Main.main.menu.addMenu(marktr("History"), KeyEvent.VK_R, Main.main.menu.defaultMenuPos,ht("/Plugin/Reverter")); 21 MainMenu.add(historyMenu, new ObjectsHistoryAction());21 //MainMenu.add(historyMenu, new ObjectsHistoryAction()); 22 22 MainMenu.add(historyMenu, new RevertChangesetAction()); 23 23 UploadAction.registerUploadHook(new ModifiyUploadOrderHook());
Note:
See TracChangeset
for help on using the changeset viewer.