Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Updating document partitioning according to data structure update
icon5.gif  Updating document partitioning according to data structure update [message #895053] Wed, 11 July 2012 10:36 Go to next message
Oleg Schtofenmaher is currently offline Oleg Schtofenmaher
Messages: 5
Registered: January 2012
Junior Member
Hi, I have an editor, which partitions its document according to some data structure. I would like to trigger a re-partition of the document (and syntax coloring update) according to a change done to this data structure. I can detect the change (it is triggered by an Action) and respond to it. How can I trigger the re-partitioning?

Best regards, Oleg
Re: Updating document partitioning according to data structure update [message #895756 is a reply to message #895053] Sun, 15 July 2012 15:20 Go to previous messageGo to next message
Oleg Schtofenmaher is currently offline Oleg Schtofenmaher
Messages: 5
Registered: January 2012
Junior Member
Is there any way to alert the editor to refresh its view as not because of data source change?
Re: Updating document partitioning according to data structure update [message #897324 is a reply to message #895053] Mon, 23 July 2012 11:21 Go to previous message
Dani Megert is currently offline Dani Megert
Messages: 3801
Registered: July 2009
Senior Member
On 11.07.2012 16:36, Oleg Schtofenmaher wrote:
> Hi, I have an editor, which partitions its document according to some
> data structure. I would like to trigger a re-partition of the document
> (and syntax coloring update) according to a change done to this data
> structure. I can detect the change (it is triggered by an Action) and
> respond to it. How can I trigger the re-partitioning?
You could do this by calling
org.eclipse.jface.text.IDocumentPartitionerExtension.documentChanged2(DocumentEvent)
on your partitioner.

Dani
>
> Best regards, Oleg
Previous Topic:Classic Update in Juno
Next Topic:Help Causes Crash
Goto Forum:
  


Current Time: Thu Apr 24 02:05:01 EDT 2014

Powered by FUDForum. Page generated in 0.01801 seconds