com.mindoo.remote.api.org.eclipse.swt.program
Interface IRemoteProgram

All Superinterfaces:
IRemoteEclipseWrapper

public interface IRemoteProgram
extends IRemoteEclipseWrapper

Remote API Wrapper for the org.eclipse.swt.program.Program (Online documentation)

Original documentation:
Instances of this class represent programs and their associated file extensions in the operating system.


Method Summary
 boolean execute(java.lang.String fileName)
          Executes the program with the file as the single argument in the operating system.
 java.lang.String getName()
          Returns the receiver's name.
 java.lang.String toStringVal()
          Returns a string containing a concise, human-readable description of the receiver.
 
Methods inherited from interface com.mindoo.remote.api.IRemoteEclipseWrapper
_internalGetId, equalWrappedObjects
 

Method Detail

execute

boolean execute(java.lang.String fileName)
                throws RemoteEclipseAPIException
Executes the program with the file as the single argument in the operating system. It is the responsibility of the programmer to ensure that the file contains valid data for this program.

Parameters:
fileName - the file or program name
Returns:
true if the file is launched, otherwise false
Throws:
RemoteEclipseAPIException

getName

java.lang.String getName()
                         throws RemoteEclipseAPIException
Returns the receiver's name. This is as short and descriptive a name as possible for the program. If the program has no descriptive name, this string may be the executable name, path or empty.

Returns:
the name of the program
Throws:
RemoteEclipseAPIException

toStringVal

java.lang.String toStringVal()
                             throws RemoteEclipseAPIException
Returns a string containing a concise, human-readable description of the receiver.

Returns:
a string representation of the program
Throws:
RemoteEclipseAPIException