How to add nodes runtime [message #43760] |
Sun, 10 September 2006 07:10  |
Eclipse User |
|
|
|
Originally posted by: matroska.libero.it
Hi,
i would like to build a wizard to add and delete nodes on a gmf diagram.
How can i reach this?
Yours faithfully
Tobia Loschiavo
|
|
|
|
|
|
|
|
Re: How to add nodes runtime [message #75099 is a reply to message #51072] |
Tue, 07 November 2006 05:15  |
Eclipse User |
|
|
|
Originally posted by: ayalandzhiev.sbnd.net
Hello, I have a same task like your "wizard to add and delete nodes on a
gmf diagram", but I have to create nodes from action which calls from
cheat sheet I do not know how to do it if you have some idea please tell me.
Thanks in advance.
Ravikanth wrote:
> I understand that you need to create nodes when the editor is created, as in
> the nodes should appear when the editor opens up the first time(after the
> click of "Finish" on the wizard page). There are several ways of doing it.
>
> 1. You can do a create of your element in th performFinish method of the
> Wizard class
> 2. You can override the init method of the editor and check if the resource
> contains any elements, if it doesn't then create your default nodes.
>
> If the problem is with creating components then you cud refer to the GMF
> Hints on the GMF wiki page.
>
> "Tobia Loschiavo" <matroska@libero.it> wrote in message
> news:eef4o6$h83$1@utils.eclipse.org...
>> But not new nodes (instances) but new type of nodes...for example create
>> a new node with some elements not present in the other one.
>>
>> Thanks Artem
>> Tobia
>>
>>
>>
>> Artem Tikhomirov ha scritto:
>>> Well,
>>>>>> i would like to build a wizard to add and delete nodes on a gmf
>>>>>> diagram.
>>> and
>>>> about rich client platform and gmf.
>>> are not the same question, right?
>>>
>>> There's nothing special about adding/deleting nodes and RCP, as well as
>>> there's nothing special about wizards and RCP.
>>> Use WizardDialog to show up a wizard and use appropriate subclass of
>>> e.g.
>>> CreationRequest to add elements.
>>>
>>>
>>> Artem
>>>
>>> "Tobia Loschiavo" <matroska@libero.it> wrote in message
>>> news:ee3jd5$5lp$1@utils.eclipse.org...
>>>> Can you link me some of that? Unfortunately i find no documentation
>>>> about rich client platform and gmf.
>>>>
>>>>
>>>> Thank you
>>>> Tobia Loschiavo
>>>>
>>>>
>>>> Artem Tikhomirov ha scritto:
>>>>> And what's the obstacle? There are plenty of wizard tutorials, and
>>>>> generated
>>>>> creation tools could give you a hint about how to deal with element
>>>>> creation
>>>>> requests. If you need more than creation of regular elements, you may
>>>>> need
>>>>> to get deeper into commands framework.
>>>>>
>>>>> Artem
>>>>>
>>>>> "Tobia Loschiavo" <matroska@libero.it> wrote in message
>>>>> news:ee0rns$s3l$1@utils.eclipse.org...
>>>>>> Hi,
>>>>>>
>>>>>> i would like to build a wizard to add and delete nodes on a gmf
>>>>>> diagram.
>>>>>> How can i reach this?
>>>>>>
>>>>>> Yours faithfully
>>>>>> Tobia Loschiavo
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.27477 seconds