Removing KDevelop::ILanguage class/interface?
Milian Wolff
mail at milianw.de
Sat Jan 3 12:25:15 UTC 2015
On Monday 29 December 2014 22:05:58 Aleix Pol wrote:
> On Mon, Dec 29, 2014 at 4:34 PM, Kevin Funk <kfunk at kde.org> wrote:
> > Heya,
> >
> > Stumbled upon the ILanguage <-> ILanguageSupport separation a couple of
> > times already and was wondering why ILanguage is there at all...
> >
> > It currently provides
> > - a name (which is deduced from ILanguageSupport::name)
> > - a parseLock (which could be moved to ILanguageSupport)
> > - a pure-virtual 'activate' and 'deactivate' method
> >
> > ILanguage is only inherited once, by 'Language', and instantiated inside
> > the LanguageController. Language::{activate, deactivate} does nothing.
> > LanguageController also provides access to all available ILanguages via
> > methods like 'languagesForUrl', etc.
> >
> > So, my question: Why is ILanguage here? Can we remove it?
> >
> > Proposal:
> > - Get rid off ILanguage
> > - Replace uses of it with ILanguageSupport directly, remove the
> > indirection
> > - There are only a few uses of ILanguage in external plugins,
> >
> > which are easy to fix
> >
> > => Simplifies quite a bit of code
>
> I never really understood the difference either.
> +1 to the change, from my relative ignorance.
+1 from my side as well.
bye - and happy new year :)
--
Milian Wolff
mail at milianw.de
http://milianw.de
More information about the KDevelop-devel
mailing list