[KDev4] CVS plugin

Andreas Pakulat apaku at gmx.de
Fri Apr 13 19:27:28 UTC 2007


On 13.04.07 15:15:12, dukju ahn wrote:
> 2007/4/13, Alexander Dymo <dymo at ukrpost.ua>:
> > On 4/13/07, Andreas Pakulat <apaku at gmx.de> wrote:
> > > > Can't the plugin init() be made to return success/failure?
> > > There is no init(), thats the whole problem.
> > Just a wild guess, can a factory check for cvs executable and refuse
> > creating a plugin (like return 0 pointer)? I think that cvs plugin's
> > code will be a lot cleaner in case it's written in assumption that cvs
> > exists. What if we reimplement KGenericFactory::createObject() to
> > return 0's?
> 
> But, think about one actual user. Suppose that he didn't install
> CVS and now he realized that he should install CVS.
> However, after installing CVS, he wouldn't find any CVS menu in KDevelop.
> It is only the next time he opened the project secondly -- i.e.
> the next time the factory is called.

Yes, thats not nice. Its not nice either that the CVS plugin needs to
check on each action if a client is available. But then CVS is just
crap ;)

> I think that the user should be able to configure which vcs to use
> via project settings page. That's the way KDev3 used.

That will have to be done anyway, but has nothing to do with finding a
cvs binary.

Andreas

-- 
You are a very redundant person, that's what kind of person you are.




More information about the KDevelop-devel mailing list