I want to enhance the Rearranger plugin so it can be invoked from the project view by right-clicking on a file or directory, like Reformat Code or Optimize Imports does. Is there an example of a plugin that does this, or does somebody know how it is done?
The application plugins I've seen extend EditorWriteActionHandler and are passed an Editor and a DataContext. They work on the file currently being edited. Is there an example of how to write a plugin that modifies an unopened (not being edited) file?
Thanks for any help or suggestions.