|
Re: Making IEditorPart Read Only [message #331082 is a reply to message #331077] |
Sun, 24 August 2008 06:18   |
Eclipse User |
|
|
|
The readonly behaviour is determined by whether the IEditorInput is
returning null or not for the getPersistable() method.
So override the method and return null.
- Prakash
www.eclipse-tips.com
Yau wrote:
> Hi,
>
> how to disable any editor given it's IEditorPart so that it's read only?
>
> Yau.
>
>
|
|
|
Re: Making IEditorPart Read Only [message #331088 is a reply to message #331082] |
Mon, 25 August 2008 01:40   |
Eclipse User |
|
|
|
Hi,
thanks for your reply, but how about it's a third party editor, i.e. without
any control of the editor?
Yau.
"Prakash G.R." <grprakash@gmail.com> wrote in message
news:g8quf6$695$1@build.eclipse.org...
> The readonly behaviour is determined by whether the IEditorInput is
> returning null or not for the getPersistable() method.
>
> So override the method and return null.
>
> - Prakash
>
> www.eclipse-tips.com
>
>
> Yau wrote:
> > Hi,
> >
> > how to disable any editor given it's IEditorPart so that it's read only?
> >
> > Yau.
> >
> >
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02894 seconds