Package org.scijava.platform
Class DefaultPlatform
- java.lang.Object
-
- org.scijava.platform.AbstractPlatform
-
- 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
Constructors Constructor Description DefaultPlatform()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidopen(URL url)Falls back to calling known browsers.-
Methods inherited from class org.scijava.platform.AbstractPlatform
configure, getPlatformService
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.scijava.Disposable
dispose
-
Methods inherited from interface org.scijava.platform.Platform
isTarget, javaVendor, javaVersion, osArch, osName, osVersion, registerAppMenus
-
-
-
-
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
-
-