Resource out of sync with the filesystem in multipage editor [message #328475] |
Mon, 26 May 2008 05:37  |
Eclipse User |
|
|
|
Hi,
I have created a multipage editor(extends MultiPageEditorPart) and named
it as "Sample CEditor"
On one of the page am adding a CEditor like this
int index = addPage(new CEditor(), getEditorInput());
other page contains some view.
Every thing is working fine, but ...
i opened a file say sample.c outside the eclipse workspace and i did some
modifications.
And when i opened the same file inside the workspace using "Text Editor"
it prompts me with the "File Changed" dialog box and asks for,
"The file has been changed on the file system. Do you want to load the
changes?"
If we say "Yes" it refreshes the Contents on the file.
I expecting the same kind of behaviour on my "Sample CEditor", But i don't
know how to implement...
Can any one help me to do the same.....
Thanks and Regards,
Ravi.
|
|
|
Re: Resource out of sync with the filesystem in multipage editor [message #333002 is a reply to message #328475] |
Wed, 19 November 2008 04:42   |
Eclipse User |
|
|
|
Hello,
I'm currently having the same problem.
Did you find the answer, and could you give me some hints ?
Thanks in advance,
--
Laurent
ravi wrote:
> Hi,
>
> I have created a multipage editor(extends MultiPageEditorPart) and named
> it as "Sample CEditor"
>
> On one of the page am adding a CEditor like this
>
> int index = addPage(new CEditor(), getEditorInput());
> other page contains some view.
>
> Every thing is working fine, but ...
>
> i opened a file say sample.c outside the eclipse workspace and i did
> some modifications.
>
> And when i opened the same file inside the workspace using "Text Editor"
> it prompts me with the "File Changed" dialog box and asks for,
> "The file has been changed on the file system. Do you want to load the
> changes?"
>
> If we say "Yes" it refreshes the Contents on the file.
>
> I expecting the same kind of behaviour on my "Sample CEditor", But i
> don't know how to implement...
>
> Can any one help me to do the same.....
>
>
> Thanks and Regards,
> Ravi.
>
>
>
|
|
|
|
|
Re: Resource out of sync with the filesystem in multipage editor [message #333027 is a reply to message #333009] |
Thu, 20 November 2008 05:43  |
Eclipse User |
|
|
|
> -> This prevents me from using the same messages for indicating to the user
> that the resource is out of sync ...
Right, you would have to create your own messages.
> -> Is there another way to do this (for custom editors) ?
I think that you have to implement it from a scratch. If nobody else
answers your question, you can try to ask on IRC channel.
|
|
|
Powered by
FUDForum. Page generated in 0.03615 seconds