Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » How to get a View dynamically
How to get a View dynamically [message #548904] Fri, 23 July 2010 09:03 Go to next message
Artur Kronenberg is currently offline Artur Kronenberg
Messages: 159
Registered: August 2009
Senior Member
Hi,

I would need to get a view.
I know you can get the MPart from the EPartService but I can't figure out how to get to the view object.

-- artur
Re: How to get a View dynamically [message #548918 is a reply to message #548904] Fri, 23 July 2010 09:10 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5296
Registered: July 2009
Senior Member
What do you mean with View-Object. The POJO-Instance behind it? You get
this by calling MPart#getObject() (inherited from MContribution)

Tom

Am 23.07.10 15:03, schrieb Artur Kronenberg:
> Hi,
>
> I would need to get a view.
> I know you can get the MPart from the EPartService but I can't figure
> out how to get to the view object.
>
> -- artur
Re: How to get a View dynamically [message #548954 is a reply to message #548918] Fri, 23 July 2010 10:25 Go to previous messageGo to next message
Artur Kronenberg is currently offline Artur Kronenberg
Messages: 159
Registered: August 2009
Senior Member
Yes that was what I ment, the POJO that is implementing the view.

When is this object available? If I inject the EPartService into a method and try to get the Object, I get the MPart but the Object is null.

EDIT:
Never mind, I had another problem. Getting the view works just fine. Thanks!

[Updated on: Fri, 23 July 2010 10:32]

Report message to a moderator

Re: How to get a View dynamically [message #548965 is a reply to message #548954] Fri, 23 July 2010 10:38 Go to previous message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5296
Registered: July 2009
Senior Member
At the moment the MPart is created, at least that's what I'd expect.

Tom

Am 23.07.10 16:25, schrieb Artur Kronenberg:
> Yes that was what I ment, the POJO that is implementing the view.
>
> When is this object available? If I inject the EPartService into a
> method and try to get the Object, I get the MPart but the Object is null.
Re: How to get a View dynamically [message #579340 is a reply to message #548918] Fri, 23 July 2010 10:25 Go to previous message
Artur Kronenberg is currently offline Artur Kronenberg
Messages: 159
Registered: August 2009
Senior Member
Yes that was what I ment, the POJO that is implementing the view.

When is this object available? If I inject the EPartService into a method and try to get the Object, I get the MPart but the Object is null.
Re: How to get a View dynamically [message #579361 is a reply to message #548954] Fri, 23 July 2010 10:38 Go to previous message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5296
Registered: July 2009
Senior Member
At the moment the MPart is created, at least that's what I'd expect.

Tom

Am 23.07.10 16:25, schrieb Artur Kronenberg:
> Yes that was what I ment, the POJO that is implementing the view.
>
> When is this object available? If I inject the EPartService into a
> method and try to get the Object, I get the MPart but the Object is null.
Previous Topic:How to get a View dynamically
Next Topic:Enable/Disable ToolItem
Goto Forum:
  


Current Time: Tue Sep 02 12:53:00 EDT 2014

Powered by FUDForum. Page generated in 0.02402 seconds