|
Re: Entering Hex values in numerical attributes [message #1386996 is a reply to message #1386975] |
Mon, 23 June 2014 12:38 |
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02883 seconds