openObject
public boolean openObject(TextGridObject object,
int mode,
boolean readonly)
Tries to open the given TextGrid object.
First it is checked if there exists an
openObject extension for the objects
content type. If not the eclipse editor
registry is searched for a hit.
- Parameters:
object
- TextGrid object to open
mode
- selects the method to find an editor to
open the object
1 - via openObject extension
2 - via eclipse editor registry
0 - both
readonly
- if true object is opened as read only,
locking isn't necessary
- Returns:
- true if opened object, else false