Reputation: 459
I want to create an Eclipse plugin that automatically runs in the background, as soon as the user opens the Eclipse IDE.
For example, I am building a Java Eclipse plugin that gets the current active file address, but I would like this plugin to always run in the background without user having to run it manually.
How to achieve this?
Upvotes: 6
Views: 4750
Reputation: 111217
The org.eclipse.ui.startup
extension point lets you define a class that is run early during workbench initialization.
The extension point looks something like:
<extension point="org.eclipse.ui.startup">
<startup class="package.StartupClass"/>
</extension>
the class specified must implement the org.eclipse.ui.IStartup
interface.
More details here
Upvotes: 12