| Labels broken? [message #229907] |
Wed, 13 May 2009 04:22  |
Eclipse User |
|
|
|
Hi,
I have a question regarding labels. In my editor for safe state machines
I have labels for signals which show the signal's name and type.
Everything worked fine at first, but since a few days - I can't recall
exactly when it started - when I change the signal's name in the label,
it isn't changed at all. I debugged it, and the setName method for
signals is not called when entering a name in the label. However, when I
type the name in the properties view in the field 'name' and press
enter, it works. The setName method is called and the label properly
displays the signal's name and its type.
I have no idea where to look to fix things. Can someone point out the
direction I have to go? It probably could have something to do with the
editor, edit and view pattern of the label as these are the last things
I changed (although it worked at first after changing this. However, I
didn't do anything with the labels after that). The edit and editor
patterns only show the signal's name as this is the attribute that is
supposed to be changed by modifying the label, while the view pattern
contains the name and the type of the signal.
Can someone help me out?
Regards,
Matthias
|
|
|
|
|
|
| Re: Labels broken? [message #231281 is a reply to message #230049] |
Tue, 26 May 2009 04:07  |
Eclipse User |
|
|
|
Hi again,
I finally found the problem: It seems it is not possible to leave away
parts of the string in the edit and editor pattern, because when I
debugged the parser, it was waiting for 2 arguments and I gave it only
one. So this means, the other patterns also have to contain both {0} and
{1}.
Thanks for the help :)
Matthias
Alex Shatalin wrote:
> Hello Matthias,
>
> Try debugging parser returned from this method.
>
> -----------------
> Alex Shatalin
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.06487 seconds