|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An editor launcher is used to launch external editors on an
IFile
input.
Clients should implement this interface to define a new type of editor
launcher. Each new launcher must be registered as an editor in the
workbench's editor extension point
(named "org.eclipse.ui.exportWizards"
).
For example, the plug-in's XML markup might contain:
<extension point = "org.eclipse.ui.editors"> <editor id="org.eclipse.ui.SwingEditorLauncher" name="Swing Editor" extensions="xml" launcher="org.eclipse.ui.examples.swingeditor.SwingEditorLauncher" icon="icons/xml.gif"> </editor> </extension>
In this example a launcher has been registered for use with xml
files. Once registered, the launcher will appear in the Open With
menu for an xml
file. If the item is invoked the workbench will
create an instance of the launcher class and call open
on it,
passing the input file.
Method Summary | |
void |
open(IFile file)
Launches this external editor to edit the given file. |
Method Detail |
public void open(IFile file)
file
- the file to edit
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |