[JBoss JIRA] (JBIDE-13297) Prevent from associating xml files to Android xml editor
by Denis Golovin (JIRA)
[ https://issues.jboss.org/browse/JBIDE-13297?page=com.atlassian.jira.plugi... ]
Denis Golovin commented on JBIDE-13297:
---------------------------------------
Why not to just hack it somewhere in IStartup implementation. Good candidate is ModelPluginStartup. Lets check if Webtools Structured XML editor is not default and set it default at first startup.
> 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: Viacheslav Kabanovich
> Fix For: 4.1.2.CR1, 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
12 years, 2 months
[JBoss JIRA] (JBIDE-13297) Prevent from associating xml files to Android xml editor
by Viacheslav Kabanovich (JIRA)
[ https://issues.jboss.org/browse/JBIDE-13297?page=com.atlassian.jira.plugi... ]
Viacheslav Kabanovich commented on JBIDE-13297:
-----------------------------------------------
In discussion, (comment #14) they say that editor will not reformat files outside of Android projects.
However, the editor itself is declared as default for all xml files:
{code}
<editor
class="com.android.ide.eclipse.adt.internal.editors.common.CommonXmlEditor"
contributorClass="com.android.ide.eclipse.adt.internal.editors.common.CommonActionContributor"
default="true"
extensions="xml"
icon="icons/android_file.png"
id="com.android.ide.eclipse.editors.CommonXmlEditor"
matchingStrategy="com.android.ide.eclipse.adt.internal.editors.common.CommonMatchingStrategy"
name="Android Common XML Editor">
</editor>
{code}
Proposing possible solutions, I meant them to be suggested to ADT, but I stated that both proposals have drawbacks that may prevent ADT team from accepting them. The first suggestion is most consistent, but it would require from ADT a framework change to bind a namespace to each ADT relevant xml.
As for a patch, we would be quite satisfied with just removing default="true". In this case, user would have once change in File Associations the default xml editor from WTP's to ADT's one.
> 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: Viacheslav Kabanovich
> Fix For: 4.1.2.CR1, 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
12 years, 2 months