Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Read-only XtextSourceViewer: how to disable cursor and line bar
Read-only XtextSourceViewer: how to disable cursor and line bar [message #673810] Tue, 24 May 2011 19:56
Eclipse UserFriend
Originally posted by: Christian Krause

Hi,

I'm embedding an XtextSourceViewer into a view, which works fine
(adapting the EclipseLabs examples was straightforward).

Anyway, I would like the source viewer to be read-only. So I did this:

sourcViewer.setEditable(false);

Now, I also would like to remove the cursor and the highlighting of
the currently active line, since these do not make sense in my case
anymore. Can anybody give me a hint how I can accomplish this?

Cheers,
Christian
Previous Topic:Support for language requiring preprocessing/macro expansion
Next Topic:Grammar rule with known/unknown reference.
Goto Forum:
  


Current Time: Sat Apr 27 03:10:31 GMT 2024

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

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

Back to the top