Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse RT (runtime) » Access a plugin from project(Access a class/method with in a plugin from simple java projects)
Access a plugin from project [message #560171] Tue, 21 September 2010 12:39
Björn is currently offline BjörnFriend
Messages: 29
Registered: August 2010
Junior Member
Hi,

Using the helios eclipse plattform, I created a java project in my workspace. From within my code I want to instantiate a class from one of the plugins of that eclipse plattform being used for development and call a method on that class instance.

I have an eclipse instance with a couple of additional plugins. one of which I wrote.

When I start this eclipse instance I can see my plugin and I can create a java project, compile and run it without any problems.

As soon as I try to call a method from that plugin class I get an NullPointerException:

saying that Activator in: Activator.PLUGIN_ID is null

Why is that and what do I need to do to be able to call methods inside other plugins from my java project?

Thanx for some help.

Cheers Björn

[Updated on: Tue, 21 September 2010 12:40]

Report message to a moderator

Previous Topic:Where is the source code for org.eclipse.osgi.service ? (in CVS)
Next Topic:Weird Console Behavior
Goto Forum:
  


Current Time: Sat Apr 27 05:11:07 GMT 2024

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

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

Back to the top