From: David T. <dav...@gm...> - 2008-12-10 23:26:37
|
Hi Dave, Code completion isn't a problem I have tried to tackle yet so I'm not that familiar with it. However my understanding is that Eclipse generates the information it needs for code completion dynamically, so there isn't really anywhere this information is stored such as it is in Vim which just uses simple static files. Eclipse for most the languages it supports has a deep understanding of the language and parses it into an AST, for Java you can see the classes used to represent the Java code here: org.eclipse.jdt.core.dom. I think from memory from working with XML in Eclipse a fair while ago, Eclipse knows how to parse a DTD/Schema. A company I worked for had some custom XML formats but after I wrote a Schema for it, Eclipse figured out the code completion. So I would suggest you just look at the DTD/Schema for MXML and either write the vim completion file by hand using the information or you can try to use this script below which translates from a DTD to a Vim omni-completion file. http://www.vim.org/scripts/script.php?script_id=1462 I tried it in the parse and I think it works Ok but has some significant bugs but things might have improved or my memory wrong. I had a quick look around on the internet for the DTD or Schema for MXML but wasn't able to find anything. Cheers, David On 11/12/2008, at 1:48 AM, David Fishburn wrote: > > I posted this on the Vim list with no response. > Since many of you have a lot more familiarity with Eclipse, perhaps > you have > some suggestions for me. > ... > > I am hoping someone on this list has a passing familiarity with > Eclipse. > > Eclipse knows how to complete MXML files for Adobe Flex. > I have put everything else into Vim to support Flex development but > now I want to tackle the code completion portion. > > Vim already has XML / HTML completion and Mikolaj made it generic > enough so that I can use the same gear for MXML. > > What I am lacking is of course all the keywords which are available > for each of the different MXML tags. Eclipse already knows how to do > this, so it has the required information. > > Does anyone know how or at least which files contain all that > information so that I can extract it and build what I need for Vim? > > Thanks, > Dave > > > ---------------------------------------------------------------------- > -------- > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, > Nevada. > The future of the web can't happen without you. Join us at MIX09 > to help > pave the way to the Next Web now. Learn more and register at > http://ad.doubleclick.net/clk;208669438;13503038;i?http:// > 2009.visitmix.com/ > _______________________________________________ > vimplugin-devel mailing list > vim...@li... > https://lists.sourceforge.net/lists/listinfo/vimplugin-devel |