Skip to main content


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 13:03 Go to next message
Artur Kronenberg is currently offline Artur KronenbergFriend
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 13:10 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
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 14:25 Go to previous messageGo to next message
Artur Kronenberg is currently offline Artur KronenbergFriend
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 14: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 14:38 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
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 14:25 Go to previous message
Artur Kronenberg is currently offline Artur KronenbergFriend
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 14:38 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
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: Thu Apr 25 13:47:05 GMT 2024

Powered by FUDForum. Page generated in 0.03070 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top