[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] How can I insert a string into an editor with an external menuitem?
|
- From: lge@xxxxxxxxxx (Leen Geeraerts)
- Date: 1 Aug 2001 12:47:36 GMT
- Newsgroups: eclipse.tools
- Organization: http://www.eclipse.org
- User-agent: NewsPortal 0.23
Hi!
I am in the process of writing a plug-in to enter a simple string into the
active editor.
This action should take place if I click on a certain menu-item from a
pulldownmenu in my toolbar.
I can perform simple actions according to each menu, but now I want to be
able to insert a specific string (different for each menu-item) into the
active editor.
I guess I need to work with IDocument to be able to do this, but i cannot
find a way to reach the active IDocument from the workbench.
Thanks for looking into this!
Kind regards,
Leen