[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Re: PlEASE HELP:Making TextEditor ReadOnly and beyond WITH the code
|
- From: sma_r@xxxxxxxxxxx (Syed)
- Date: Wed, 8 Jan 2003 19:33:16 +0000 (UTC)
- Newsgroups: eclipse.tools
- Organization: http://www.eclipse.org
- User-agent: NewsPortal 0.23
Syed wrote:
The code for making it Readonly is:
protected void doSetInput(IEditorInput input) throws CoreException {
super.doSetInput(input);
((IFileEditorInput)input).getFile().setReadOnly(true);
}
I have to always change the value to either true or false to make it
readonly and back.
> Hi all,
> I can make the editor readonly,but the only thing that i am not able to do
> is to change it to readonly and back,while it is running.Following is the
> code that I am using but I getting errors while I try to send a true or
> false value to the setReadOnly method.
> I will really appreciate any help
> Thanks in advance
> Syed