Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » caller plugin
caller plugin [message #256889] Tue, 29 June 2004 17:38 Go to next message
Eclipse UserFriend
Originally posted by: rhill2_._free.fr

hi-

id like to know from which plugin a method call originates from. for
instance :

in plugin A :
class A {
void a() {
Foo.bar() ;
}
}

in plugin B :
class Foo {
void bar() {
getSourcePlugin(); <--- should return id of plugin A
}
}

i first thought of retrieving the class A EclipseClassLoader, but it
doesnot expose the Bundle. also this may be biased since if Foo.bar() is
called from an external library declared and exported by both plugins i
wouldnot be able to accurately determine which one from plugin A and B
is the plugin caller, right ?

is theres a way to achieve this in a cleaner way ? also please let me
know if i made wrong assumptions.

thanks for any input.

-- gd
Re: caller plugin [message #256897 is a reply to message #256889] Tue, 29 June 2004 17:46 Go to previous message
Eclipse UserFriend
Originally posted by: rhill2_._free.fr

Gilles Dodinet wrote:

>
> hi-
>
> id like to know from which plugin a method call originates from.

btw the rationale behind this is to provide a JCL Log adapter for
eclipse. ive googled for a time but couldnot find anything useful, so if
you know of something oss that provides that feature please also let me
know.

thanks.

-- gd
Previous Topic:Running an External Tool Automatically at Startup
Next Topic:Seeing more...
Goto Forum:
  


Current Time: Sat Jul 05 00:05:40 EDT 2025

Powered by FUDForum. Page generated in 0.03487 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top