how to get another Plugin's static share object that the plugin class provides [message #202932] |
Tue, 03 April 2007 02:12  |
Eclipse User |
|
|
|
Originally posted by: ludinghong1981.163.com
hello everyone !
had built two plugins,A and B. A is loaded as the eclipse startup,and
create a TCP/IP connection.Then In B,I want to use this connection for
communication. how can I do to get the object that generated in plugin A.
I think I should first to get the A's plugin object that defined in A's
plugin class(actually I guess that when eclipse loads A,the static plugin
object was created),but I do not konw how?
anyone can help me ?
|
|
|
Re: how to get another Plugin's static share object that the plugin class provides [message #203114 is a reply to message #202932] |
Tue, 03 April 2007 23:56   |
Eclipse User |
|
|
|
Originally posted by: irbull.cs.uvic.ca
Check your MANIFEST.MF file, and see if you plug-in defines an
activator. If it does, you should be able to communicate using this.
For example, if A defines the activator APlugin, then you should be able
to say APlugin.getDefault() to get the default instance.
cheers,
ian
LU wrote:
> hello everyone !
> had built two plugins,A and B. A is loaded as the eclipse startup,and
> create a TCP/IP connection.Then In B,I want to use this connection for
> communication. how can I do to get the object that generated in plugin A.
>
> I think I should first to get the A's plugin object that defined in A's
> plugin class(actually I guess that when eclipse loads A,the static
> plugin object was created),but I do not konw how?
> anyone can help me ?
>
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07383 seconds