|
|
|
Re: Drag-drop from Project Explorer to Diagram [message #207586 is a reply to message #200254] |
Wed, 01 October 2008 06:26 |
Eclipse User |
|
|
|
Originally posted by: manojm.blr.interrasystems.com
Hi!
I am also facing kind of same problem.
I want to implement DnD, from different medel to GMF editor.
Could you please help?
Regards,
Manoj
Jevon Wright wrote:
> Wow, thanks Alex! That works perfectly!
>
> Jevon
>
> Alex Shatalin wrote:
>
>> Hello Jevon,
>>
>>> I am trying to implement drag and drop from model nodes in the Project
>>> Explorer tree (generated with GMF's navigator generator) into an open
>>> GMF model diagram. For example:
>>
>> This functionality can be generated by GMF for you. You have to set
>> "shortcutsProvidedFor"/"containsShortcutsTo" properties in accordance
>> with http://wiki.eclipse.org/GMF_GenModel_Hints#GenDiagram and
>> regenerate diagram code. As a result "shortcut" to the dropped element
>> should be created on underlying diagram on D&D from the model
>> navigator to the diagam.
>>
>> -----------------
>> Alex Shatalin
>>
>>
|
|
|
|
Re: Drag-drop from Project Explorer to Diagram [message #207635 is a reply to message #207627] |
Wed, 01 October 2008 13:50 |
Eclipse User |
|
|
|
Originally posted by: manojm.blr.interrasystems.com
Thanks Alex,
But how should I make my editor aware of the fact, that the dropped
element is from other model?
Please provide me some clue.
Regards,
Manoj
Alex Shatalin wrote:
> Hello Manoj,
>
>> I want to implement DnD, from different medel to GMF editor.
>
> You can use GMF-generated as an example of D&D implementation and try
> doing the same in with different model view/editor..
> -----------------
> Alex Shatalin
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04944 seconds