Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How to convert a URI to another URI format(I want to save project in URI format that I want, but failed. )
How to convert a URI to another URI format [message #1597434] Mon, 02 February 2015 09:35
yi zhou is currently offline yi zhouFriend
Messages: 2
Registered: February 2015
Junior Member
I want to save URI in the format below.
" href="MARTE.profile.xml#_3SSvMKqXEeSeJNQQRi89ZA""

However, the result is like below.
"href="../git/learning-uml2/src/main/resources/papyrus/MARTE.profile.uml#_3SSvMKqXEeSeJNQQRi89ZA""

My source code is below.

URI uri = URI.createFileURI(filename);
resource.setURI(uri);
resource.save(null);

Thanks.
Previous Topic:Problem Doing Basic Tutorial with Mac, Eclipse Luna and Java8
Next Topic:Read-only Workspace
Goto Forum:
  


Current Time: Fri Apr 19 03:49:21 GMT 2024

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

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

Back to the top