Collapsible Label [message #671902] |
Thu, 19 May 2011 10:06 |
Dominic S. Messages: 11 Registered: May 2011 |
Junior Member |
|
|
Hello eclipse community!
I've been trying for hours now to create a collapsible label with the GMF framework. The result shall look like this:
+--------------------------+
| Title Label |
+--------------------------+
| ^ collapsible multiline |
| label..... |
+--------------------------+
| ^ |
| (collapsible drag'n' |
| drop compartment) |
| |
+--------------------------+
I have a rounded rectangle with border layout, the title label at the BEGINNING, then a nested rectangle containing the (should-be) collapsible label and a compartment (which contains other elements and is collapsible, this works).
So far, I tried to map the label to an own compartment to use the built-in collapse functionality, but this does not work (although the +/- signs are being displayed and are clickable) - the label text is always visible.
Then I tried to add a custom MouseListener to the Label EditPart, with which I did not succeed either.
I would highly appreciate any help regarding this issue! Google search did not bring any usable results, unfortunately. Given the case that I solve this problem, I'll go and publish the result in my blog to help other people avoid time-consuming work on such stuff.
Thanks!
Dominic.
[Updated on: Fri, 20 May 2011 15:52] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03177 seconds