i need to pass an object to a view.
I basically have a view with a list of objects, i also have a command "Open second View" to open another view. What i now want is to make it so that the selected object in the list view, is passed to the second view if i exectue the "Open second View" command. I'm able to get the selected object from the ListView in the command handler via
ISelection selection = view.getSite().getSelectionProvider().getSelection();
but i don't know how to pass the object to the second view via a constructor, cause of the way the view is constructed:
So how can i pass the object the moment the second View is constructed (aka in the constructor) ?