|How to disable renaming of a project programmatically. [message #492340]
||Tue, 20 October 2009 05:32
| Nayna Jain
Registered: July 2009
Just like C/C++, we have defined our own project Type and project nature.
So, when eclipse projects are of this particular nature and type, we don't want the Rename Action to be shown or disabled.
Or if this is not possible , we want to just show an error message that renaming is not possible and stop the renaming of this project.
Currently we are doing this using resource change listeners... But in this case the events are notified only after renaming. And so , though we show the user that 'renaming is not allowed' , the renaming is done.. So, we have to also show that rename to the original name for it to work.. And here is the point where we want that either by itself we disable renaming or we undo the renaming operation programmatically and showing to the user just that "renaming is not possible".
Any pointers for this ?
Thanks & Regards,
- Nayna Jain
Powered by FUDForum
. Page generated in 4.60397 seconds