Changeset 7624 in josm for trunk/src/org


Ignore:
Timestamp:
2014-10-16T20:59:29+02:00 (10 years ago)
Author:
Don-vip
Message:

see #10640 - add "Help/Report bug" menu entry to avoid annoying empty tickets

Location:
trunk/src/org/openstreetmap/josm
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/ShowStatusReportAction.java

    r7420 r7624  
    2929import org.openstreetmap.josm.gui.widgets.JosmTextArea;
    3030import org.openstreetmap.josm.plugins.PluginHandler;
    31 import org.openstreetmap.josm.tools.BugReportExceptionHandler;
    32 import org.openstreetmap.josm.tools.OpenBrowser;
    3331import org.openstreetmap.josm.tools.PlatformHookUnixoid;
    3432import org.openstreetmap.josm.tools.Shortcut;
     
    202200        switch (ed.showDialog().getValue()) {
    203201            case 1: Utils.copyToClipboard(text.toString()); break;
    204             case 2: OpenBrowser.displayUrl(BugReportExceptionHandler.getBugReportUrl(
    205                         Utils.strip(reportHeader)).toExternalForm()) ; break;
     202            case 2: ReportBugAction.reportBug(reportHeader) ; break;
    206203        }
    207204    }
  • trunk/src/org/openstreetmap/josm/gui/MainMenu.java

    r7463 r7624  
    7373import org.openstreetmap.josm.actions.PurgeAction;
    7474import org.openstreetmap.josm.actions.RedoAction;
     75import org.openstreetmap.josm.actions.ReportBugAction;
    7576import org.openstreetmap.josm.actions.RestartAction;
    7677import org.openstreetmap.josm.actions.ReverseWayAction;
     
    296297    /** Help / Show Status Report */
    297298    public final ShowStatusReportAction statusreport = new ShowStatusReportAction();
     299    /** Help / Report bug */
     300    public final ReportBugAction reportbug = new ReportBugAction();
    298301
    299302    /**
     
    763766
    764767        helpMenu.add(statusreport);
     768        helpMenu.add(reportbug);
     769        helpMenu.addSeparator();
    765770
    766771        current = helpMenu.add(help); // FIXME why is help not a JosmAction?
Note: See TracChangeset for help on using the changeset viewer.