how to get an editor to talk to a view [message #101589] |
Tue, 13 September 2005 14:49 |
Eclipse User |
|
|
|
Originally posted by: adamshaw.uchicago.edu
Greetings --
I'm adrift in an ocean of API.
I would like to know how to get an editor to be able to send commands to a
view.
Let me present the following boiled-down version of my situation. Picture
a plugin with one editor and one view open.
Assume I've got a DoubleClickStrategy as part of my editor that selects
the nearest token on double click; assume further that I catch that piece
of text in a String called Token.
What I would like to do with Token is add it to a view, using something
like viewer.add(Token) (that is, if I had a "viewer" somewhere in the
scope of my double click strategy code that meant the appropriate thing).
How do I do it?
Thanks if advance for any help on this subject.
- ams
|
|
|
Powered by
FUDForum. Page generated in 0.09670 seconds