| Edit readonly files [message #509932] |
Mon, 25 January 2010 14:36  |
Kitesurfer () Messages: 84 Registered: December 2009 |
Member |
|
|
I've made a plugin with a custom editor (extends TextEditor).
When I open a readonly-file in this editor, and alter something, a messagebox comes up asking: "File is read-only. Do you wish to make it writable" ... I always click on "No" ... from that time on nothing can be altered in the editor.
How can I get rid of this messagebox and always have the editor in read-only mode when I open a read-only file ?
|
|
|
|
|
|
|
|
| Re: Edit readonly files [message #673708 is a reply to message #673572] |
Tue, 24 May 2011 10:12  |
Russell Bateman Messages: 2711 Registered: July 2009 Location: Provo, Utah, USA |
Senior Member |

|
|
Google is your friend.
You might try vogella.de for help in writing your first plug-in.
On 24-May-11 00:59, Kiran wrote:
> I am new to eclipse world, I was using Carbide, which is based on
> eclipse. I was thinking of creating an extension for it.
>
> Please let me know if there is any way where I can create an
> extension/plugin so that when I open a file which is readonly, I can
> handle it instead of the default behaviour? In my case, I should convert
> the file from readonly to writable, but should also mark it as edited by
> a source depot tool.
> Kindly tell me if this can be done.
>
> Thanks,
> Kiran
|
|
|
Powered by
FUDForum. Page generated in 0.01981 seconds