Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Show part title when added directly to sash container
Show part title when added directly to sash container [message #1057819] Thu, 09 May 2013 04:06 Go to next message
Li Chen is currently offline Li ChenFriend
Messages: 20
Registered: July 2011
Location: Sydney
Junior Member
When add a part to a sash container directly, the part title is not shown. We understand that when add a part to a part stack, the title is shown. But in this case other part can stack to the same part stack, which we don't want.
So in order to solve our problem, could anyone please answer any of the following two questions?

1. How to show part title when part is added directly to sash container?
2. How to disable other part's docking to a part stack?

Thanks
Re: Show part title when added directly to sash container [message #1058208 is a reply to message #1057819] Mon, 13 May 2013 08:39 Go to previous messageGo to next message
Eclipse UserFriend
1. You'd have to provide a modified SashRenderer. Take a look at the default one and it should not be too complex.
2. That's a bit ambiguous. How would you define which part is allowed in which part stack? Take a look at the NO_MOVE tag which inhibits DnD.
Re: Show part title when added directly to sash container [message #1064136 is a reply to message #1058208] Mon, 17 June 2013 18:42 Go to previous message
Eric Moffatt is currently offline Eric MoffattFriend
Messages: 118
Registered: July 2009
Senior Member
This is actually an issue in the ContributedPartRenderer. We should be checking whether the part is contained in an MPartStack and, if not, provide a wrapper suitable for a stand-alone part.

We'll be looking at this in Luna.
Previous Topic:unhandled event loop in juno and kepler
Next Topic:Access Menu at runtime
Goto Forum:
  


Current Time: Fri Apr 26 13:58:25 GMT 2024

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

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

Back to the top