Saturday, October 22, 2011

[android-developers] Re: Eclipse, ADT and opening XML files

I'm seeing this behaviour as well. I just had a disk crash and had
to reinstall all of Eclipse and the Android SDK.

Previously I was running Eclipse Helios with the latest Android SDK
and latest ADT (r14). All XML files opened automatically with the
appropriate Android XML helper/editor.

This morning I reinstalled (not the OS, just the dev bits) and put on
Eclipse Indigo along with the same SDK and ADT versions (new installs,
but same versions). Now the XML files only open with the default
Eclipse XML editor. The right-click, open with.. part will open them
with the ADT helpers.

This is also on Windows 7 x64. The new (broken?) behaviour has
persisted across reimporting the project and reinstalling the ADT.

Does anyone know of a switch that can be set or preferences to tweak
or anything that will provide the correct behaviour? I'm wondering if
the behaviour will return if I reinstall Helios but I'm not quite
ready to do that.


On Oct 19, 9:34 am, Kostya Vasilyev <kmans...@gmail.com> wrote:
> With the two recent releases of ADT (it seems), my XML files by default
> don't open with the appropriate Android editor. The editor they open
> with is not the plain text editor, but rather some kind structured
> editor with XML tag highlighting, and a "Design" tab that lists the XML
> file structure.
>
> Earlier, Android layout XML files would open with the ADT layout editor,
> and other Android-specific XML files would open with Android specific
> editors as well. It seems like this broke with ADT 13, or maybe after I
> switched to Eclipse 3.7, I'm not sure.
>
> I tried using Eclipse preferences to associate *.xml files with the
> Android Layout editor, but that affects values/*.xml, menu/*.xml, etc.,
> with very interesting effects.
>
> It is possible to right click on a file and select Open With, but I also
> like to use Ctrl+Shift+R to navigate among my XMLs more quickly.
>
> Is anyone else seeing this? Is there a fix?
>
> Oh, and I just reinstalled Eclipse 3.7.1 Classic from scratch, as well
> as ADT r14. Made no difference. I'm on Windows 7 / 64 bit, which has not
> changed either.
>
> --
> Kostya Vasilyev

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate