[jbosstools-issues] [JBoss JIRA] (JBIDE-13297) Prevent from associating xml files to Android xml editor

Viacheslav Kabanovich (JIRA) issues at jboss.org
Wed Jan 29 14:21:28 EST 2014


    [ https://issues.jboss.org/browse/JBIDE-13297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12939846#comment-12939846 ] 

Viacheslav Kabanovich edited comment on JBIDE-13297 at 1/29/14 2:21 PM:
------------------------------------------------------------------------

There are no schemas existing physically for XML files in ADT. Content depends on what UI classes are used by applications. That is why they want to have their Common XML editor to be universal. It seems there is one marker that can help recognize ADT XML files. Root node should declare a namespace with URI starting with "http://schemas.android.com/...". So, a content describer could parse input stream with SAX parser, get namespaces in the root node and  to look for a substring 'schemas.android.com' in them.

Actually, some sections of ADT's Common XML editor, i.e. "Values" and "Tween Animation" work with xml with no namespace at all.
                
      was (Author: scabanovich):
    There are no schemas existing physically for XML files in ADT. Content depends on what UI classes are used by applications. That is why they want to have their Common XML editor to be universal. It seems there is one marker that can help recognize ADT XML files. Root node should declare a namespace with URI starting with "http://schemas.android.com/...". So, a content describer could parse input stream with SAX parser, get namespaces in the root node and  to look for a substring 'schemas.android.com' in them.
                  
> Prevent from associating xml files to Android xml editor
> --------------------------------------------------------
>
>                 Key: JBIDE-13297
>                 URL: https://issues.jboss.org/browse/JBIDE-13297
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: upstream
>    Affects Versions: 4.0.0.Final
>            Reporter: Stefan Bunciak
>            Assignee: Alexey Kazakov
>             Fix For: 4.1.2.Final, 4.2.0.Alpha1
>
>
> After installing the Android Development Tools into JBDS/JBT all xml files gets associated to Android Common Xml Editor, even pom.xml files which we used to open with the Maven POM Editor. This issue was discussed with Burr Sutter on Face2Face that it should be fixed.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list