[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] working with content in IWorkbenchWindowActionDelegate

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().getActiveWorkbenchWindow().getActivePage().getActiveEditor().getEditorInput().getName();
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