Skip to main content



      Home
Home » Newcomers » Newcomers » how to get an editor to talk to a view
how to get an editor to talk to a view [message #101589] Tue, 13 September 2005 14:49
Eclipse UserFriend
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
Previous Topic:Could not get Eclipse 3.1 SDK Examples .
Next Topic:Target VM does not support hot code replace
Goto Forum:
  


Current Time: Sun May 11 22:25:05 EDT 2025

Powered by FUDForum. Page generated in 0.09670 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top