Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » OCL constraints Extension point
icon5.gif  OCL constraints Extension point [message #1010910] Mon, 18 February 2013 13:16 Go to next message
Walid Ban is currently offline Walid BanFriend
Messages: 53
Registered: January 2013
Member
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...
Re: OCL constraints Extension point [message #1010973 is a reply to message #1010910] Mon, 18 February 2013 15:35 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

You should find that Profile constraint validation is working in the
latest builds

http://www.eclipse.org/downloads/download.php?file=/modeling/mdt/ocl/downloads/drops/4.1.0/N201302180543/mdt-ocl-Update-tools-N201302180543.zip
http://www.eclipse.org/downloads/download.php?file=/modeling/mdt/papyrus/downloads/drops/0.10.0/N201302180813/Papyrus-Update-N201302180813.zip

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...
Re: OCL constraints Extension point [message #1011625 is a reply to message #1010973] Tue, 19 February 2013 23:13 Go to previous messageGo to next message
Walid Ban is currently offline Walid BanFriend
Messages: 53
Registered: January 2013
Member
Hi
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]

And this is the error message when i tried ti install OCL all in one SDK:
Cannot complete the install because one or more required items could not be found.
Software being installed: OCL All-In-One SDK 4.1.0.v20130218-0543 (org.eclipse.ocl.master.feature.group 4.1.0.v20130218-0543)
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)
Cannot satisfy dependency:
From: OCL Examples and Editors 3.3.0.v20130218-0543 (org.eclipse.ocl.examples.feature.group 3.3.0.v20130218-0543)
To: org.eclipse.ocl.examples.codegen.dynamic [1.0.0.v20130118-1326]
Cannot satisfy dependency:
From: OCL All-In-One SDK 4.1.0.v20130218-0543 (org.eclipse.ocl.master.feature.group 4.1.0.v20130218-0543)
To: org.eclipse.ocl.examples.feature.group [3.3.0.v20130218-0543]

(OCL End user and OCL examples and editors are already installed)

I use: Eclipse Modeling Tools
Version: Indigo Service Release 1
Build id: 20110916-0149

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....?
Re: OCL constraints Extension point [message #1011696 is a reply to message #1010973] Wed, 20 February 2013 04:18 Go to previous messageGo to next message
Walid Ban is currently offline Walid BanFriend
Messages: 53
Registered: January 2013
Member
hi,
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..
Re: OCL constraints Extension point [message #1011766 is a reply to message #1011625] Wed, 20 February 2013 08:08 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

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.

Regards

Ed Willink
Re: OCL constraints Extension point [message #1011810 is a reply to message #1011766] Wed, 20 February 2013 09:49 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

The dependency is fixed in the N201302200321 build available now from
https://hudson.eclipse.org/hudson/job/buckminster-mdt-ocl-tools-kepler-master/lastSuccessfulBuild/artifact/MDT-OCL.downloads/
and tomorrow form
http://www.eclipse.org/modeling/mdt/downloads/?project=ocl.
N201302200321 can be installed on Juno provided you also install Xtext 3.3.

Regards

Ed Willink

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.
Re: OCL constraints Extension point [message #1014193 is a reply to message #1011810] Mon, 25 February 2013 10:37 Go to previous messageGo to next message
Walid Ban is currently offline Walid BanFriend
Messages: 53
Registered: January 2013
Member
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 Confused
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....?


Re: OCL constraints Extension point [message #1014219 is a reply to message #1014193] Mon, 25 February 2013 11:40 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

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....?
>
>
>
Previous Topic:Problem installing palette
Next Topic:Kepler Nighly Build confusion
Goto Forum:
  


Current Time: Thu Mar 28 16:59:00 GMT 2024

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

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

Back to the top