Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » view content
view content [message #435635] Fri, 19 August 2005 16:19 Go to next message
Eclipse UserFriend
Originally posted by: tw.eety.XXX.fr

hi,

is there a way to get a view's content (the SWT controls it has)?

thanks
Re: view content [message #435637 is a reply to message #435635] Fri, 19 August 2005 16:53 Go to previous messageGo to next message
Ricky is currently offline RickyFriend
Messages: 204
Registered: July 2009
Senior Member
> is there a way to get a view's content (the SWT controls it has)?

Do you have a specific view in mind? If so tell us which one as there is
no generic way AFAIK. See IViewPart for what you may do.

Ricky
Re: view content [message #435650 is a reply to message #435635] Sat, 20 August 2005 21:14 Go to previous messageGo to next message
Marc Heimann is currently offline Marc HeimannFriend
Messages: 18
Registered: July 2009
Junior Member
A view (being a Composite) has a getChildren method that returns an
array of Controls.

Cheers
Marc

tw wrote:

> hi,
>
> is there a way to get a view's content (the SWT controls it has)?
>
> thanks
>
Re: view content [message #435705 is a reply to message #435650] Mon, 22 August 2005 09:54 Go to previous messageGo to next message
Ricky is currently offline RickyFriend
Messages: 204
Registered: July 2009
Senior Member
> A view (being a Composite) has a getChildren method that returns an
> array of Controls.

Maybe we all talk about different things here. When creating the example
view in a newly plugin project, the type SampleView is a descendent of
WorkbenchPart and not of Composite. The only SWT related thing is its
createPartControl method which gets a composite to put its children into.
But there is neither an api nor a hack to get this parent from the outside.

Am I missing something or do we speak about different things here?

Ricky
Re: view content [message #435756 is a reply to message #435705] Tue, 23 August 2005 07:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tw.xxxxx.xxx.com

no,
we talk about the same thing
Re: view content [message #435766 is a reply to message #435635] Tue, 23 August 2005 12:15 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

tw wrote:
> hi,
>
> is there a way to get a view's content (the SWT controls it has)?

When you create a view, copy the parent from
IViewPart#createPartControl(...) into a member variable.

If you mean is there a way to get the SWT controls for a view you didn't
write (like the Problems View), I'd guess no.

Later,
PW


Previous Topic:How to achieve specific classloading when deserializing?
Next Topic:intercept switch editor event
Goto Forum:
  


Current Time: Thu Dec 26 16:30:12 GMT 2024

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

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

Back to the top