Changeset 21225 in osm for applications/editors


Ignore:
Timestamp:
2010-05-11T14:38:06+02:00 (15 years ago)
Author:
upliner
Message:

'Trivial fixes'

Location:
applications/editors/josm/plugins/reverter
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/reverter/.classpath

    r21201 r21225  
    44        <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
    55        <classpathentry combineaccessrules="false" kind="src" path="/JOSM"/>
    6         <classpathentry kind="output" path="bin"/>
     6        <classpathentry kind="output" path="build"/>
    77</classpath>
  • applications/editors/josm/plugins/reverter/build.xml

    r21210 r21225  
    3131
    3232        <!-- 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" />
    3434        <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    3535        <property name="plugin.main.version" value="3000" />
  • applications/editors/josm/plugins/reverter/src/reverter/ChangesetIdQuery.java

    r21201 r21225  
    2828    }
    2929    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);
    3131        contentConstraints = GBC.eol().fill().insets(10,10,10,5);
    3232        setButtonIcons(new String[] {"ok.png", "cancel.png" });
  • applications/editors/josm/plugins/reverter/src/reverter/ObjectsHistoryAction.java

    r21201 r21225  
    2222        setEnabled(false);
    2323    }
    24 //    private ObjectsHistoryDialog dlg = null;
    2524    public void actionPerformed(ActionEvent arg0) {
    26 //        if (dlg.get)
    2725        new ObjectsHistoryDialog().setVisible(true);
    2826    }
  • applications/editors/josm/plugins/reverter/src/reverter/RevertChangesetAction.java

    r21201 r21225  
    2323        super(tr("Revert changeset"),null,tr("Revert changeset"),
    2424                Shortcut.registerShortcut("tool:revert",
    25                         "Tool: Revert changeset",
     25                        tr("Tool: {0}", tr("Revert changeset")),
    2626                        KeyEvent.VK_T, Shortcut.GROUP_EDIT,
    2727                        Shortcut.SHIFT_DEFAULT), 
    2828                true);
    2929    }
    30 //    private ObjectsHistoryDialog dlg = null;
     30   
     31    @Override
     32    protected void updateEnabledState() {
     33        setEnabled(Main.main.getCurrentDataSet() != null);
     34    }
     35   
    3136    public void actionPerformed(ActionEvent arg0) {
    32        
    3337        ChangesetIdQuery dlg = new ChangesetIdQuery();
    3438        dlg.setVisible(true);
    35         System.out.println(tr("reverter: {0}",dlg.getValue()));
    3639        if (dlg.getValue() != 1) return;
    3740        final int changesetId = dlg.ChangesetId();
    3841        if (changesetId == 0) return;
    39         Main.worker.submit(new PleaseWaitRunnable("Reverting...") {
     42        Main.worker.submit(new PleaseWaitRunnable(tr("Reverting...")) {
    4043            @Override
    4144            protected void realRun() {
  • applications/editors/josm/plugins/reverter/src/reverter/ReverterPlugin.java

    r21201 r21225  
    1919        super(info);
    2020        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());       
    2222        MainMenu.add(historyMenu, new RevertChangesetAction());
    2323        UploadAction.registerUploadHook(new ModifiyUploadOrderHook());
Note: See TracChangeset for help on using the changeset viewer.