Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » Using drag'n'drop results in exception when loading CompleteOCL resource
Using drag'n'drop results in exception when loading CompleteOCL resource [message #1015602] Fri, 01 March 2013 10:52
Klaas Gadeyne is currently offline Klaas Gadeyne
Messages: 94
Registered: July 2009
Member
Hi,

eclipse.buildId=I20130204-1400
java.version=1.6.0_41
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.modeling.product
Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.modeling.product -clean

When I try to use the drag'n'drop mechanism for loading a Complete OCL resource, this results in a resource exception, because the file doesn't exist.

org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: org.eclipse.core.internal.resources.ResourceException: Resource '/Users/kgad/Workspaces/kepler-M5/be.fmtc.ocl.tests/model/components.ocl' does not exist.
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDemandLoadException(ResourceSetImpl.java:319)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:278)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:406)
	at org.eclipse.ocl.examples.xtext.completeocl.ui.commands.LoadCompleteOCLResourceHandler$ResourceDialog.loadCSResource(LoadCompleteOCLResourceHandler.java:195)
	at org.eclipse.ocl.examples.xtext.completeocl.ui.commands.LoadCompleteOCLResourceHandler$ResourceDialog.processResources(LoadCompleteOCLResourceHandler.java:298)
	at org.eclipse.emf.common.ui.dialogs.ResourceDialog.okPressed(ResourceDialog.java:372)
[...]


However, it does exist

$  ls /Users/kgad/Workspaces/kepler-M5/be.fmtc.ocl.tests/model/components.ocl
/Users/kgad/Workspaces/kepler-M5/be.fmtc.ocl.tests/model/components.ocl


And when I use the "browse workspace" button everything works fine.

I'm pretty sure this is a bug, but I'm not sure whether it's an MDT/OCL bug though?

Previous Topic:Generating .oclinecore file from Ecore programmatically
Next Topic:[OCLinEcore] Severity as annotation
Goto Forum:
  


Current Time: Thu Oct 30 13:01:30 GMT 2014

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

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