Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to add nodes runtime
How to add nodes runtime [message #43760] Sun, 10 September 2006 11:10 Go to next message
Eclipse UserFriend
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 #44227 is a reply to message #43760] Mon, 11 September 2006 08:39 Go to previous messageGo to next message
Artem Tikhomirov is currently offline Artem TikhomirovFriend
Messages: 222
Registered: July 2009
Senior Member
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
Re: How to add nodes runtime [message #44692 is a reply to message #44227] Mon, 11 September 2006 12:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: matroska.libero.it

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
>
>
Re: How to add nodes runtime [message #45209 is a reply to message #44692] Mon, 11 September 2006 16:42 Go to previous messageGo to next message
Artem Tikhomirov is currently offline Artem TikhomirovFriend
Messages: 222
Registered: July 2009
Senior Member
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
>>
Re: How to add nodes runtime [message #49136 is a reply to message #45209] Fri, 15 September 2006 21:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: matroska.libero.it

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
>
Re: How to add nodes runtime [message #51072 is a reply to message #49136] Tue, 19 September 2006 13:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ravikanth.pramati.com

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
>>
Re: How to add nodes runtime [message #75099 is a reply to message #51072] Tue, 07 November 2006 10:15 Go to previous message
Eclipse UserFriend
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
>
>
Previous Topic:Help on GridLayout for compartment nodes
Next Topic:Delete from model only deletes view
Goto Forum:
  


Current Time: Fri Jan 03 00:02:02 GMT 2025

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

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

Back to the top