Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Why I can't select node in my compartment to move
Why I can't select node in my compartment to move [message #43544] Sat, 09 September 2006 10:23 Go to next message
Eclipse UserFriend
Hi,

I encounter a problem when I use gmf. I create a compartment for a node
'A' and add the other kind of node 'B' reference under it. In the
generated diagram editor, I can add the 'B' in the `A`'s compartment but
after that 'B' just stays on the top left conner of the `A`'s
compartment and I can do nothing with it. Does anybody know what the
problem is? Thanks for advancing!

Regards,
Junyan
Re: Why I can't select node in my compartment to move [message #44068 is a reply to message #43544] Sun, 10 September 2006 18:23 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

First please check your .log file.
Most probably you will find exception (my guess is ClassCastException)
somewhere in generated code.

Regards,
Michael

"Junyan Ma" <alexmajy@gmail.com> wrote in message
news:eduipg$fgf$1@utils.eclipse.org...
> Hi,
>
> I encounter a problem when I use gmf. I create a compartment for a node
> 'A' and add the other kind of node 'B' reference under it. In the
> generated diagram editor, I can add the 'B' in the `A`'s compartment but
> after that 'B' just stays on the top left conner of the `A`'s compartment
> and I can do nothing with it. Does anybody know what the problem is?
> Thanks for advancing!
>
> Regards,
> Junyan
Re: Why I can't select node in my compartment to move [message #44801 is a reply to message #44068] Mon, 11 September 2006 08:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lod.staff.civ.org.pl

Hello,

interestingly enough, I have the same problem; whenever I attempt to
create a compartment - that is, all children of the compartment get
repositioned to the top-left corner of the compartment, become
unselectable, and additionally the compartment figure's label is not
displayed. I'm probably skipping some step, but after triple checking
and comparing with the examples I cannot tell which one.

No errors are logged since the initialization of the diagram editor.

Any help would be appreciated.

Regards,
Mikolaj


> Hi,
>
> First please check your .log file.
> Most probably you will find exception (my guess is ClassCastException)
> somewhere in generated code.
>
> Regards,
> Michael
>
> "Junyan Ma" <alexmajy@gmail.com> wrote in message
> news:eduipg$fgf$1@utils.eclipse.org...
>> Hi,
>>
>> I encounter a problem when I use gmf. I create a compartment for a node
>> 'A' and add the other kind of node 'B' reference under it. In the
>> generated diagram editor, I can add the 'B' in the `A`'s compartment but
>> after that 'B' just stays on the top left conner of the `A`'s compartment
>> and I can do nothing with it. Does anybody know what the problem is?
>> Thanks for advancing!
>>
>> Regards,
>> Junyan
>
>
Re: Why I can't select node in my compartment to move [message #44903 is a reply to message #44801] Mon, 11 September 2006 10:39 Go to previous messageGo to next message
Eclipse UserFriend
Mikolaj Koziarkiewicz wrote:
> Hello,
>
> interestingly enough, I have the same problem; whenever I attempt to
> create a compartment - that is, all children of the compartment get
> repositioned to the top-left corner of the compartment, become
> unselectable, and additionally the compartment figure's label is not
> displayed. I'm probably skipping some step, but after triple checking
> and comparing with the examples I cannot tell which one.
>
> No errors are logged since the initialization of the diagram editor.
>
> Any help would be appreciated.
>
> Regards,
> Mikolaj
>
>
>> Hi,
>>
>> First please check your .log file.
>> Most probably you will find exception (my guess is ClassCastException)
>> somewhere in generated code.
>>
>> Regards,
>> Michael
>>
>> "Junyan Ma" <alexmajy@gmail.com> wrote in message
>> news:eduipg$fgf$1@utils.eclipse.org...
>>> Hi,
>>>
>>> I encounter a problem when I use gmf. I create a compartment for a node
>>> 'A' and add the other kind of node 'B' reference under it. In the
>>> generated diagram editor, I can add the 'B' in the `A`'s compartment but
>>> after that 'B' just stays on the top left conner of the `A`'s
>>> compartment and I can do nothing with it. Does anybody know what the
>>> problem is? Thanks for advancing!
>>>
>>> Regards,
>>> Junyan
>>
>>
Hi Mikolaj,

We just keep watching the flash and ignore the 'tip' in the tutorial 2.
Just set the 'List Layout' false :)

Tip : In the generator model, you will find a property on the
compartment that will allow you to show children as 'floating' nodes and
not stacked in a list. The property is 'List Layout' and should be set
to 'false' in this case.
Re: Why I can't select node in my compartment to move [message #44954 is a reply to message #44903] Mon, 11 September 2006 11:16 Go to previous message
Eclipse UserFriend
Originally posted by: lod.staff.civ.org.pl

>> Hello,
>>
>> interestingly enough, I have the same problem; whenever I attempt to
>> create a compartment - that is, all children of the compartment get
>> repositioned to the top-left corner of the compartment, become
>> unselectable, and additionally the compartment figure's label is not
>> displayed. I'm probably skipping some step, but after triple checking
>> and comparing with the examples I cannot tell which one.
>>
>> No errors are logged since the initialization of the diagram editor.
>>
>> Any help would be appreciated.
>>
>> Regards,
>> Mikolaj
>>
>>
>>> Hi,
>>>
>>> First please check your .log file.
>>> Most probably you will find exception (my guess is
>>> ClassCastException) somewhere in generated code.
>>>
>>> Regards,
>>> Michael
>>>
>>> "Junyan Ma" <alexmajy@gmail.com> wrote in message
>>> news:eduipg$fgf$1@utils.eclipse.org...
>>>> Hi,
>>>>
>>>> I encounter a problem when I use gmf. I create a compartment for a node
>>>> 'A' and add the other kind of node 'B' reference under it. In the
>>>> generated diagram editor, I can add the 'B' in the `A`'s compartment
>>>> but
>>>> after that 'B' just stays on the top left conner of the `A`'s
>>>> compartment and I can do nothing with it. Does anybody know what the
>>>> problem is? Thanks for advancing!
>>>>
>>>> Regards,
>>>> Junyan
>>>
>>>
> Hi Mikolaj,
>
> We just keep watching the flash and ignore the 'tip' in the tutorial 2.
> Just set the 'List Layout' false :)
>
> Tip : In the generator model, you will find a property on the
> compartment that will allow you to show children as 'floating' nodes and
> not stacked in a list. The property is 'List Layout' and should be set
> to 'false' in this case.
>

Hello Junyan,

talk about obfuscated ;)... Thanks, this solves it! Also, the problems
associated with the label's display was simply the result of a lack of a
Label Mapping.

Regards,
Mikolaj
Previous Topic:safeProvides always return false when droping elements from tree
Next Topic:Right-justified layout
Goto Forum:
  


Current Time: Sun Aug 31 17:06:48 EDT 2025

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

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

Back to the top