Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Fail to use node creation tool to add element
Fail to use node creation tool to add element [message #1690436] Fri, 27 March 2015 10:22 Go to next message
Da Zhang is currently offline Da ZhangFriend
Messages: 2
Registered: March 2015
Junior Member
I'm learning Sirius. This is a simple model.
see attachment 1.png index.php/fa/21353/0/
I have created VSM and visualized my metamodel successfully. Now I want to have node creation tools to add nodes.
I am able to make the node creation tool for "adaptor" successfully.
Here is details.
see attachment 2.png index.php/fa/21354/0/
I use the same way to create the other tool for "resource". Then it doesn't work. and the FeatureNotFound exceptions pop up.
see attachment 3.png index.php/fa/21355/0/

The "resources" reference is not feature for "ToolChain", but it is a reference for "adaptors". I set change context for this operation with "var:container". Here is detailed info for the create instance operation.
see attachment 4.png index.php/fa/21356/0/

I have saw many examples about how to use creation tool. I doesn't find any difference with those examples.

I have been stocked by this issue for 2 days. Is there anyone can help me? Thank you very much!
  • Attachment: 1.png
    (Size: 27.52KB, Downloaded 561 times)
  • Attachment: 2.png
    (Size: 36.38KB, Downloaded 498 times)
  • Attachment: 3.png
    (Size: 105.75KB, Downloaded 470 times)
  • Attachment: 4.png
    (Size: 19.70KB, Downloaded 541 times)
Re: Fail to use node creation tool to add element [message #1690819 is a reply to message #1690436] Tue, 31 March 2015 13:34 Go to previous messageGo to next message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 572
Registered: May 2011
Senior Member
Hello,

My first guess is that you created your first node creation tool for
ToolAdapter. It worked. Then you copied it to create the node creation
tool for Resource but did not update the field "Node Mapping" to the
Resource node mapping instead of the ToolAdapter node mapping. Can you
check it on the general tab of your tool?

Regards,
Steve

Le 27/03/2015 16:23, Da Zhang a écrit :
> I'm learning Sirius. This is a simple model.
> see attachment 1.png
> I have created VSM and visualized my metamodel successfully. Now I want to have node creation tools to add nodes.
> I am able to make the node creation tool for "adaptor" successfully.
> Here is details.
> see attachment 2.png
> I use the same way to create the other tool for "resource". Then it doesn't work. and the FeatureNotFound exceptions pop up.
> see attachment 3.png
>
> The "resources" reference is not feature for "ToolChain", but it is a reference for "adaptors". I set change context for this operation with "var:container". Here is detailed info for the create instance operation.
> see attachment 4.png
>
> I have saw many examples about how to use creation tool. I doesn't find any difference with those examples.
>
> I have been stocked by this issue for 2 days. Is there anyone can help me? Thank you very much!
>


--
Steve Monnier - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius


Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Fail to use node creation tool to add element [message #1691556 is a reply to message #1690819] Wed, 08 April 2015 07:47 Go to previous messageGo to next message
Da Zhang is currently offline Da ZhangFriend
Messages: 2
Registered: March 2015
Junior Member
Hello, Steve,

I have solved the problem. The root cause is that I don't set the context correctly. I want to create resource node on the diagram, but in my metamodel, the resource belongs to adapter not the tool chain.

Still thank you for your reply. And Sirius is great!
Re: Fail to use node creation tool to add element [message #1732756 is a reply to message #1691556] Thu, 19 May 2016 17:44 Go to previous messageGo to next message
kada nouri is currently offline kada nouriFriend
Messages: 1
Registered: May 2016
Junior Member
I have the same problem ,
I can't create tools of deferents context in same diagram ,

please help me .
Re: Fail to use node creation tool to add element [message #1733610 is a reply to message #1732756] Mon, 30 May 2016 12:06 Go to previous message
Laurent Redor is currently offline Laurent RedorFriend
Messages: 300
Registered: July 2009
Senior Member
Le 23/05/2016 à 07:42, kada nouri a écrit :
> I have the same problem ,
> I can't create tools of deferents context in same diagram ,
>
> please help me .

Hi,

The initial problem of this post is solved ([1]). So we can't help you
with more details of your specific case.

Regards,

[1]
https://www.eclipse.org/forums/index.php?t=msg&th=1065183&goto=1691556&#msg_1691556

--
Laurent Redor - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius


Laurent Redor - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Palette creation
Next Topic:Containers and Sub-Containers Problem
Goto Forum:
  


Current Time: Thu Apr 25 19:30:35 GMT 2024

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

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

Back to the top