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?
The Eclipse PDE™ (Plug-in Development Environment) provides tools to create, develop, test, debug, build and deploy Eclipse plug-ins, fragments, features, update sites and RCP products.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With