Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 321747

Summary: [EditorMgmt] File Associations don't work with multiple dots
Product: [Eclipse Project] Platform Reporter: Greg Martyn <greg.martyn>
Component: IDEAssignee: Platform UI Triaged <platform-ui-triaged>
Status: CLOSED DUPLICATE QA Contact: Remy Suen <remy.suen>
Severity: normal    
Priority: P3 CC: chris.ingham, dvdgsng
Version: 4.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Greg Martyn CLA 2010-08-04 11:49:38 EDT
Build Identifier: 20100617-1415

Where I work, template files use the extension .html.smarty

I would like to associate that with the HTML editor (as no Smarty editor exists), but Preferences => General => Editors => File Associations won't let me add "*.html.smarty". The Content Types page lets me add that to Text => HTML, but the files don't open in the html editor.

Reproducible: Always

Steps to Reproduce:
See details. Can't associate html editor with *.html.smarty files
Comment 1 Chris Ingham CLA 2010-08-30 17:21:03 EDT
Same issue here - I'd like to associate *.hbm.xml files with the Hibernate 3.0 XML Editor.

When I got no love from Preferences...File Associations, I tried exporting and re-importing a preferences file, where I hand-edited both the extension and name attributes in the (truncated) following line: 

/instance/org.eclipse.ui.workbench/resourcetypes=<?xml version\="1.0" encoding\="UTF-8"?>\r\n<editors version\="3.1">[...]\r\n<info extension\="hbm.xml" name\="*">\r\n<editor id\="org.jboss.tools.hibernate.ui.xml.editor.Hibernate3CompoundEditor"/>\r\n<defaultEditor id\="org.jboss.tools.hibernate.ui.xml.editor.Hibernate3CompoundEditor"/>\r\n</info>\r\n[...]</editors>

I tried the following attribute value combinations:

extension\="xml" name\="*hbm"
extension\="xml" name\="*.hbm"
extension\="hbm.xml" name\="*"

With this I was able to get entries to show up in the Preferences dialog, but not actually work.

Bug 168573 (VERY old :( ) is a duplicate of this bug, and Bug 142426 is strongly related (and also demonstrated above).
Comment 2 Remy Suen CLA 2010-11-08 10:42:05 EST

*** This bug has been marked as a duplicate of bug 168573 ***