Package edu.stanford.ejalbert

Examples of edu.stanford.ejalbert.BrowserLauncher


   
    if (!launched)
    {
      try
      {
        new BrowserLauncher().openURLinBrowser(reportURI);
      }
      catch (Exception e)
      {
        System.out.println("Failed to launch a browser: " + e.getMessage());
      }
View Full Code Here


    final ExternalToolSettings instance = ExternalToolSettings.getInstance();
    if (instance.isUseDefaultBrowser())
    {
      try
      {
        new BrowserLauncher().openURLinBrowser(url);
      }
      catch (Exception e)
      {
        UncaughtExceptionsModel.getInstance().addException(e);
      }
View Full Code Here

       
    assert uiForRequests != null && url != null;
   
    if (browserLauncher == null) {
      try {
        browserLauncher = new BrowserLauncher();
      } catch (BrowserLaunchingInitializingException e) {
        uiForRequests.request(new UIRequest_Output(str("errorBrowser")));
      } catch (UnsupportedOperatingSystemException e) {
        uiForRequests.request(
            new UIRequest_Output(str("errorBrowserOS")));
View Full Code Here

  public void hyperlinkUpdate(HyperlinkEvent link) {
    if (link.getEventType() == HyperlinkEvent.EventType.ACTIVATED)
    try {
      System.err.println("Try");
      new BrowserLauncher().openURLinBrowser( link.getURL().toString() );
    } catch (BrowserLaunchingInitializingException e) {
      // TODO failure
      System.err.println("Failure");
    } catch (UnsupportedOperatingSystemException e) {
      // TODO failure
View Full Code Here

          public void actionPerformed( ActionEvent e ) {           
            if((!url.startsWith("http://")) && (!url.startsWith("ftp://"))){
              url = "http://" + url;
            }
            try {
        BrowserLauncher launcher = new BrowserLauncher();
        launcher.setNewWindowPolicy(true);
        launcher.openURLinBrowser(url);       
      } catch (BrowserLaunchingInitializingException e1) {       
        e1.printStackTrace();
      } catch (UnsupportedOperatingSystemException e1) {       
        e1.printStackTrace();
      }
View Full Code Here

    final ExternalToolSettings instance = ExternalToolSettings.getInstance();
    if (instance.isUseDefaultBrowser())
    {
      try
      {
        new BrowserLauncher().openURLinBrowser(url);
      }
      catch (Exception e)
      {
        UncaughtExceptionsModel.getInstance().addException(e);
      }
View Full Code Here

    }//GEN-LAST:event_prefuseLabelMouseEntered

    private void leceneLabelMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_leceneLabelMouseClicked
        try{
            //==== Create the browser launcher, open the URL in the user's browser
            BrowserLauncher launch = new BrowserLauncher();
            launch.openURLinBrowser("http://lucene.apache.org");      
        }
        catch (Exception e){
            System.out.println(e);
        }
    }//GEN-LAST:event_leceneLabelMouseClicked
View Full Code Here

    }//GEN-LAST:event_leceneLabelMouseClicked

    private void browserLaucherLabelMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_browserLaucherLabelMouseClicked
        try{
            //==== Create the browser launcher, open the URL in the user's browser
            BrowserLauncher launch = new BrowserLauncher();
            launch.openURLinBrowser("http://browserlaunch2.sourceforge.net/");      
        }
        catch (Exception e){
            System.out.println(e);
        }
    }//GEN-LAST:event_browserLaucherLabelMouseClicked
View Full Code Here

    }//GEN-LAST:event_browserLaucherLabelMouseClicked

    private void prefuseLabelMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_prefuseLabelMouseClicked
        try{
            //==== Create the browser launcher, open the URL in the user's browser
            BrowserLauncher launch = new BrowserLauncher();
            launch.openURLinBrowser("http://www.prefuse.org");      
        }
        catch (Exception e){
            System.out.println(e);
        }
    }//GEN-LAST:event_prefuseLabelMouseClicked
View Full Code Here

        try
        {
            //==== Get the Abstract URL
            String abstractURL = (v.getSourceTuple(item)).getString("abstractURL");
            //==== Create the browser launcher, open the URL in the user's browser
            BrowserLauncher launch = new BrowserLauncher();
            launch.openURLinBrowser(abstractURL);      
        }
        catch (Exception e){
            System.out.println(e);
        }
    }//GEN-LAST:event_readAbstractButtonMouseClicked
View Full Code Here

TOP

Related Classes of edu.stanford.ejalbert.BrowserLauncher

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.