[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-644) WTP Faces Config editor shows up on *all* .xml files

Denis Golovin (JIRA) jira-events at lists.jboss.org
Tue Aug 14 12:29:38 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBIDE-644?page=comments#action_12372083 ] 
            
Denis Golovin commented on JBIDE-644:
-------------------------------------

>From Slava:

I have problems in trying to solve this bug.
 
If in extension 'org.eclipse.ui.editors' attribute
'extension' or 'filenames' is set, then editor is always
added to 'Open With...' menu for files matching these
values, no matter what contentTypeBinding elements
say.
 
On the other hand, if attributes 'extension' and 'filenames'
are not set, than content of  'Open With...' menu depends
on what content type is computed by Eclipse. And we
cannot always secure that our content type will be returned
by IDE.getContentType(file). For example, for web.xml
it returns org.eclipse.jst.j2ee.webDD;
and for faces-config.xml it returns
org.eclipse.jst.jsf.facesconfig.facesConfigFile.
 
If our content type has as base-type
org.eclipse.core.runtime.xml
than other content types ignore it and our editor
is not included into 'Open With...' menu!
 
I cannot see other solution than to add to editor
declaration contentTypeBinding elements for
possible content types. I tried that for content
types listed above, and it works, but I think it is not
a nice solution. 

> WTP Faces Config editor shows up on *all* .xml files
> ----------------------------------------------------
>
>                 Key: JBIDE-644
>                 URL: http://jira.jboss.com/jira/browse/JBIDE-644
>             Project: JBoss Tools
>          Issue Type: Bug
>          Components: UpStream
>    Affects Versions: 2.0.0.20070731
>            Reporter: Max Andersen
>         Assigned To: Viacheslav Kabanovich
>
> Faces XML Config editor (also Red Hat XML Editor) shows up on all .xml files instead of only those they are related too.
> Can't this be remedied ?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list