public void actionPerformed(ActionEvent e) { try { URLDisplayer.getDefault().showURL( new URL(NbBundle.getMessage(DashboardImpl.class, "URL_KenaiOverview"))); //NOI18N } catch( MalformedURLException ex ) { //shouldn't happen Exceptions.printStackTrace(ex); } } };
@Override public void actionPerformed(ActionEvent e) { try { HtmlBrowser.URLDisplayer.getDefault().showURL(new URL("http://maven.apache.org/plugins/maven-checkstyle-plugin")); } catch (MalformedURLException ex) { Exceptions.printStackTrace(ex); } }
private void jLabel2MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel2MousePressed try { HtmlBrowser.URLDisplayer.getDefault().showURL(new URL("http://www.grails.org")); // NOI18N } catch (MalformedURLException murle) { Exceptions.printStackTrace(murle); } }//GEN-LAST:event_jLabel2MousePressed
private void installTscLabelMousePressed(MouseEvent evt) {//GEN-FIRST:event_installTscLabelMousePressed try { URL url = new URL("https://www.npmjs.com/package/typescript"); // NOI18N HtmlBrowser.URLDisplayer.getDefault().showURL(url); } catch (MalformedURLException ex) { LOGGER.log(Level.SEVERE, null, ex); } }//GEN-LAST:event_installTscLabelMousePressed
private void installSassLabelMousePressed(MouseEvent evt) {//GEN-FIRST:event_installSassLabelMousePressed try { URL url = new URL("http://sass-lang.com/"); // NOI18N HtmlBrowser.URLDisplayer.getDefault().showURL(url); } catch (MalformedURLException ex) { LOGGER.log(Level.SEVERE, null, ex); } }//GEN-LAST:event_installSassLabelMousePressed
private void issueLinkLabelMousePressed(MouseEvent evt) {//GEN-FIRST:event_issueLinkLabelMousePressed try { URL url = new URL("http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7077696"); // NOI18N HtmlBrowser.URLDisplayer.getDefault().showURL(url); } catch (MalformedURLException ex) { Exceptions.printStackTrace(ex); } }//GEN-LAST:event_issueLinkLabelMousePressed
private void jLabel2MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel2MousePressed try { HtmlBrowser.URLDisplayer.getDefault().showURL(new URL("http://groovy.codehaus.org")); // NOI18N } catch (MalformedURLException murle) { Exceptions.printStackTrace(murle); } }//GEN-LAST:event_jLabel2MousePressed
public void outputLineAction(OutputEvent arg0) { File javadoc = FileUtil.normalizeFile(new File(root)); FileObject fo = FileUtilities.toFileObject(javadoc); if (fo != null) { FileObject index = fo.getFileObject("index.html"); //NOI18N if (index != null) { URL link = URLMapper.findURL(index, URLMapper.EXTERNAL); HtmlBrowser.URLDisplayer.getDefault().showURL(link); } } }
public void actionPerformed(ActionEvent event) { IssueManagement im= ActionsUtil.readMavenProject(artifact).getIssueManagement(); try { URLDisplayer.getDefault().showURL(new URL(im.getUrl())); } catch (MalformedURLException ex) { Exceptions.printStackTrace(ex); } }
public void hyperlinkUpdate(HyperlinkEvent e) { if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED){ HtmlBrowser.URLDisplayer.getDefault().showURL(e.getURL()); } } });
@Messages("ERR_WrongURL=Not a proper URL, cannot open in browser: {0}") @Override public void actionPerformed(ActionEvent e) { try { URL u = new URL(url); HtmlBrowser.URLDisplayer.getDefault().showURL(u); } catch (MalformedURLException ex) { StatusDisplayer.getDefault().setStatusText(ERR_WrongURL(url)); } }
public void outputLineAction(OutputEvent arg0) { File site = FileUtil.normalizeFile(root); FileObject fo = FileUtilities.toFileObject(site); if (fo != null) { FileObject index = fo.getFileObject("index.html"); //NOI18N if (index != null) { URL link = URLMapper.findURL(index, URLMapper.EXTERNAL); HtmlBrowser.URLDisplayer.getDefault().showURL(link); } } }
public void actionPerformed(ActionEvent event) { MavenProject mp = ActionsUtil.readMavenProject(artifact); try { URLDisplayer.getDefault().showURL(new URL(mp.getUrl())); } catch (MalformedURLException ex) { Exceptions.printStackTrace(ex); } } }
private void installLessLabelMousePressed(MouseEvent evt) {//GEN-FIRST:event_installLessLabelMousePressed try { URL url = new URL("http://lesscss.org/"); // NOI18N HtmlBrowser.URLDisplayer.getDefault().showURL(url); } catch (MalformedURLException ex) { LOGGER.log(Level.SEVERE, null, ex); } }//GEN-LAST:event_installLessLabelMousePressed
private void openInExternalBrowser(){ if (currentDocumentation != null) { URL url = currentDocumentation.getURL(); if (url != null) { HtmlBrowser.URLDisplayer.getDefault().showURL(url); } } }
private void showUrl() { if (url != null) { org.openide.awt.StatusDisplayer.getDefault().setStatusText( NbBundle.getBundle(HTMLViewAction.class).getString("CTL_OpeningBrowser")); HtmlBrowser.URLDisplayer.getDefault().showURL(url); } }
public void hyperlinkUpdate(HyperlinkEvent e) { if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED){ HtmlBrowser.URLDisplayer.getDefault().showURL(e.getURL()); } } });
protected void performAction(Node[] nodes) { for (int i = 0; i < nodes.length; i++) { OpenURLActionCookie oCookie = (OpenURLActionCookie) nodes[i].getCookie(OpenURLActionCookie.class); if (oCookie != null) { try { URLDisplayer.getDefault().showURL(new URL(oCookie.getWebURL())); } catch (MalformedURLException e) { Logger.getLogger("global").log(Level.INFO, null, e); } } } }
public static final void showURL(URL url, boolean debug, GrailsProject project) { if (!debug) { if (GrailsProjectConfig.forProject(project).getDisplayBrowser()) { HtmlBrowser.URLDisplayer.getDefault().showURL(url); } } else { // there is no other debugger than JavaScript is there? HtmlBrowser.URLDisplayer.getDefault().showURL(url); } }
/** * Attempts to display given URL in preferred external browser. * The default implementation just delegates to showURL(URL). * The URL may be still rendered using an internal browser implementation * if no external browser is available. * * @param u the URL to show * @since 7.14 */ public void showURLExternal(URL u) { showURL(u); } }