Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Papyrus for Real Time » whitespace in protocol message name
whitespace in protocol message name [message #1780132] Wed, 17 January 2018 20:07 Go to next message
reza ahmadi is currently offline reza ahmadiFriend
Messages: 47
Registered: September 2016
Member
Hi,

I had trouble with a plugin on Papyrus-RT with finding in/out messages in a protocol, and now I figured out that Papyrus-RT allows whitespace characters at the end of the protocol's message names (apparently Papyrus-RT does not trim the names). For example in a model one is able to define a protocol P, with messages "m1" and "m2 ". I did not check other cases.
I am using Papyrus-rt 1.0 on a Mac.
Re: whitespace in protocol message name [message #1780452 is a reply to message #1780132] Mon, 22 January 2018 15:58 Go to previous messageGo to next message
Ernesto Posse is currently offline Ernesto PosseFriend
Messages: 438
Registered: March 2011
Senior Member
Was this a problem with the code generator, or was it a problem with some other aspect (e.g. tooling) or was it a problem when you were trying to manipulate a model programatically?
Re: whitespace in protocol message name [message #1780529 is a reply to message #1780452] Tue, 23 January 2018 17:19 Go to previous messageGo to next message
reza ahmadi is currently offline reza ahmadiFriend
Messages: 47
Registered: September 2016
Member
Create a protocol manually and add a message. Name the message "m1 ". There is a space after m1 and there are no immediate validation checks for names. Even it is possible to name the message "m1()".

https://www.dropbox.com/s/tdjmyyd9sh2gq2s/name_protocol.png?dl=0

[Updated on: Tue, 23 January 2018 17:21]

Report message to a moderator

Re: whitespace in protocol message name [message #1780530 is a reply to message #1780529] Tue, 23 January 2018 17:32 Go to previous messageGo to next message
Ernesto Posse is currently offline Ernesto PosseFriend
Messages: 438
Registered: March 2011
Senior Member
Yes, but why exactly is this a problem for you?
Re: whitespace in protocol message name [message #1780551 is a reply to message #1780530] Tue, 23 January 2018 20:49 Go to previous messageGo to next message
reza ahmadi is currently offline reza ahmadiFriend
Messages: 47
Registered: September 2016
Member
Whitespaces in the message name caused a plugin does not find the message (in the protocol) simply since the plugin trims the message names. I understand that no one may trim a message name, but I do not understand why a message name can include any character. I did not check if the code generator complains or not in these cases.
Re: whitespace in protocol message name [message #1780556 is a reply to message #1780551] Tue, 23 January 2018 21:25 Go to previous messageGo to next message
Ernesto Posse is currently offline Ernesto PosseFriend
Messages: 438
Registered: March 2011
Senior Member
When you say "a plugin does not find a message", do you mean a plugin you wrote, a Papyrus plugin, a Papyrus-RT plugin or a third-party plugin? If it is one of the last three, which plugin, and when performing which action?


Re: whitespace in protocol message name [message #1780567 is a reply to message #1780556] Tue, 23 January 2018 23:25 Go to previous messageGo to next message
reza ahmadi is currently offline reza ahmadiFriend
Messages: 47
Registered: September 2016
Member
It's a plugin we wrote. We obviously can fix it. But I still think the tool (Papyrus-RT) should give some validation errors.

[Updated on: Tue, 23 January 2018 23:26]

Report message to a moderator

Re: whitespace in protocol message name [message #1780614 is a reply to message #1780567] Wed, 24 January 2018 15:46 Go to previous message
Ernesto Posse is currently offline Ernesto PosseFriend
Messages: 438
Registered: March 2011
Senior Member
Yes, I think so too. Please open a bug.
Previous Topic:exporting a hierarchical state machine to images
Next Topic:Unable to generate code code with Capsule-TOP
Goto Forum:
  


Current Time: Thu Apr 25 11:21:30 GMT 2024

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

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

Back to the top