OCL constraints Extension pointhttps://www.eclipse.org/forums/index.php/mv/msg/454609/1010910/#msg_1010910
I'm wondering if there is a way to create a plugin in which i can add the extension point "org.eclipse.emf.validation.constraintProviders", export it and install it exactely like "Palette customization" plugin(when you create your own local palette and then export it and install it).
My purpose is to validate OCL constraints created in a profile. Papyrus v 0.8.2 can't validate them and unfortunately, i can't wait until the Kepler version (June 2013)!
So, i proposed to add the constraints through the extension point "org.eclipse.emf.validation.constraintProviders".
Is what i want to do is right and possible?
Thank you...]]>Walid Ban2013-02-18T13:16:25-00:00Re: OCL constraints Extension pointhttps://www.eclipse.org/forums/index.php/mv/msg/454609/1010973/#msg_1010973
You should find that Profile constraint validation is working in the
latest builds

however the maintenance of the Problem View markers is imperfect. You
may need to manually delete stale markers. Hopefully we can sort out
these minor issues this week.

[Just gave these builds a try, and it's not working!]

Given the number of minor problems that have arisen, I don't recommend
trying to replicate the fixes we have done. Amongst other problems, you
need to handle the irregular XMI and consequently Ecore representation
of a Stereotype instance; all other instances are regular UML elements.

You can certainly add constraints using the extension point
"org.eclipse.emf.validation.constraintProviders" and you will end up
with something like
org.eclipse.ocl.examples.pivot.uml.UMLProfileConstraintProvider and its
associated classes.

You will probably find that your time is spent more fruitfully helping
us to debug the new functionality rather than trying to replicate it.

Regards

Ed Willink

On 18/02/2013 13:16, Walid Ban wrote:
> Hello,
> I'm wondering if there is a way to create a plugin in which i can add
> the extension point "org.eclipse.emf.validation.constraintProviders",
> export it and install it exactely like "Palette customization"
> plugin(when you create your own local palette and then export it and
> install it).
> My purpose is to validate OCL constraints created in a profile.
> Papyrus v 0.8.2 can't validate them and unfortunately, i can't wait
> until the Kepler version (June 2013)!
> So, i proposed to add the constraints through the extension point
> "org.eclipse.emf.validation.constraintProviders". Is what i want to do
> is right and possible?
> Thank you...]]>Ed Willink2013-02-18T15:35:09-00:00Re: OCL constraints Extension pointhttps://www.eclipse.org/forums/index.php/mv/msg/454609/1011625/#msg_1011625
thank you for your answer...
I tried to install Papyrus last update that you gave me but i couldn't. Here's the error message:
Cannot complete the install because one or more required items could not be found.
Software being installed: Papyrus UML (Incubation) 0.10.0.v201302181323 (org.eclipse.papyrus.sdk.feature.feature.group 0.10.0.v201302181323)
Missing requirement: Papyrus Palette Customization (Incubation) 0.10.0.v201302181323 (org.eclipse.papyrus.customization.palette 0.10.0.v201302181323) requires 'bundle org.eclipse.core.runtime 3.8.0' but it could not be found
Cannot satisfy dependency:
From: Papyrus customization (Incubation) 0.10.0.v201302181323 (org.eclipse.papyrus.customization.feature.feature.group 0.10.0.v201302181323)
To: org.eclipse.papyrus.customization.palette [0.10.0.v201302181323]
Cannot satisfy dependency:
From: Papyrus UML (Incubation) 0.10.0.v201302181323 (org.eclipse.papyrus.sdk.feature.feature.group 0.10.0.v201302181323)
To: org.eclipse.papyrus.customization.feature.feature.group [0.10.0.v201302181323]

By the way, I found that discussion: http://www.eclipse.org/forums/index.php/m/1001964/ very usefull and interresting for me because what André Ribeiro wants is exactely what i want too..
Could you help me please....?
]]>Walid Ban2013-02-19T23:13:31-00:00Re: OCL constraints Extension pointhttps://www.eclipse.org/forums/index.php/mv/msg/454609/1011696/#msg_1011696
sorry, i forgot to install the kepler version before the installation of ocl and papyrus update..I'll give a try to see if "validate" works or not..]]>Walid Ban2013-02-20T04:18:42-00:00Re: OCL constraints Extension pointhttps://www.eclipse.org/forums/index.php/mv/msg/454609/1011766/#msg_1011766
On 19/02/2013 23:13, Walid Ban wrote:
> Missing requirement: OCL Examples OCL Code Generator
> 1.1.0.v20130208-2107 (org.eclipse.ocl.examples.codegen
> 1.1.0.v20130208-2107) requires 'bundle org.eclipse.jdt.annotation
> 1.0.0' but it could not be found
> Cannot satisfy dependency:
> From: OCL Examples Dynamic OCL Code Generator 1.0.0.v20130118-1326
> (org.eclipse.ocl.examples.codegen.dynamic 1.0.0.v20130118-1326)
> To: bundle org.eclipse.ocl.examples.codegen [1.1.0,2.0.0)
org.eclipse.jdt.annotation provides @NonNull and @Nullable support at
compile-time. Not perfect, but very useful. Bundled with Eclipse as from
M5. Prior to that it is installable from links on http://wiki.eclipse.org/JDT_Core/Null_Analysis/Beta.

However it is a compile-time dependency, so I need to fix the spurious
appearance as a run-time requirement.

On 20/02/2013 08:08, Ed Willink wrote:
> On 19/02/2013 23:13, Walid Ban wrote:
>> Missing requirement: OCL Examples OCL Code Generator
>> 1.1.0.v20130208-2107 (org.eclipse.ocl.examples.codegen
>> 1.1.0.v20130208-2107) requires 'bundle org.eclipse.jdt.annotation
>> 1.0.0' but it could not be found
>> Cannot satisfy dependency:
>> From: OCL Examples Dynamic OCL Code Generator 1.0.0.v20130118-1326
>> (org.eclipse.ocl.examples.codegen.dynamic 1.0.0.v20130118-1326)
>> To: bundle org.eclipse.ocl.examples.codegen [1.1.0,2.0.0)
>
> However it is a compile-time dependency, so I need to fix the spurious
> appearance as a run-time requirement.]]>Ed Willink2013-02-20T09:49:34-00:00Re: OCL constraints Extension pointhttps://www.eclipse.org/forums/index.php/mv/msg/454609/1014193/#msg_1014193
Thank Ed for all your Help!
As i said before, my purpose is to create and validate OCL constraints and as Papyrus doesn't support OCL constraints validation until now, i tried to found another solution!
I tried to use Papyrys M5 (Eclipse Kepler)as you said, probably the validation works, but i found that it doesn't support the Palette customization Extension point. (http://www.eclipse.org/forums/index.php/t/457022/). so, i didn't even think to try if OCL validation works or not
So, probably, fixing this bug takes time and unfortunately, i don't have so much time..

So, i want to apply the other solution: "org.eclipse.emf.validation.constraintProviders" Extension Point
Could you advice me please:

- If i must modify the Papyrus source code and go for example to "/Papyrus_Branch_0.9.X/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz", open the Plugin XML file, and Add "org.eclipse.emf.validation.constraintProviders" Extension Point and put the constraints...

- Or create an empty plugin project, open the XML file Add "org.eclipse.emf.validation.constraintProviders" Extension Point and put the constraints. After that, export and install the plugin.

I didn't find any Tutoriel of what and how exactely to do, i found only what to write inside the XML file (inside the markers category, constraints, constraints,...)

I hope that you unserdtand me..Could you Help me please....?

]]>Walid Ban2013-02-25T10:37:51-00:00Re: OCL constraints Extension pointhttps://www.eclipse.org/forums/index.php/mv/msg/454609/1014219/#msg_1014219
I'm sorry, but if you want to work to backport new functionality, you
must do it yourself. It will not be easy and I do not have time to help
in what I consider to be a foolish enterprise.

Regards

Ed Willink

On 25/02/2013 10:37, Walid Ban wrote:
> Hi,
> Thank Ed for all your Help!
> As i said before, my purpose is to create and validate OCL constraints
> and as Papyrus doesn't support OCL constraints validation until now, i
> tried to found another solution!
> I tried to use Papyrys M5 (Eclipse Kepler)as you said, probably the
> validation works, but i found that it doesn't support the Palette
> customization Extension point.
> (http://www.eclipse.org/forums/index.php/t/457022/). so, i didn't even
> think to try if OCL validation works or not :? So, probably, fixing
> this bug takes time and unfortunately, i don't have so much time..
>
> So, i want to apply the other solution:
> "org.eclipse.emf.validation.constraintProviders" Extension Point
> Could you advice me please:
>
> - If i must modify the Papyrus source code and go for example to
> "/Papyrus_Branch_0.9.X/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz",
> open the Plugin XML file, and Add
> "org.eclipse.emf.validation.constraintProviders" Extension Point and
> put the constraints...
>
> - Or create an empty plugin project, open the XML file Add
> "org.eclipse.emf.validation.constraintProviders" Extension Point and
> put the constraints. After that, export and install the plugin.
>
> I didn't find any Tutoriel of what and how exactely to do, i found
> only what to write inside the XML file (inside the markers category,
> constraints, constraints,...)
>
> I hope that you unserdtand me..Could you Help me please....?
>
>
>]]>Ed Willink2013-02-25T11:40:26-00:00