[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] cannot convert from URI to URI

Hello everybody!!

I am having a problem with URI, and if somebody could help me, it would be 
greatful. First, I have to say that I am not sure if this question should be 
in this newsgroup; if it should be somewhere else, I am sorry.

I have get the current workspace, the root... and now, I want to get the 
URI, to use it later. But the problem is that I get next error: "Cannot 
convert URI to URI". Can anybody help me?

This is my code:

//getting the workspace

IWorkspace myWorkspace = 
org.eclipse.core.resources.ResourcesPlugin.getWorkspace();


//getting the root of the workspace

IWorkspaceRoot myWorkspaceRoot = myWorkspace.getRoot();



//getting and creating the path to store the diagram

URI myPath = myWorkspaceRoot.getLocation(); //URI is from 
org.eclipse.emf.common util

Thank you in advance, and sorry because of my poor English.

Aritz