org.scijava.platform
Class DefaultPlatform

java.lang.Object
  extended by org.scijava.platform.AbstractPlatform
      extended by org.scijava.platform.DefaultPlatform
All Implemented Interfaces:
Disposable, Platform, SciJavaPlugin, SingletonPlugin

public class DefaultPlatform
extends AbstractPlatform

A platform implementation for default handling of platform issues.

Author:
Curtis Rueden, Johannes Schindelin

Constructor Summary
DefaultPlatform()
           
 
Method Summary
 void open(URL url)
          Falls back to calling known browsers.
 
Methods inherited from class org.scijava.platform.AbstractPlatform
configure, dispose, getPlatformService, isTarget, javaVendor, javaVersion, osArch, osName, osVersion, registerAppMenus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPlatform

public DefaultPlatform()
Method Detail

open

public void open(URL url)
          throws IOException
Falls back to calling known browsers.

Based on BareBonesBrowserLaunch.

The utility 'xdg-open' launches the URL in the user's preferred browser, therefore we try to use it first, before trying to discover other browsers.

Throws:
IOException


Copyright © 2009–2014 SciJava. All rights reserved.