|SourceViewer.setEditable() or disabled EditorParts [message #536336]
||Thu, 27 May 2010 16:57
Originally posted by: micha.on.the.road.web.de|
I have a problem respective IPartListener2 listeners and
I add the listener and on activate or open I setEditable(false), also, I
disable CUT and PASTE. However, it does not work like expected. Usually
the menu point "paste" is still active after opening an editor but
usually it has no effect clicking it.
But if I work a moment, suddenly the variables gets reset and the copy
and paste is working again. Where comes this from?!? How to make an
editor (or even much better, generally, how to make EditorParts)
non-editable? Just simple code viewers ...
Btw. How can I attach the eclipse source code to eclipse?
I would appreciate a lot any help.
PS: Writing in the editor I intercept with a VerifyKeyListener without
problems, drag with a DragDetectFilter. But it seems to be impossible to
solve this cut and paste problem :(
Powered by FUDForum
. Page generated in 0.01677 seconds