Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » access plugin from javacode
access plugin from javacode [message #630501] Sun, 03 October 2010 12:41 Go to next message
Björn is currently offline Björn
Messages: 29
Registered: August 2010
Junior Member
Hi,

I use the Eclipse plattform to develop my javaprogramm.

In the eclipse I have a plugin that requires a running eclipse instance to work.
Which works fine.

What I want to do is call a method from that plugin from inside my programm, while executing it from inside eclipse.

How could this work ?

Cheers
Björn
Re: access plugin from javacode [message #630521 is a reply to message #630501] Sun, 03 October 2010 19:07 Go to previous messageGo to next message
Devin Santos is currently offline Devin Santos
Messages: 1
Registered: October 2010
Junior Member
Björn wrote on Sun, 03 October 2010 08:41
Hi,

I use the Eclipse plattform to develop my javaprogramm.

In the eclipse I have a plugin that requires a running eclipse instance to work.
Which works fine.

What I want to do is call a method from that plugin from inside my programm, while executing it from inside eclipse.

How could this work ?

Cheers
Björn


Great question. I too have been wondering how to do this. If someone can help address this question that would greatly appreciated.


Re: access plugin from javacode [message #630665 is a reply to message #630521] Mon, 04 October 2010 13:38 Go to previous messageGo to next message
Eclipse User
Originally posted by: richkulp.us.NOSPAM.ibm.com

Hi,

To call a plugin method the caller must also be a plugin.

The question is what do you mean by " my programm, while executing it
from inside eclipse."?

If you start a standard Java Application launch from eclipse you are not
running it from inside eclipse. You are running as a standalone java
instance separate from the eclipse instance. It doesn't have any access
to the calling Eclipse instance at all, none!

If your program is actually a plugin, then you can start a separate
Eclipse instance from Eclipse that includes your plugin. In that case
your plugin has access to that Eclipse's plugin methods.

But there is no way to have some code you are writing access the actual
instance of Eclipse that you are writing your code within.

--
Thanks,
Rich Kulp
Re: access plugin from javacode [message #631590 is a reply to message #630665] Fri, 08 October 2010 06:31 Go to previous messageGo to next message
Brad John is currently offline Brad John
Messages: 1
Registered: October 2010
Junior Member
i also same problem, even I read all post from here, I can't fix this problem
Re: access plugin from javacode [message #631870 is a reply to message #630501] Sat, 09 October 2010 12:11 Go to previous messageGo to next message
Björn is currently offline Björn
Messages: 29
Registered: August 2010
Junior Member
Hi,

as I understood there is no way of doing it.

Since I wrote a simple RMI Server that is being started when the plugin is loaded in an eclipse instance. Via RMI I can now remote control the plugin from any javaapp and any client as long as there is one machine that executes the eclipse to start with.

CU
Björn
Re: access plugin from javacode [message #648423 is a reply to message #630665] Wed, 12 January 2011 20:24 Go to previous message
Atif Javed is currently offline Atif Javed
Messages: 21
Registered: March 2010
Junior Member
Hi,
I am new in eclipse and facing almost similar problem. Can you guide a bit for how to call a method of pluggin in another pluggin. Regards,
Previous Topic:Java Perspective sees a project; Java Browsing Perspective doesn't
Next Topic:Long List Nominations for India's Premier Software Developer Awards Close 14 January 2011
Goto Forum:
  


Current Time: Fri Oct 31 18:01:24 GMT 2014

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

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