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 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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.