OOoRunner test harness

util
Class SysUtils

java.lang.Object
  |
  +--util.SysUtils

public class SysUtils
extends Object


Constructor Summary
SysUtils()
           
 
Method Summary
static XComponent getActiveComponent(XMultiServiceFactory msf)
           
static XFrame getActiveFrame(XMultiServiceFactory msf)
           
static String getJavaPath()
           
static String getSysClipboardText(XMultiServiceFactory msf)
          Tries to obtain text data from cliboard if such one exists.
static Object[] traverse(String afileDirectory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SysUtils

public SysUtils()
Method Detail

getJavaPath

public static String getJavaPath()

traverse

public static Object[] traverse(String afileDirectory)

getActiveComponent

public static XComponent getActiveComponent(XMultiServiceFactory msf)

getActiveFrame

public static XFrame getActiveFrame(XMultiServiceFactory msf)

getSysClipboardText

public static String getSysClipboardText(XMultiServiceFactory msf)
                                  throws Exception
Tries to obtain text data from cliboard if such one exists. The method iterates through all 'text/plain' supported data flavors and returns the first non-null String value.
Parameters:
msf - MultiserviceFactory
Returns:
First found string clipboard contents or null if no text contents were found.
Throws:
Exception - if system clipboard is not accessible.

OOoRunner test harness