|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.swt.program.Program
Instances of this class represent programs and their assoicated file extensions in the operating system.
Method Summary | |
boolean |
equals(Object other)
Returns true if the receiver and the argument represent the same program. |
boolean |
execute(String fileName)
Executes the program with the file as the single argument in the operating system. |
static Program |
findProgram(String extension)
Finds the program that is associated with an extension. |
static String[] |
getExtensions()
Answer all program extensions in the operating system. |
ImageData |
getImageData()
Returns the receiver's image data. |
String |
getName()
Returns the receiver's name. |
static Program[] |
getPrograms()
Answers all available programs in the operating system. |
int |
hashCode()
Returns a hash code suitable for this object. |
static boolean |
launch(String fileName)
Launches the executable associated with the file in the operating system. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
public static Program findProgram(String extension)
extension
- the program extension
SWTError
- public static String[] getExtensions()
public static Program[] getPrograms()
public static boolean launch(String fileName)
fileName
- the file or program name
true
if the file is launched, otherwise false
SWTError
- public boolean execute(String fileName)
fileName
- the file or program name
true
if the file is launched, otherwise false
SWTError
- public ImageData getImageData()
public String getName()
public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |