| 
| OCLConstraintProvider customization [message #50201] | Fri, 01 February 2008 08:41  |  | 
| Eclipse User  |  |  |  |  | Hello, 
 My question is continuing on the following:
 http://www.eclipse.org/newsportal/article.php?id=1045&gr oup=eclipse.modeling.mdt.ocl#1045
 
 The getConstraints() of ModelValidationService seems only be called once.
 I am still not find a way to update the constraintCache inside the
 ModelValidationService.
 
 I tried to write a my own ModelValidationService, but it need the elements
 to configureProviders(IConfigurationElement[] elements).
 
 I want users can change the .ocl file to do validation again without
 restart the eclipse.
 Could you tell me is there any way to do it Or it not impossible at moment.
 
 
 Thank you in advance.
 wong.
 |  |  |  | 
| 
| Re: OCLConstraintProvider customization [message #50262 is a reply to message #50201] | Fri, 01 February 2008 09:09   |  | 
| Eclipse User  |  |  |  |  | Originally posted by: cdamus.ca.ibm.com 
 Hi, Wong,
 
 In my reply on that other thread, I said:
 
 -----8<-----
 
 If your provider is registered in the plugin.xml using cache="false" in the
 <constraintProvider> element, then the framework should not be adding it to
 the ConstraintCache provider that caches constraints.
 
 If this is happening to your provider, then that is a severe bug.  In that
 case, a bugzilla with a reproducible test case would be much appreciated.
 
 ----->8-----
 
 Cheers,
 
 Christian
 
 
 wong wrote:
 
 > Hello,
 >
 > My question is continuing on the following:
 >
 http://www.eclipse.org/newsportal/article.php?id=1045&gr oup=eclipse.modeling.mdt.ocl#1045
 >
 > The getConstraints() of ModelValidationService seems only be called once.
 > I am still not find a way to update the constraintCache inside the
 > ModelValidationService.
 >
 > I tried to write a my own ModelValidationService, but it need the elements
 > to configureProviders(IConfigurationElement[] elements).
 >
 > I want users can change the .ocl file to do validation again without
 > restart the eclipse.
 > Could you tell me is there any way to do it Or it not impossible at
 > moment.
 >
 >
 > Thank you in advance.
 > wong.
 |  |  |  | 
|  | 
|  | 
| 
| Re: OCLConstraintProvider customization [message #50346 is a reply to message #50322] | Fri, 01 February 2008 13:28  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: cdamus.ca.ibm.com 
 Hi, Wong,
 
 Good!  I'm glad it's working for you, now.
 
 I think this problem with the initial digit is probably more of an issue in
 the parser grammar than it is a violation of any naming rules in OCL/UML
 (there generally aren't any).  Probably not worth worrying about  :-)
 
 cW
 
 wong wrote:
 
 > Hello, Christian.
 >
 > I got it works. Thank you so much.
 >
 > All my bad. I set the inv name started with digit. So it did not work.
 > "inv 1rule: self.courseGoals->notEmpty()"
 >
 > I really appreciate your help.
 >
 > Thank you very much.
 >
 > Wong.
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.04098 seconds