Skip to main content



      Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Not able to call Activator.start method for non java project(Not able to call Activator.start method for non java project)
Not able to call Activator.start method for non java project [message #1778499] Thu, 14 December 2017 22:43 Go to next message
Eclipse UserFriend
I am new to plugin development.
I wrote a plugin to show warning(Marker) for a text file. I run this project it works fine and also it required the entry in .project file like
<buildCommand>
<name>com.packtpub.e4.minimark.ui.MinimarkBuilder</name>
</buildCommand>

It requires atleast one time build to show the warning.

So my query is that suppose that plugin i deployed in environment where a non java project is placed and where we do not build the project from eclipse. So Activator start method is also not called. Please let me know how to call
public class Activator extends AbstractUIPlugin

Or it will be called when it is initialized?
Re: Not able to call Activator.start method for non java project [message #1778558 is a reply to message #1778499] Sun, 17 December 2017 10:08 Go to previous message
Eclipse UserFriend
Hi
The activator is called by the osgi container you use. Eclipse by default uses the equinox osgi container. The activator is aspecific class for osgi containers. If you want to use the Activator outside of a osgi container (what I do not recommend), you would have to instantiate the activator and then call the start or stop method respective. The clue of the activator within the osgi container is, that it is a class in which you can initialize your bundle. I don't know any use case outside of osgi container.
Previous Topic:Strange Behavior of ade tools
Next Topic:Select one literal in an enumeration
Goto Forum:
  


Current Time: Mon Jul 07 18:20:00 EDT 2025

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

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

Back to the top