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?
1 Answer 1
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
org.eclipse.ui.startupextension point