You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2018/04/03 13:09:37 UTC

[GitHub] geertjanw closed pull request #471: [NETBEANS-491] Fix issue reporting

geertjanw closed pull request #471: [NETBEANS-491] Fix issue reporting
URL: https://github.com/apache/incubator-netbeans/pull/471
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/ide.branding/o.n.core/src/org/netbeans/core/Bundle_nb.properties b/ide.branding/o.n.core/src/org/netbeans/core/Bundle_nb.properties
index 9fa7d066e..e2e2b1c6c 100644
--- a/ide.branding/o.n.core/src/org/netbeans/core/Bundle_nb.properties
+++ b/ide.branding/o.n.core/src/org/netbeans/core/Bundle_nb.properties
@@ -19,7 +19,7 @@
 # {1} - path to system folder
 NTF_ExceptionalException=\
         A {0} exception has occurred.\n\
-	Please report this at http://www.netbeans.org/community/issues.html,\n\
+	Please report this at https://issues.apache.org/jira/projects/NETBEANS/issues,\n\
 	including a copy of your messages.log file as an attachment.\n\
 	The messages.log file is located in your {1} folder.
 
diff --git a/uihandler/src/org/netbeans/modules/uihandler/UIHandler.java b/uihandler/src/org/netbeans/modules/uihandler/UIHandler.java
index b175b17b8..a6fa78e89 100644
--- a/uihandler/src/org/netbeans/modules/uihandler/UIHandler.java
+++ b/uihandler/src/org/netbeans/modules/uihandler/UIHandler.java
@@ -23,6 +23,8 @@
 import java.awt.event.ActionEvent;
 import java.awt.event.ActionListener;
 import java.beans.PropertyChangeSupport;
+import java.net.MalformedURLException;
+import java.net.URL;
 import java.util.List;
 import java.util.concurrent.Callable;
 import java.util.concurrent.atomic.AtomicBoolean;
@@ -37,6 +39,7 @@
 import org.openide.DialogDescriptor;
 import org.openide.DialogDisplayer;
 import org.openide.NotifyDescriptor;
+import org.openide.awt.HtmlBrowser;
 import org.openide.awt.Mnemonics;
 import org.openide.util.NbBundle;
 import org.openide.util.RequestProcessor;
@@ -62,6 +65,7 @@
     private final SlownessReporter reporter;
 
     private final AtomicBoolean someRecordsScheduled = new AtomicBoolean(false);
+    private static final String ISSUE_REPORTER_LINK = "https://issues.apache.org/jira/projects/NETBEANS"; //NOI18N
 
     private static boolean exceptionHandler;
     public static void registerExceptionHandler(boolean enable) {
@@ -245,8 +249,12 @@ public void actionPerformed(ActionEvent ev) {
         Window w = SwingUtilities.windowForComponent(c);
         if (w != null) {
             w.dispose();
-        } 
-        Installer.RP.post(this);
+        }
+        try {
+            HtmlBrowser.URLDisplayer.getDefault().showURL(new URL(ISSUE_REPORTER_LINK));
+        } catch (MalformedURLException ex) {
+            Installer.LOG.log(Level.FINE, null, ex);
+        }
     }
 
     private boolean shouldReportScanCancel() {


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists