info.aduna.platform.desktop
Class DesktopBase

java.lang.Object
  extended by info.aduna.platform.desktop.DesktopBase
All Implemented Interfaces:
Desktop
Direct Known Subclasses:
PosixDesktop, WindowsDesktop

public abstract class DesktopBase
extends Object
implements Desktop


Constructor Summary
DesktopBase(Platform platform)
           
 
Method Summary
protected  Platform getPlatform()
           
protected  boolean isExecutable(String resource, String[] extensions)
          Utility method for determining whether the specified resource is executable.
 boolean warnsWhenOpeningExecutable()
          Returns false, because most platforms do not issue this warning.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface info.aduna.platform.desktop.Desktop
isExecutable, openResource
 

Constructor Detail

DesktopBase

public DesktopBase(Platform platform)
Method Detail

getPlatform

protected Platform getPlatform()

warnsWhenOpeningExecutable

public boolean warnsWhenOpeningExecutable()
Returns false, because most platforms do not issue this warning.

Specified by:
warnsWhenOpeningExecutable in interface Desktop
See Also:
Desktop.openResource(java.lang.String)

isExecutable

protected boolean isExecutable(String resource,
                               String[] extensions)
Utility method for determining whether the specified resource is executable. It returns true when the resource ends with one of the specified extensions.



Copyright © 1997-2008 Aduna. All Rights Reserved.