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  |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Goto Forum:
Current Time: Sun Aug 31 08:45:23 EDT 2025
Powered by FUDForum. Page generated in 0.04390 seconds
|