Override Save Action In Basic Text Eclipse Editor - updated for extra step
Posted on 2008-11-18
I have created a class that extends IFileEditorInput that opens a stored file anywhere on my machine and displays the file in the org.eclipse.ui.DefaultTextEditor. This file is not in the current project, just displayed in an editor window.
What I would like to do is make it so that if a person wants to edit it and save it back to the temporary location *and* also write that file in a different location, like a database. What class would I need to extend to get that functionality? Basically if someone right mouse clicks on the file and selects "save" that eclipse will call my method for saving the information in both places instead of the default save action. Any examples of doing this that you know about? Thanks in advance