Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 Tools » UML diagram validation
UML diagram validation [message #625383] Mon, 07 December 2009 14:15
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member

I'm registering a custom validator for the UML2 EPackage in
EValidator.Registry.INSTANCE in an early-start plugin.

When I attempt to register my validator in my earlyStartup() method,
EValidator.Registry.INSTANCE already contains an instance of
org.eclipse.uml2.uml.util.UMLValidator. In order not to disregard it, I
have created a composite validator [1] that invokes both the custom and
the existing validator. So far so good.

However, when I right-click inside the UML2Tools class diagram editor
and select "Validate", the previously registered composite validator in
EValidator.Registry.INSTANCE is replaced/overwritten with an instance of
org.eclipse.uml2.diagram.common.validation.UML2ToolsValidato r - and as
such my custom validator never gets invoked.

Any thoughts on this?


[1] lon/trunk/plugins/org.eclipse.epsilon.evl.emf.validation/src /org/eclipse/epsilon/evl/emf/validation/CompositeEValidator. java
Previous Topic:UML diagram validation
Next Topic:How to build uml2 tools?
Goto Forum:

Current Time: Fri May 25 09:24:01 GMT 2018

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

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

Back to the top