Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » a node label cannot be saved when using Node Creation from a Palette.
a node label cannot be saved when using Node Creation from a Palette. [message #1696814] Thu, 28 May 2015 16:51 Go to next message
eunjung park is currently offline eunjung parkFriend
Messages: 72
Registered: April 2015
Member
Hi,

Thank you so much to the Sirius Team for providing a good tool.
I'm getting much help from the Sirius on defining my own language.
By the way, I have another problem.

When I created a node by using a icon in my palette, I could make a new node.
However, when I edit the label of the node, the value wasn't saved.
I just added a Node Creation in Viewpoint Specification and set mapping.
Do I need to add other things?
I tried to add "Direct Edit Label" like the 4-minute tutorial, but when I edit the label of a new node, it showed "Null Pointer Exception".
Are there missing points?
Please let me know.

Thanks alot.

Best Regards,
Eunjung Park

Re: a node label cannot be saved when using Node Creation from a Palette. [message #1697045 is a reply to message #1696814] Mon, 01 June 2015 08:04 Go to previous messageGo to next message
Laurent Fasani is currently offline Laurent FasaniFriend
Messages: 174
Registered: October 2014
Senior Member
Le 28/05/2015 18:51, eunjung park a écrit :
> Hi,
>
Hi
> Thank you so much to the Sirius Team for providing a good tool.
> I'm getting much help from the Sirius on defining my own language.
> By the way, I have another problem.
>
> When I created a node by using a icon in my palette, I could make a new
> node.
> However, when I edit the label of the node, the value wasn't saved.
> I just added a Node Creation in Viewpoint Specification and set mapping.
> Do I need to add other things?
yes
> I tried to add "Direct Edit Label" like the 4-minute tutorial, but when
> I edit the label of a new node, it showed "Null Pointer Exception".
> Are there missing points?
> Please let me know.
Indeed, "Direct Edit Label" is the right way to edit and save the edited
value. [1] Use a "Set" operation to set the edited value on the feature.
But be careful, in Value Expression, use an expression like [arg0/] and
not $0 as it is wrongly indicated in the tooltip of "Edite Mask
Variables"/Mask is wrong.

About the NPE, could you provide us data to reproduce the issue and also
your complete stack trace.
>
> Thanks alot.
>
> Best Regards,
> Eunjung Park
>
>
Regards
Laurent
[1]
https://www.eclipse.org/sirius/doc/3.0.x/specifier/diagrams/Diagrams.html#tools


Laurent Fasani - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: a node label cannot be saved when using Node Creation from a Palette. [message #1697147 is a reply to message #1697045] Mon, 01 June 2015 22:54 Go to previous messageGo to next message
eunjung park is currently offline eunjung parkFriend
Messages: 72
Registered: April 2015
Member
Hi, Laurent

Thank to your help, I could solve the problem.
After set the operation, I don't have any Null Pointer Exception.
Do you still need also the exception?
If then I will reproduce it and upload.
By the way, how can I see the stack trace?

Thanks and regards,
Eunjung Park
Re: a node label cannot be saved when using Node Creation from a Palette. [message #1697167 is a reply to message #1697147] Tue, 02 June 2015 07:12 Go to previous messageGo to next message
Laurent Fasani is currently offline Laurent FasaniFriend
Messages: 174
Registered: October 2014
Senior Member
Yes thanks. I would be pleased if you could provide me the stack trace.
You can get it clicking "Details" when the pop up is displayed or in
"Error log" view.

Regards
Laurent

Le 02/06/2015 00:54, eunjung park a écrit :
> Hi, Laurent
>
> Thank to your help, I could solve the problem.
> After set the operation, I don't have any Null Pointer Exception.
> Do you still need also the exception?
> If then I will reproduce it and upload.
> By the way, how can I see the stack trace?
>
> Thanks and regards,
> Eunjung Park
>


Laurent Fasani - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: a node label cannot be saved when using Node Creation from a Palette. [message #1697191 is a reply to message #1697167] Tue, 02 June 2015 09:12 Go to previous messageGo to next message
eunjung park is currently offline eunjung parkFriend
Messages: 72
Registered: April 2015
Member
Hi,

This is the error log.
I hope this would be help.
Thanks alot.

Regards,
Eunjung Park
  • Attachment: Stack.png
    (Size: 9.88KB, Downloaded 63 times)
Re: a node label cannot be saved when using Node Creation from a Palette. [message #1697192 is a reply to message #1697191] Tue, 02 June 2015 09:31 Go to previous message
Laurent Fasani is currently offline Laurent FasaniFriend
Messages: 174
Registered: October 2014
Senior Member
Le 02/06/2015 11:12, eunjung park a écrit :
> Hi,
>
> This is the error log.
> I hope this would be help.
> Thanks alot.
>
> Regards,
> Eunjung Park
>

Thanks but what I need is the full stack trace, the class of Exception
is not enough to understand the issue. Perhaps you are not aware about
what a stack trace is, so read this article[1]

[1]
http://stackoverflow.com/questions/3988788/what-is-a-stack-trace-and-how-can-i-use-it-to-debug-my-application-errors

Regards


Laurent Fasani - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Hook to run arbitrary code on diagram load
Next Topic:Set incoming and outgoing edges
Goto Forum:
  


Current Time: Wed Jan 27 19:38:58 GMT 2021

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

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

Back to the top