3

I have created an Eclipse Editor (extends EditorPart) containing an TextViewer. I would like to disable the Caret blinking (I want an Caret allways visible)? How can i do?

Imen
  • 161
  • 1
  • 7

3 Answers3

3

If you're on a Unix-like operating system, you can try adding the line gtk-cursor-blink=0 to your $HOME/.gtkrc-2.0 file, followed by logging out and back in (to reload the GTK libraries). That should do the trick, in case you can't disable the blinking cursor in the Eclipse preferences.

If that doesn't work, and you're using Xfce, you may try executing the following line in a terminal: xfconf-query -c xsettings -p /Net/CursorBlink -s false

Jelle Geerts
  • 693
  • 7
  • 10
1

As mentioned in this thread:

Yes, if you OS supports it you can set it there (in the OS)
and the editor will honor it if you disable the custom caret on the General > Editors > Text Editors > Accessibility preference page.

VonC
  • 1,042,979
  • 435
  • 3,649
  • 4,283
0

Google showed me: http://www.gatorspit.com/tips/disable-blinking-cursor.html

However, it removes the blinking carets from ALL of your applications [which includes eclipse], so you probably won't want that ._. Unless.. you totally abhor blinking carets

Warty
  • 6,709
  • 1
  • 26
  • 47
  • Thanks, but I am Looking for a way to disable the blinking caret of my TextViewer only and programmatically? – Imen Feb 24 '10 at 12:04