Plugin

Milian Wolff mail at milianw.de
Sun Oct 25 15:53:32 UTC 2009


On Sunday 25 October 2009 16:38:30 Ruan Strydom wrote:
> How does the duchain work in something like JSP, does it switch mime types,
> context etc. Cause there you will have an xml like structure or xml (with a
> scema) mixed with code and both needs to complete.

Eventually it will have to switch contexts. But so far there are not enough 
language plugins to check whether that actually works. I doubt it, but I'll 
impelment it eventually.
 
> On Sunday 25 October 2009 03:40:51 pm Hugo Parente Lima wrote:
> > On Sunday 25 October 2009 12:25:39 Milian Wolff wrote:
> > > On Monday 19 October 2009 22:48:59 Hugo Parente Lima wrote:
> > > > On Monday 19 October 2009 23:06:33 Ruan Strydom wrote:
> > > > > > What's about them? You need getters and setters for XML? Or do
> > > > > > you mean a XML- KDevelop-plugin? Maybe you should look at Quanta.
> > > > > > (although it's definitely not full-featured)
> > > > >
> > > > > For a living I am a java developer.  So I am used to netbeans /
> > > > > eclipse. These have very nice xml/schema designers. They auto
> > > > > complete etc, when you add a schema location they download and
> > > > > import them for auto completion. Whats nice is that they are
> > > > > generic (the designers) and can be used for configuration etc, like
> > > > > maven/ant , web.xml, spring etc...
> > > >
> > > > The eclipse one is based on DTD's, so the autocompletion works for
> > > > any XML, you just had to have the DTD available.
> > > >
> > > > Yesterday I tought about creating a program that parsers any DTD and
> > > > create a QStateMachine, because I tought that this was the better
> > > > aprouch to create XML/HTML support (auto-completion) into kdevelop...
> > > > but I known nothing about how kdevelop handles autocompletion, so I
> > > > forgot this idea
> > > >
> > > >  :-/
> > >
> > > I can tell you what PHP does:
> > > It tokenizes the code until the position you requested code completion
> > > at, and gives you completion items based on the last token(s). Then
> > > there is a little special-casing when you are inside a class context,
> > > but other than that, it's theoretically pretty simple.
> > >
> > > I've never used a QStateMachine (and since I don't study computer
> > > science I'm not really sure how one would use a state machine for code
> > > completion, always thought this was for parsers or animations) so no
> > > help from me there :)
> >
> > State machines are only useful for XML auto completion based on DTD's,
> >  because you don't have variables, etc... so is all very simple (in
> >  comparison to the use case of C++ and PHP), you just have a context and
> >  what would be in this context.
> >
> > P.S.: by the way, I sent this email some days ago, however using a wrong
> >  email address which was not registered in this mailing list, sorry for
> >  that :-/
> 
> --
> KDevelop-devel mailing list
> KDevelop-devel at kdevelop.org
> https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel
> 

-- 
Milian Wolff
mail at milianw.de
http://milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20091025/598812cd/attachment.sig>


More information about the KDevelop-devel mailing list