Skip to main content



      Home
Home » Eclipse Projects » Eclipse 4 » PartSashContainer inside Part
PartSashContainer inside Part [message #1061426] Fri, 31 May 2013 10:48 Go to next message
Eclipse UserFriend
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 04:48] by Moderator

Re: PartSashContainer inside Part [message #1061591 is a reply to message #1061426] Mon, 03 June 2013 03:50 Go to previous messageGo to next message
Eclipse UserFriend
Right now this is not possible. But there has been some effort in this direction here https://bugs.eclipse.org/bugs/show_bug.cgi?id=378298
Re: PartSashContainer inside Part [message #1064128 is a reply to message #1061591] Mon, 17 June 2013 14:23 Go to previous messageGo to next message
Eclipse UserFriend
We're intending to address this in Luna (Eclipse 4.4) using the approach outlined in the defect Sopot referenced. Note that nothing is really that simple since once you have nested 'parts' you also have to augment the whole *concept* of 'active part' which is currently a singleton. The plan is to have the model changes in early in Luna as well as some form of initial implementation so that we can have as much time as possible to find / fix defects and polish the idea.
Re: PartSashContainer inside Part [message #1064133 is a reply to message #1064128] Mon, 17 June 2013 14:31 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: PartSashContainer inside Part [message #1173118 is a reply to message #1064128] Wed, 06 November 2013 04:53 Go to previous messageGo to next message
Eclipse UserFriend
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 04:54] by Moderator

Re: PartSashContainer inside Part [message #1173328 is a reply to message #1173118] Wed, 06 November 2013 07:47 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: PartSashContainer inside Part [message #1173786 is a reply to message #1173328] Wed, 06 November 2013 14:10 Go to previous messageGo to next message
Eclipse UserFriend
There is a newly defined model element "MCompositePart" that is not only a part but can also contain a substructure...


Re: PartSashContainer inside Part [message #1174654 is a reply to message #1173786] Thu, 07 November 2013 03:27 Go to previous messageGo to next message
Eclipse UserFriend
Most likely the e4xmi-Editor does not yet know about it?

Tom

On 06.11.13 20:10, Eric Moffatt wrote:
> There is a newly defined model element "MCompositePart" that is not only
> a part but can also contain a substructure...
>
>
>
Re: PartSashContainer inside Part [message #1174715 is a reply to message #1174654] Thu, 07 November 2013 04:16 Go to previous message
Eclipse UserFriend
No it doesn't https://bugs.eclipse.org/bugs/show_bug.cgi?id=421211
Previous Topic:InjectionException when attempting to send a map on event bus
Next Topic:e4 Tools Services ResourceProvider
Goto Forum:
  


Current Time: Fri Jul 04 11:07:48 EDT 2025

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

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

Back to the top