Show View in Editor Area [message #488684] |
Tue, 29 September 2009 17:54  |
Eclipse User |
|
|
|
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 #488707 is a reply to message #488693] |
Tue, 29 September 2009 21:13   |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03488 seconds