Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » SourceViewer : how to create batch of actions
SourceViewer : how to create batch of actions [message #1403345] Wed, 23 July 2014 06:57 Go to next message
Mihael Schmidt is currently offline Mihael SchmidtFriend
Messages: 81
Registered: August 2010
Member
Hi,

I am using the SourceViewer class (based on TextViewer) and want to programmatically make changes to the text in the document connected to the viewer.

I want to make several changes but they should be treated as one (f. e. UndoManager,...).

How can I create a batch of actions?

Thanx in advance

Mihael
Re: SourceViewer : how to create batch of actions [message #1404095 is a reply to message #1403345] Tue, 29 July 2014 15:18 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 772
Registered: January 2012
Senior Member

I think you use the RewriteTarget (see ITextViewerExtension#getRewriteTarget()). See the SelectionProcessor for an example.

Brian.


Eclipse Platform committer. Ask me about Eclipse support, training, and consulting.
Re: SourceViewer : how to create batch of actions [message #1404151 is a reply to message #1404095] Wed, 30 July 2014 05:02 Go to previous message
Mihael Schmidt is currently offline Mihael SchmidtFriend
Messages: 81
Registered: August 2010
Member
This has brought me on the right track (I think). The TextEdit classes look like a good starting point, especially MultiTextEdit.

Thanx.
Previous Topic:How to remember jFace treeviewer's expand state?
Next Topic:Is there any way to get SourceViewer by a known StyledText?
Goto Forum:
  


Current Time: Sat Sep 22 06:48:38 GMT 2018

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

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

Back to the top