weired behavior about the ISourceViewer.setEditable [message #327193] |
Mon, 14 April 2008 02:15 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: outiejun.cn.ibm.com
This is a multipart message in MIME format.
--=_alternative 000C63814825742B_=
Content-Type: text/plain; charset="US-ASCII"
Hi,
I'm using ISourceViewer.setEditable to control the editable behavior for
my text editor. Everything goes well, but when I set the
setEditable(false), and switch to another application on windows (using
alt+tab or something), and then swtich back to my editor, it is weired
that the ISourceViewer.isEditable() returns true!!
In addition, I set the setEditable(false) in the text editor's
initialization phase, but even though, the editor still can be editable!
Our env is: windows xp, eclipse 3.3.1
Is it a bug or something I missed? thanks.
Terry.
--=_alternative 000C63814825742B_=
Content-Type: text/html; charset="US-ASCII"
<br><font size=2 face="sans-serif">Hi,</font>
<br>
<br><font size=2 face="sans-serif">I'm using </font><font size=1 face="sans-serif">ISourceViewer.setEditable</font><font size=2 face="sans-serif">
to control the editable behavior for my text editor. Everything goes well,
but when I set the setEditable(false), and switch to another application
on windows (using alt+tab or something), and then swtich back to my editor,
it is weired that the </font><font size=1 face="sans-serif">ISourceViewer</font><font size=2 face="sans-serif">.isEditable()
returns true!!</font>
<br><font size=2 face="sans-serif">In addition, I set the setEditable(false)
in the text editor's initialization phase, but even though, the editor
still can be editable!</font>
<br>
<br><font size=2 face="sans-serif">Our env is: windows xp, eclipse 3.3.1</font>
<br>
<br><font size=2 face="sans-serif">Is it a bug or something I missed? thanks.</font>
<br>
<br><font size=2 face="sans-serif">Terry.</font>
<br>
--=_alternative 000C63814825742B_=--
|
|
|
Re: weired behavior about the ISourceViewer.setEditable [message #327292 is a reply to message #327193] |
Tue, 15 April 2008 10:40 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Dani Megert![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=Daniel_Megert%40ch.ibm.com) Messages: 3802 Registered: July 2009 |
Senior Member |
|
|
outiejun@cn.ibm.com wrote:
>
> Hi,
>
> I'm using ISourceViewer.setEditable to control the editable behavior
> for my text editor. Everything goes well, but when I set the
> setEditable(false), and switch to another application on windows
> (using alt+tab or something), and then swtich back to my editor, it is
> weired that the ISourceViewer.isEditable() returns true!!
> In addition, I set the setEditable(false) in the text editor's
> initialization phase, but even though, the editor still can be editable!
>
> Our env is: windows xp, eclipse 3.3.1
>
> Is it a bug or something I missed? thanks.
The editor's editable state is derived from the model (look at
ITextEditor.isEditable()). This is then passed to the viewer.
Dani
>
> Terry.
|
|
|
Powered by
FUDForum. Page generated in 0.03985 seconds