Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » weired behavior about the ISourceViewer.setEditable
weired behavior about the ISourceViewer.setEditable [message #327193] Mon, 14 April 2008 02:15 Go to next message
Eclipse UserFriend
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
Dani Megert is currently offline Dani MegertFriend
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.
Previous Topic:Set "Always run in background" preference to true and another question.
Next Topic:Checkbox to select-all in JFace TableViewer
Goto Forum:
  


Current Time: Mon Aug 26 05:14:55 GMT 2024

Powered by FUDForum. Page generated in 0.03690 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top