|
Re: how to make objects moveable within container [message #114013 is a reply to message #113807] |
Fri, 23 March 2007 12:35 |
Eclipse User |
|
|
|
Originally posted by: 5d5.mail.ru
Maybe you use list compartment instead of shape compartment? There is
boolean property in compartment element to select it's type.
Gaff wrote:
> Hi All,
>
> I've just started using a container in a node in my editor. What I'd
> like to have is something similar to one of the containers in the Taipan
> example. The one where you can add large and empty boxes to the ship
> node. I've got my container working but when I add elements into the
> container they stay fixed to the left hand side. I'd like to be able to
> freely move these around within the container. I've tried copying all
> the settings from the Tiapn example but the nodes still appear fixed to
> the left hand side.
>
> Also, I was looking at the viewlet for the mindmap container tutorial
> http://www.eclipse.org/gmf/tutorial/viewlets/tutorial2.html (didn't see
> anything set here either to indicate how to let elements within a
> container to move freely) and noticed that when the collapsible tab was
> clicked, which I have in my container, that the node shrunk back to its
> original/optimal size. When I shrink my container the node stays the
> same size. How would I be able to change it so node returns to original
> size on shrinking the compartment.
>
> Thanks very much for your help,
>
> Gaff
>
>
|
|
|
|
Re: how to make objects moveable within container [message #114054 is a reply to message #114035] |
Fri, 23 March 2007 14:48 |
Eclipse User |
|
|
|
Originally posted by: 5d5.mail.ru
See gmfgen model; GenCompartment.listLayout
Gaff wrote:
> Hi Dimitry,
>
> That sounds like waht I need to change. I can't find it my application
> or in the Taipan example. In the Taipan example I can see two
> compartment elements (I presume you mean the ones in the gmfgraph
> model?) for large and small cargo. In their properties there are
> Collapsible, Figure, Name and Needs Title. Can't see the boolean
> property you're talking about. Could you point out in where in the
> Taipan example it is?
>
> Thanks,
>
> Gaff
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03611 seconds