| [news.eclipse.platform.rcp] Re: Binding Action and View |
Great, that works! Thanks a lot
M.
Paul Webster wrote:
If you use an action set to contribute an IWorkbencWindowActionDelegate, you can use the window passed in your init(*) to find your view:
IViewReference ref
= window.getActivePage().findViewReference("my.view.id");
if (ref==null) {
// no view
return;
}
IViewPart view = ref.getView(false); // or true if you want it restored
if (view==null) {
// no view to work with
return;
}
Now view is your IViewPart. You can cast it (after an instanceof check, of course) and go.
PW