Hi Vincent
I think you need a separate editor for each language name with an
extension point defining the mapping from language name to editor.
Perhaps file extension mappings provide a default.
The MDT/OCL EssentialOCL Xtext editor is intended to satisfy precisely
this role; it just needs a few APIs to be resolved.
Regards
Ed Willink
On 17/08/2010 07:53, Vincent H wrote:
Hello,
I thinks that these problems comes from a
lack of functionnality in papyrus.
A value specification can be attached to a constraint. By defaut this
is a
string expresssion.
I also think a feature is lacking in Papyrus.
I think we really need a generic editor to create and edit all kind of
ValueSpecification.
And I mean all of them, not only a string _expression_ or an OCL
_expression_. I think this editor should open as a popup window when
trying to edit a value _expression_ (as by direct edit on a displaying
"{...}" label). Then, it should suggest all correct possibilities to
edit/complete the value specification. (with creation of necessary
elements on the fly)
Of course, such an editor is not a light task, but an heavy backbone
task which would benefit all Papyrus diagrams. It needs to be
specified, and suggested to the community for eventual remarks before
implementation.
This should answer at least point d.
> d) The Specification field allows
only selection of literals already
> defined; no ability to create a new OCL _expression_.
An other example of this need :
In Sequence diagram, to edit a TimeConstraint or a DurationConstraint :
By direct editing the label :
- we are currently able to edit only the name of the constraint (which
has no sense, but it was the least stupid thing to do without an
adequate editor).
- instead, with this ideal feature, we should have the editor opened.
This editor would allow to edit a TimeInterval (for a TimeConstraint)
or a DurationInterval (for a DurationConstraint).
Have you ever tried to create by hand a TimeInterval, a
DurationInterval or even a complex TimeExpression, you would know this
is a really painful task. We can not expect users to create such
complex ValueSpecification elements by hand.
Regards,
Vincent.
_______________________________________________
mdt-papyrus.dev mailing list
mdt-papyrus.dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/mdt-papyrus.dev
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.851 / Virus Database: 271.1.1/3075 - Release Date: 08/16/10 07:35:00
|