Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Convert IFile to URI
Convert IFile to URI [message #468403] Wed, 05 August 2009 12:52 Go to next message
Eclipse UserFriend
Originally posted by: formatzeh.gmx.de

For executing a QVT transformationm programmatically I need a
org.eclipse.emf.common.util.URI. From the active editor I can get its
input file. But this is an IFile. Now I need to convert the IFile to an
org.eclipse.emf.common.util.URI. Are there any utility functions or do I
have to implement it by my self?
Re: Convert IFile to URI [message #468405 is a reply to message #468403] Wed, 05 August 2009 13:12 Go to previous messageGo to next message
Romain Dervaux is currently offline Romain DervauxFriend
Messages: 40
Registered: July 2009
Member
This method will help you i think :

org.eclipse.emf.common.util.URI#createFileURI(String)



Gilbert Mirenque a écrit :
> For executing a QVT transformationm programmatically I need a
> org.eclipse.emf.common.util.URI. From the active editor I can get its
> input file. But this is an IFile. Now I need to convert the IFile to an
> org.eclipse.emf.common.util.URI. Are there any utility functions or do I
> have to implement it by my self?
Re: Convert IFile to URI [message #468419 is a reply to message #468405] Wed, 05 August 2009 13:25 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33216
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------020304010508060702080300
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

Guys,

Not surprisingly, there is a FAQ for this:

http://wiki.eclipse.org/index.php/EMF/FAQ#How_do_I_map_betwe en_an_EMF_Resource_and_an_Eclipse_IFile.3F


Romain Dervaux wrote:
> This method will help you i think :
>
> org.eclipse.emf.common.util.URI#createFileURI(String)
>
>
>
> Gilbert Mirenque a écrit :
>> For executing a QVT transformationm programmatically I need a
>> org.eclipse.emf.common.util.URI. From the active editor I can get its
>> input file. But this is an IFile. Now I need to convert the IFile to an
>> org.eclipse.emf.common.util.URI. Are there any utility functions or do I
>> have to implement it by my self?

--------------020304010508060702080300
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Guys,<br>
<br>
Not surprisingly, there is a FAQ for this:<br>
<blockquote><a
href=" http://wiki.eclipse.org/index.php/EMF/FAQ#How_do_I_map_betwe en_an_EMF_Resource_and_an_Eclipse_IFile.3F"> http://wiki.eclipse.org/index.php/EMF/FAQ#How_do_I_map_betwe en_an_EMF_Resource_and_an_Eclipse_IFile.3F</a><br>
</blockquote>
<br>
Romain Dervaux wrote:
<blockquote cite="mid:h5c0fg$hte$1@build.eclipse.org" type="cite">This
method will help you i think :
<br>
<br>
org.eclipse.emf.common.util.URI#createFileURI(String)
<br>
<br>
<br>
<br>
Gilbert Mirenque a écrit :
<br>
<blockquote type="cite">For executing a QVT transformationm
programmatically I need a
<br>
org.eclipse.emf.common.util.URI. From the active editor I can get its
<br>
input file. But this is an IFile. Now I need to convert the IFile to an
<br>
org.eclipse.emf.common.util.URI. Are there any utility functions or do
I
<br>
have to implement it by my self?
<br>
</blockquote>
</blockquote>
</body>
</html>

--------------020304010508060702080300--


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Convert IFile to URI [message #478163 is a reply to message #468419] Thu, 06 August 2009 08:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: formatzeh.gmx.de

thanks
Re: Convert IFile to URI [message #721734 is a reply to message #478163] Fri, 02 September 2011 17:23 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14716
Registered: July 2009
Senior Member
sorry wrong topic

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Fri, 02 September 2011 17:24]

Report message to a moderator

Previous Topic:[CDO] Branches created in an offline clone
Next Topic:EMF editors keeps showing stale data and there's a danger of losing edits!
Goto Forum:
  


Current Time: Fri Sep 20 09:16:05 GMT 2024

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

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

Back to the top