|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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)
Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison. |
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 an integer hash code for the receiver. |
static boolean |
launch(String fileName)
Launches the executable associated with the file in the operating system. |
String |
toString()
Returns a string containing a concise, human-readable description of the receiver. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
public static Program findProgram(String extension)
Display
must already exist to guarantee that
this method returns an appropriate result.
extension
- the program extension
null
IllegalArgumentException
- public static String[] getExtensions()
Display
must already exist to guarantee
that this method returns an appropriate result.
public static Program[] getPrograms()
Display
must already exist to guarantee
that this method returns an appropriate result.
public static boolean launch(String fileName)
Display
must already exist to guarantee that this method returns
an appropriate result.
fileName
- the file or program name
true
if the file is launched, otherwise false
IllegalArgumentException
- public boolean execute(String fileName)
fileName
- the file or program name
true
if the file is launched, otherwise false
IllegalArgumentException
- public ImageData getImageData()
public String getName()
public boolean equals(Object other)
other
- the object to compare with this object
true
if the object is the same as this object and false
otherwisehashCode()
public int hashCode()
true
when passed to
equals
must return the same value for this
method.
equals(Object)
public String toString()
|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.