Sunday, October 23, 2011

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

I appeared to have fixed although I'm not sure exactly why.

I closed all the projects in the workspace. Then I uninstalled any
ADT components. After the Eclipse restart, I removed the ADT software
source from the list of sources, exited out of all the dialogs, and
added it back again (mostly just paranoia here I'm thinking). I then
went back in to add software and added all the available ADT
components at once.

After a restart and reopening the project, the XML now opens in the
appropriate ADT editor.


On Oct 22, 10:58 pm, Walt Armour <waltarm...@gmail.com> wrote:
> I'm seeing this behaviour as well.   I just had a disk crash and had
> to reinstall all ofEclipseand the Android SDK.
>
> Previously I was runningEclipseHelios with the latest Android SDK
> and latestADT(r14).  AllXMLfiles opened automatically with the
> appropriate AndroidXMLhelper/editor.
>
> This morning I reinstalled (not the OS, just the dev bits) and put onEclipseIndigo along with the same SDK andADTversions (new installs,
> but same versions).  Now theXMLfiles only open with the defaultEclipseXMLeditor.  The right-click, open with.. part will open them
> with theADThelpers.
>
> This is also on Windows 7 x64.  The new (broken?) behaviour has
> persisted across reimporting the project and reinstalling theADT.
>
> 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 ofADT(it seems), myXMLfiles 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 withXMLtag highlighting, and a "Design" tab that lists theXML
> > file structure.
>
> > Earlier, Android layoutXMLfiles would open with theADTlayout editor,
> > and other Android-specificXMLfiles would open with Android specific
> > editors as well. It seems like this broke withADT13, or maybe after I
> > switched toEclipse3.7, I'm not sure.
>
> > I tried usingEclipsepreferences to associate *.xmlfiles 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 reinstalledEclipse3.7.1 Classic from scratch, as well
> > asADTr14. 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