It is best to add an external project to your project. You can choose an ant script or an arbitrary program (e.g. / bin / bash) with arguments of your choice. Each time a project resource is saved (for example, a file), your developer will be launched. See Ant Project Builders for a discussion of external builders.
There are actions in the Java editor that can be activated and customized, but AFAIK does not include the ability to run the program. See Preferences > Java > Editors.
If you can write plugins, you can also add org.eclipse.core.commands.IExecutionListenerto org.eclipse.ui.commands.ICommandServiceand listen to the Save ( org.eclipse.ui.IWorkbenchCommandConstants.FILE_SAVE) command . Then you can do whatever you can write in java. But external project developers are probably the fastest way for what you want.
source
share