Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » PartSashContainer inside Part
PartSashContainer inside Part [message #1061426] Fri, 31 May 2013 14:48 Go to next message
Ozgur Cagdas is currently offline Ozgur CagdasFriend
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 #1061591 is a reply to message #1061426] Mon, 03 June 2013 07: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 18:23 Go to previous messageGo to next message
Eric Moffatt is currently offline Eric MoffattFriend
Messages: 118
Registered: July 2009
Senior Member
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 18:31 Go to previous messageGo to next message
Jo Jaquinta is currently offline Jo JaquintaFriend
Messages: 40
Registered: January 2013
Location: Boston
Member

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 Go to previous messageGo to next message
Ozgur Cagdas is currently offline Ozgur CagdasFriend
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 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 19:10 Go to previous messageGo to next message
Eric Moffatt is currently offline Eric MoffattFriend
Messages: 118
Registered: July 2009
Senior Member
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 08:27 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
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 09: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: Tue Apr 16 22:35:15 GMT 2024

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

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

Back to the top