|
Re: Eclipse IDE Plugin Dev Help: Rename File Resource of Active Editor [message #1818577 is a reply to message #1818565] |
Fri, 20 December 2019 05:44 |
Ed Merks Messages: 33258 Registered: July 2009 |
Senior Member |
|
|
I suppose asking on the Eclipse Platform forum would be more specific:
https://www.eclipse.org/forums/index.php/f/11/
I suspect what's going on here is that invoking the command will compute information for/from the execution environment so likely it will consider which view currently is active (has focus) to determine the handler. If your editor has focus then likely it won't find the handler associated with the Project Explorer (and of course it might be the Package Explorer that's actually visible instead). I'm really not sure the best way to ensure this would always work. Likely activating the view first will help. Note that I expect that a rename will also commit the rename change to disk as well, and often to do a rename, you'll be asked to save dirty editors first (it appears the Project Explore does not force the same, but the Package Explorer does).
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.08097 seconds