working with content in IWorkbenchWindowActionDelegate [message #57712] |
Tue, 26 April 2005 11:02 |
Eclipse User |
|
|
|
Originally posted by: PrinceGecko.lycos.de
Hi,
I´m building an Eclipse Plugin and want to add an action to a menu where
I can work with the content (graphical, GEF) of my document.
I started with the Hello-World example and want to bring up a window
with the name of the selected element (editpart) of my content window.
Is there a sample where I might find how to access the content?
I tried
MyPlugin.getDefault().getWorkbench().getActiveWorkbenchWindo w().getActivePage().getActiveEditor().getEditorInput().getNa me();
but there I won´t get the object of the underlying model, but only the
filename, where the object is stored.
Thanks for any help in advance.
Flo
|
|
|
Powered by
FUDForum. Page generated in 0.07065 seconds