Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Project level model constraints(How to implement Project level constraint)
icon5.gif  Project level model constraints [message #1722721] Mon, 08 February 2016 15:11 Go to next message
Umesh Thakare is currently offline Umesh ThakareFriend
Messages: 12
Registered: February 2016
Junior Member
Hi,

We have model validation constraints which appears under (Preferences-->Model Validation-->Constriants). These constraints can be enabled disabled and the setting is stored at workspace level means any modification to constraints is applicicabe to all project in that workspace . Now our requirement is that user should able to configure constraints at project level also. Like we have Java-->compiler setting..user can configure it project level..

let me know if any one need more information
Re: Project level model constraints [message #1727437 is a reply to message #1722721] Wed, 23 March 2016 07:14 Go to previous messageGo to next message
Umesh Thakare is currently offline Umesh ThakareFriend
Messages: 12
Registered: February 2016
Junior Member
Please reply if anyone has implemented such feature
Re: Project level model constraints [message #1727529 is a reply to message #1722721] Wed, 23 March 2016 14:28 Go to previous messageGo to next message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

Hi,

I doubt that any project apart from the EMF Validation Framework
project could reasonably implement this feature, as it would require
the framework to load preferences from the project scope. Probably you
should raise an enhancement request in bugzilla. And probably also
provide a Gerrit patch contributing an implementation ...

Cheers,

Christian

On 2016-02-08 18:32:03 +0000, Umesh Thakare said:

> Hi,
>
> We have model validation constraints which appears under
> (Preferences-->Model Validation-->Constriants). These constraints can
> be enabled disabled and the setting is stored at workspace level means
> any modification to constraints is applicicabe to all project in that
> workspace . Now our requirement is that user should able to configure
> constraints at project level also. Like we have Java-->compiler
> setting..user can configure it project level..
>
> let me know if any one need more information
Re: Project level model constraints [message #1727537 is a reply to message #1727529] Wed, 23 March 2016 15:08 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

You might want to look at the Complete OCL Registry
org.eclipse.ocl.xtext.completeocl.complete_ocl_registry extension point.

This is former Topcased functionality that Obeo helped contribute back
to Eclipse OCL.

It allows a Complete OCL document to be registered for use with a given
namespace. It has been tested but not widely used. Perhaps it could be
improved.

Regards

Ed Willink


On 23/03/2016 14:28, Christian W. Damus wrote:
> Hi,
>
> I doubt that any project apart from the EMF Validation Framework
> project could reasonably implement this feature, as it would require
> the framework to load preferences from the project scope. Probably you
> should raise an enhancement request in bugzilla. And probably also
> provide a Gerrit patch contributing an implementation ...
>
> Cheers,
>
> Christian
>
> On 2016-02-08 18:32:03 +0000, Umesh Thakare said:
>
>> Hi,
>>
>> We have model validation constraints which appears under
>> (Preferences-->Model Validation-->Constriants). These constraints
>> can be enabled disabled and the setting is stored at workspace level
>> means any modification to constraints is applicicabe to all project
>> in that workspace . Now our requirement is that user should able to
>> configure constraints at project level also. Like we have
>> Java-->compiler setting..user can configure it project level..
>>
>> let me know if any one need more information
>
>
Previous Topic:Creating a new Resource Type
Next Topic:[CDO] Error running CDO server with Oracle DB
Goto Forum:
  


Current Time: Fri Apr 19 12:28:24 GMT 2024

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

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

Back to the top