Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » EMF Compare : contentType for .xml extension
EMF Compare : contentType for .xml extension [message #539050] Wed, 09 June 2010 13:28 Go to next message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
Hi,

I follow the EMF compare instructions to allow my resource to be
associated with the EMF Compare contenttype.


<extension
point="org.eclipse.core.contenttype.contentTypes">
<file-association

content-type="org.eclipse.emf.compare.ui.contenttype.ModelContentType "
file-extensions="xml"
file-names="*.hbm"/>
</extension>


My resource filename pattern is *.hbm.xml. This it seems is however not
picked-up by the platform as I don't see this definition in the EMF
Compare preferences.

Any ideas, how to make EMF Compare recognize my resources?

thanks Christophe
Re: EMF Compare : contentType for .xml extension [message #539098 is a reply to message #539050] Wed, 09 June 2010 15:17 Go to previous message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------030606040204070902000904
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi Christophe,

We've never been faced with this kind of filename patterns before ...
yet it should work as it is allowed by Eclipse (Window => Preferences =>
General => content-types => you can add the pattern "*.hbm.xml" in there).

I believe you should be able to use something like this instead :

<extension point="org.eclipse.core.contenttype.contentTypes">
<file-association
content-type="org.eclipse.emf.compare.ui.contenttype.ModelContentType "
file-extensions=".hbm.xml"
file-names="*"/>
</extension>

Would that do the trick?

Laurent Goubet
Obeo

Christophe Bouhier wrote:
> Hi,
>
> I follow the EMF compare instructions to allow my resource to be
> associated with the EMF Compare contenttype.
>
>
> <extension
> point="org.eclipse.core.contenttype.contentTypes">
> <file-association
>
> content-type="org.eclipse.emf.compare.ui.contenttype.ModelContentType "
> file-extensions="xml"
> file-names="*.hbm"/>
> </extension>
>
>
> My resource filename pattern is *.hbm.xml. This it seems is however not
> picked-up by the platform as I don't see this definition in the EMF
> Compare preferences.
>
> Any ideas, how to make EMF Compare recognize my resources?
>
> thanks Christophe
>
>


--------------030606040204070902000904
Content-Type: text/x-vcard; charset=utf-8;
name="laurent_goubet.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="laurent_goubet.vcf"

begin:vcard
fn:Laurent Goubet
n:Goubet;Laurent
org:<a href="http://www.obeo.fr">Obeo</a>
email;internet:laurent.goubet@obeo.fr
url:http://www.obeo.fr
version:2.1
end:vcard


--------------030606040204070902000904--
Previous Topic:[CDO] Problem with CDOStore.contains()
Next Topic:AnyType xmi id
Goto Forum:
  


Current Time: Sat Apr 27 04:32:45 GMT 2024

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

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

Back to the top