Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » how to make objects moveable within container
how to make objects moveable within container [message #113807] Thu, 22 March 2007 16:43 Go to next message
Conor Missing name is currently offline Conor Missing nameFriend
Messages: 159
Registered: July 2009
Senior Member
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 #114013 is a reply to message #113807] Fri, 23 March 2007 12:35 Go to previous messageGo to next message
Eclipse UserFriend
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 #114035 is a reply to message #114013] Fri, 23 March 2007 14:34 Go to previous messageGo to next message
Conor Missing name is currently offline Conor Missing nameFriend
Messages: 159
Registered: July 2009
Senior Member
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
Re: how to make objects moveable within container [message #114054 is a reply to message #114035] Fri, 23 March 2007 14:48 Go to previous messageGo to next message
Eclipse UserFriend
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
>
Re: how to make objects moveable within container [message #114063 is a reply to message #114054] Fri, 23 March 2007 14:52 Go to previous message
Conor Missing name is currently offline Conor Missing nameFriend
Messages: 159
Registered: July 2009
Senior Member
Sorry, just found it, thanks for your help.
Previous Topic:Help ... GMF with RCP
Next Topic:Extra layer over GMF diagram
Goto Forum:
  


Current Time: Sat Oct 19 10:45:43 GMT 2024

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

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

Back to the top