|Customize EssentialOCL editor [message #872050]
||Tue, 15 May 2012 11:32
| Matthias Erche
Registered: July 2009
I've successfully integrated the EssentialOCL xtext editor using org.eclipse.xtext.ui.editor.embedded.EmbeddedEditor in an example application. I use org.eclipse.ocl.examples.xtext.essentialocl.ui.model.BaseDocument.setContext(...) to define the classifier context of the OCL expression.
Everything is working fine except that I only can use classes, attributes and operations coming from the same EPackage the classifier context is contained in. The content assist doesn't show elements from other registered EPackages and when I try to use such elements in the OCL expression I get "Unresolved namespace" and "Unresolved property" errors.
Is there a way to register the contents of other EPackages?
I'm using MDT OCL 3.1.2a and XText 2.2.1
[Updated on: Tue, 15 May 2012 11:34]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.05015 seconds