How to fill Part with Data?https://www.eclipse.org/forums/index.php/mv/msg/414877/957723/#msg_957723
My goal is: With a doubleclick in a selected Item in a Table (Example: a name of a person in a list), a new Part should open (which shows me the details of the person).

What I've done till now: Use SelectionService when I hit doubleclick. Then using the Command- and HandlerService to open my Handler. In this handler I use a PartDescriptor to make a new Part, use the SelectionService to get the Selection of the part where i selected it, and finally I use the PartService to show the part.

So far so good (or do you think there a better way to do this?).

My Problem: How can I get the data of the selected item to fill the part-fields (name, address etc)? Should I use a InputPart to set the Uri (part.setInputUri)? What is that Uri and where should it point?

All-in-All: How can relize the functionality of editor and editorinput in 3.x?

Thank you!]]>David Reichl2012-10-25T12:48:02-00:00Re: How to fill Part with Data?https://www.eclipse.org/forums/index.php/mv/msg/414877/958945/#msg_958945
Brian de Alwis2012-10-26T10:39:08-00:00Re: How to fill Part with Data?https://www.eclipse.org/forums/index.php/mv/msg/414877/958956/#msg_958956
Dirk Fauth2012-10-26T10:45:44-00:00Re: How to fill Part with Data?https://www.eclipse.org/forums/index.php/mv/msg/414877/959399/#msg_959399
now I do it like this: use the SelectionsService in the handler to get the Selection and use the part.setObject(inputobject) methode. in the part use "@Active MPart activePart" and then I get the object via "activePart.getObject()"
what do you think about that?

I actually didn't get what do do so I could do it like "@Active SomeObject object".?]]>David Reichl2012-10-26T17:37:50-00:00Re: How to fill Part with Data?https://www.eclipse.org/forums/index.php/mv/msg/414877/959452/#msg_959452
Sorry for pointing into the wrong direction with @Active, I mixed them up by mistake ]]>Dirk Fauth2012-10-26T18:30:33-00:00Re: How to fill Part with Data?https://www.eclipse.org/forums/index.php/mv/msg/414877/959577/#msg_959577
I missed that in the tutorial.

I finally set the hole IStructuredSelection-Object and use a Handler (where i use the @Named (ISer...)@Optionale...) as recommaneded) to open the part. Here I define to open more parts if have selected more Items in my Table. In the Handler I use the same procedure (setSelection...) and in the opened part I Inject the Object via @Named ...