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 12:51  |
Eclipse User |
|
|
|
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 04:04   |
Eclipse User |
|
|
|
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
|
|
| | | | |
Goto Forum:
Current Time: Fri May 23 03:43:47 EDT 2025
Powered by FUDForum. Page generated in 0.03678 seconds
|