In addition to this very valid warning, you don't actually need to call any class from ADT.
All you need to do is set the default editor for your XML files to be the layout editor provided by ADT: org.eclipse.ui.ide.IDE.setDefaultEditor(file,"com.android.ide.eclipse.editors.layout.LayoutEditor"); and then just ask Eclipse to open your file using org.eclipse.ui.ide.IDE.openEditor() Xav On Mon, Mar 9, 2009 at 6:07 PM, Ralf <ralfo...@gmail.com> wrote: > > The EPL license of the plugin allows you to reuse the code if you use > a compatible license for your own project. > > That being said, the layout editor has not been designed to be > re-usable as such. That means the API will surely change and you'd be > basing your project on something hard to keep up with. We are > definitely not at a point where we can freeze the API and it's > actually guaranteed to change as we add more and more features. > > R/ > > On Mon, Mar 9, 2009 at 6:00 PM, Susan <smxb...@gmail.com> wrote: >> >> Thanks for your answer! My first question means If I develop a >> Eclipse plugin project, can I call ADT layout editor to edit my xml? >> Are there API documents of ADT layout editor I can find? I want to >> reuse layout editor , then I don't need to develope visual editor by >> myself. Is it possible? Thank you again. >> > >> > > > > -- Xavier Ducrohet Android Engineer, Google. --~--~---------~--~----~------------~-------~--~----~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---