|
|
|
|
Re: Open editor and parent IFolder rename [message #332853 is a reply to message #332832] |
Tue, 11 November 2008 12:15 |
Ed Merks Messages: 33224 Registered: July 2009 |
Senior Member |
|
|
Duncan,
I guess the IFile itself doesn't just have the new name? If it does,
what Prakash suggested ought to work. If not, I assume you'd have to
compute it based on the information in the resource delta.
Duncan Krebs wrote:
> Hi Ed, Thanks for the information, I generated a test EMF editor and
> was able to locate the code you referenced which is a nice example to
> work from. From testing the editor I see that if a parent folder is
> renamed and editors that are editing child resources are open they
> will be closed by default.
> To go one step further and reopen the editor for the user how would
> you suggest I implement this. My first thought is to open the editor
> after closing it in code but am a little stuck on how to get a
> reference to the correct IResource that references the same file we
> were editing before the parent resource rename happened.
> Thanks again for your help. - Duncan
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.04628 seconds