Fwd: Bug#27716: see function under container file in project treeview
Bernd Gehrmann
bernd at physik.hu-berlin.de
Mon Jul 2 16:10:40 UTC 2001
On Mon, 2 Jul 2001, Richard Dale wrote:
> Also, I needed to subclass KDevLanguageSupport like this (see below) to change
> the way it uses subclassing the virtual methods addClass(), addMethod() and
> addAttribute(), and to use signals instead - more flexible, and easier to
> interface to other languages.
Sandy once had the idea to get rid of addClass() and addMethod()
completely and use the KDevCore::contextMenu() mechanism for that.
I.e. the language support part would connect to this signal and
in the slot test for
if (context->hasType("class")) {
//cast to ClassContext
popup->insertItem("Add Method", ...)
}
Advantage: it's infinitely more flexible (e.g any plugin could add
something to the class view's context menu) and the classview doesn't have
to know anything about the language.
BTW, I have changed the classview to insert the 'Goto declaration' item
only for certain languages. Does that make sense for Java or does it need
more fine-grained control?
Oh, and can you test the GNUstep check now?
Bernd.
-
to unsubscribe from this list send an email to kdevelop-devel-request at kdevelop.org with the following body:
unsubscribe »your-email-address«
More information about the KDevelop-devel
mailing list