Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Entering Hex values in numerical attributes
Entering Hex values in numerical attributes [message #1386975] Mon, 23 June 2014 11:01 Go to next message
Eclipse UserFriend
Dear all,
I woinder if it is possible to enter hexadecimal number in Papyrus,
especially in tagged values for profiles.

Greetings,

Victor
Re: Entering Hex values in numerical attributes [message #1386996 is a reply to message #1386975] Mon, 23 June 2014 12:38 Go to previous message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

Hi, Victor,

Yes, it is possible with some work. :-)

You can use the Property Sheet Customization framework to define custom
property-sheet widgets for the attributes of the stereotypes in your
profiles. The widgets (usually text fields for numeric attributes)
provided by Papyrus expect decimal literals, but you can create your
own widgets that understand hex literals and register them with the
framework.

have a look at how the org.eclipse.papyrus.views.properties plug-in
registers the Papyrus-provided widgets as Property Editor Types in an
environment model on the
org.eclipse.papyrus.views.properties.environment extension point. You
can define your custom widgets in your own environment, reference that
environment in your properties context model (generated from your
profile using the New Property View Configuration wizard), and bind the
widgets that it defines to property views in your context model.

Hopefully this gives you a place to start.

Christian

On 2014-06-23 11:01:33 +0000, V. López said:

> Dear all,
> I woinder if it is possible to enter hexadecimal number in Papyrus,
> especially in tagged values for profiles.
>
> Greetings,
>
> Victor
Previous Topic:Generated diagram edit policy discards most of the semantic edit command
Next Topic:Need the source code of MARTE
Goto Forum:
  


Current Time: Fri Mar 29 13:06:15 GMT 2024

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

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

Back to the top