Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Show View in Editor Area
Show View in Editor Area [message #488684] Tue, 29 September 2009 17:54 Go to next message
Eclipse UserFriend
Originally posted by: jedlicka.poll.cz

Is it possible to show View (ViewPart) in EditorArea?

My problem:
I have a View where I need to keep fixed size (width). Only possibility
which I have found out is to make Editor Area visible
(layout.setEditorAreaVisible(true)). The problem is I have now all
plugins as ViewPart. Is there any way how to show ViewPart in Editor Area?

Thanks.

Martin
Re: Show View in Editor Area [message #488693 is a reply to message #488684] Tue, 29 September 2009 19:43 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

You can have your view implement ISizeProvider to try and maintain its size, or make your perspective fixed.

But you cannot put your view in an editor area.

PW


Re: Show View in Editor Area [message #488707 is a reply to message #488693] Tue, 29 September 2009 21:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jedlicka.poll.cz

Super! ISizeProvider it works.

Thank you very much!

Martin

Paul Webster napsal(a):
> You can have your view implement ISizeProvider to try and maintain its
> size, or make your perspective fixed.
>
> But you cannot put your view in an editor area.
>
> PW
>
Re: Show View in Editor Area [message #488745 is a reply to message #488693] Wed, 30 September 2009 06:00 Go to previous messageGo to next message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
Paul Webster wrote:
> You can have your view implement ISizeProvider to try and maintain its
> size, or make your perspective fixed.

Unfortunately this interface has the @noimplement annotation which makes
it effectively illegal to implement that interface as a client. Are
there tendencies to change this state or what is the recommended way to
handle that situation?

Thanks,

Daniel Krügler
Re: Show View in Editor Area [message #488834 is a reply to message #488745] Wed, 30 September 2009 13:15 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Hmmm, you're right. But the javadoc for IViewPart says:

* As of 3.4, views may optionally adapt to {@link ISizeProvider} if they have
* a preferred size. The default presentation will make a best effort to
* allocate the preferred size to a view if it is the only part in a stack. If
* there is more than one part in the stack, the constraints will be disabled
* for that stack. The size constraints are adjusted for the size of the tab and
* border trim. Note that this is considered to be a hint to the presentation,
* and not all presentations may honor size constraints.

I would open a bug, since it does appear to be valid to use it with view parts.

PW


Re: Show View in Editor Area [message #488864 is a reply to message #488834] Wed, 30 September 2009 13:50 Go to previous message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
Paul Webster wrote:
> Hmmm, you're right. But the javadoc for IViewPart says:
>
> * As of 3.4, views may optionally adapt to {@link ISizeProvider} if they
> have
> * a preferred size. The default presentation will make a best effort to
> * allocate the preferred size to a view if it is the only part in a
> stack. If
> * there is more than one part in the stack, the constraints will be
> disabled
> * for that stack. The size constraints are adjusted for the size of the
> tab and
> * border trim. Note that this is considered to be a hint to the
> presentation,
> * and not all presentations may honor size constraints.
>
> I would open a bug, since it does appear to be valid to use it with view
> parts.

You are right, so I added one:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=290909

- Daniel
Previous Topic:custom PreferenceStore
Next Topic:ActionBar contributions when showTitle is false
Goto Forum:
  


Current Time: Thu Apr 18 03:08:46 GMT 2024

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

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

Back to the top