Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Creating several nodes+links with only one palette action
Creating several nodes+links with only one palette action [message #176565] Mon, 10 March 2008 16:06 Go to next message
Truong Ivan is currently offline Truong IvanFriend
Messages: 10
Registered: July 2009
Junior Member
Hello,

The activities in our workflow are not only one activity but a template of
activities :

<Input Nodes>------[Activity]------<Output Nodes>

There's a pre-processing in the input nodes and a post processing in the
output nodes.
Each node and the activity are one object in the Diagram model.

It will be quite fastidious for an end user to always define the input
nodes and output nodes one by one.
Instead I wonder if it's possible to create the whole template using one
tool entry of the palette.

I took a look on the GMF code and it seems there's a strong bound in "1
tool entry = 1 diagram node or link"

I wonder if someone could tell me if it's possible or give me some hints.

Thank,
Ivan
Re: Creating several nodes+links with only one palette action [message #177612 is a reply to message #176565] Mon, 17 March 2008 10:50 Go to previous messageGo to next message
Truong Ivan is currently offline Truong IvanFriend
Messages: 10
Registered: July 2009
Junior Member
Hello,

Sorry to come back on this point but I wanted to know if it was possible?

Thanks
Ivan
Re: Creating several nodes+links with only one palette action [message #178140 is a reply to message #177612] Wed, 19 March 2008 15:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: 5d5.mail.ru

You have to write code; creation tool asks target edit part (~ under
cursor) for creation command and executes it; you could ask for an
appropriate number of commands for each element and execute a compound
command.

Ivan Truong wrote:
> Hello,
>
> Sorry to come back on this point but I wanted to know if it was possible?
>
> Thanks
> Ivan
>
Re: Creating several nodes+links with only one palette action [message #178442 is a reply to message #178140] Thu, 20 March 2008 18:12 Go to previous message
Truong Ivan is currently offline Truong IvanFriend
Messages: 10
Registered: July 2009
Junior Member
Hello Dimitri,

Thank you for your answer.

I could do what I wished to do by hacking the
XXXCreateCommand.doExecuteWithResult(...) by replacing the old code by a
sequence that's update the Model objects.

So far it's working but I don't know if there would be side effects.

Thanks,
Ivan

Dmitry Stadnik wrote:

> You have to write code; creation tool asks target edit part (~ under
> cursor) for creation command and executes it; you could ask for an
> appropriate number of commands for each element and execute a compound
> command.

> Ivan Truong wrote:
>> Hello,
>>
>> Sorry to come back on this point but I wanted to know if it was possible?
>>
>> Thanks
>> Ivan
>>
Previous Topic:Use of specializationType
Next Topic:Explanation of Editing Domain Id in GMF editor
Goto Forum:
  


Current Time: Wed Apr 24 22:52:23 GMT 2024

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

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

Back to the top