PartSashContainer inside Part [message #1061426] |
Fri, 31 May 2013 14:48 |
Ozgur Cagdas Messages: 32 Registered: May 2013 |
Member |
|
|
Hi,
I have a Part which resides under the PartSashContainer -> PartStack hierarchy. I need to put another PartSashContainer within this part so then I can put two other Parts in it and display them both at the same time (PartSashContainer -> PartStack -> PartSashContainer -> (Part x 2)). Is there a way of doing this by using the e4xmi? As each part has its own popup menu and those have complex 'visible-when' rules, I'd like to do it by using the e4xmi instead of the WindowBuilder if possible.
Thanks in advance,
O.
[Updated on: Wed, 06 November 2013 09:48] Report message to a moderator
|
|
|
|
|
Re: PartSashContainer inside Part [message #1064133 is a reply to message #1064128] |
Mon, 17 June 2013 18:31 |
|
Too funny. I was just trying to do this today!
I solved my design problem by just embedding the two controls together. Not what I wanted to do, bit it worked.
In general, I try to structure my code so that I never write much, if any, UI code in the part level code (view, for e3). For each Part I have a BlahBlahView class that does the minimum necessary to connect to the outside framework. All the specific ui is in a BlahBlahPanel class, which inherits from Composite. The View creates the Panel through ContextInjectionFactory, so I still get all the good dependency injection stuff.
The benefit of this approach is that your real UI work is done at the Composite level. It becomes a relatively easy matter to adapt to changes and re-use UI work. Normally that is so I can accept changes form the UX team later in the cycle. In this case, I was able to work around the limitation you hit here.
Just thought I would hold that out as a design approach that helps deal with this and similar problems.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jo Grant, Senior Software Engineer
Admin and Config Console Architect
OpenPages, IBM
|
|
|
Re: PartSashContainer inside Part [message #1173118 is a reply to message #1064128] |
Wed, 06 November 2013 09:53 |
Ozgur Cagdas Messages: 32 Registered: May 2013 |
Member |
|
|
Hi Eric,
I've recently upgraded to Luna (20131003-0825 build to be precise) but still can't add a PartSashContainer under a Part. Is this feature still targeted to be added to Luna at some point or likely to be postponed to a later release?
I have already implemented what I need in a way similar to what Jo described but if this support is introduced to e4xmi, I'm happy to update the design.
Regards,
Ozgur.
[Updated on: Wed, 06 November 2013 09:54] Report message to a moderator
|
|
|
Re: PartSashContainer inside Part [message #1173328 is a reply to message #1173118] |
Wed, 06 November 2013 12:47 |
Eclipse User |
|
|
|
On 11/06/2013 10:53 AM, Ozgur Cagdas wrote:
> I've recently upgraded to Luna (20131003-0825 build to be precise) but
> still can't add a PartSashContainer under a Part. Is this feature still
> targeted to be added to Luna at some point or likely to be postponed to
> a later release?
>
Hi Ozgur,
just check the state of bug #378298 [1]. It's still in the new state.
M.
[1] https://bugs.eclipse.org/378298
PS: You can also subscribe to the bug to receive notifications.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03832 seconds