Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321747 - [EditorMgmt] File Associations don't work with multiple dots
Summary: [EditorMgmt] File Associations don't work with multiple dots
Status: CLOSED DUPLICATE of bug 168573
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 4.0   Edit
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact: Remy Suen CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-04 11:49 EDT by Greg Martyn CLA
Modified: 2015-09-23 04:28 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***