Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMFStore] ESWorkspace.getLocalProject(eObject obj) throws uncatchable exception
[EMFStore] ESWorkspace.getLocalProject(eObject obj) throws uncatchable exception [message #1430728] Wed, 24 September 2014 18:39 Go to next message
Roza Ghamari is currently offline Roza GhamariFriend
Messages: 82
Registered: January 2013
I opened a ticket for this but wanted to post the question here as well incase anyone can help.

I am trying to find the ESLocalProject for an object that I have, and I am trying to call ESWorkspace.getLocalProject(eObject obj). However, when this method is not working when object is not in any projects. The method could return null but instead it throw the following exception which I cannot catch in a try-catch statement for Exception ex. What do I need to do in this case?

org.eclipse.emf.emfstore.internal.client.model.exceptions.UnkownProjectException: Unkown project, not part of the workspace
at org.eclipse.emf.emfstore.internal.client.model.impl.WorkspaceBase.getProjectSpace(
at org.eclipse.emf.emfstore.internal.client.model.impl.api.ESWorkspaceImpl$
at org.eclipse.emf.emfstore.internal.client.model.impl.api.ESWorkspaceImpl$
at org.eclipse.emf.emfstore.client.util.RunESCommand$2.doRun(
at org.eclipse.emf.emfstore.internal.client.model.util.EMFStoreCommandWithResult.commandBody(
at org.eclipse.emf.emfstore.internal.client.model.util.AbstractEMFStoreCommand.execute(
at org.eclipse.emf.common.command.BasicCommandStack.execute(
at org.eclipse.emf.emfstore.internal.client.model.changeTracking.commands.EMFStoreBasicCommandStack.execute(
at org.eclipse.emf.emfstore.internal.client.model.util.AbstractEMFStoreCommand.aRun(
at org.eclipse.emf.emfstore.client.util.RunESCommand.runWithResult(
at org.eclipse.emf.emfstore.internal.client.model.impl.api.ESWorkspaceImpl.getLocalProject(
Re: [EMFStore] ESWorkspace.getLocalProject(eObject obj) throws uncatchable exception [message #1431123 is a reply to message #1430728] Thu, 25 September 2014 08:33 Go to previous message
Johannes Faltermeier is currently offline Johannes FaltermeierFriend
Messages: 96
Registered: December 2013


I pushed a fix to return null when a project cannot be found. For more information, see the ticket.


Johannes Faltermeier

Get professional Eclipse developer support:
Previous Topic:[EMFStore] Renaming/ Refactoring a shared project
Next Topic:[EMFTransaction] EMF Transaction in a web app
Goto Forum:

Current Time: Fri Apr 03 11:57:21 GMT 2020

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

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

Back to the top