[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: Forcing compartment elements to stay within the compartment boundary.

Hi Andreas,

I think that the problem I am facing is different from yours.

I have a rectangular figure say NodeA.This contains another node
say NodeB.So the xml that is generated looks like:

< node a name = "NodeA">
    <NodeB name = "NodeB" />
</nodeA>
Now when I drag the nodeB and take it outside NodeA the xml generated is

  <NodeA name = "NodeA"/>
  <NodeB name = "NodeB"/>

I have not specified any TopNode reference for NodeB because I dont want NodeB outside NodeA. I want to force NodeB to be inside NodeA even if I try to drag it outside.


Thanks Sayed Aamir Shoeb


Andreas Heinecke wrote:
Hi Sayed,

maybe I've encountered a similar problem. But now it is solved.
My problem was that Labels which should be contained in a compartment
doesnt stay in there.
Take a look at the solution in the Thread: "Showing Attribute Labels in
Compartment". Which was startet yesterday.

kind regards,

andreas

sayed schrieb:
Hi,

I have a compartment with some elements in it.When I drag these elements
out of the compartment they come out of it due to which the generated
xml changes.
I want to force these elements to stay within the compartment boundary
even if I try to drag it outside the compartment. Within the compartment
  I should be able to position it wherever I want.

can anyone help????

Regards
Sayed Aamir Shoeb