Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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: Sun Jul 13 04:40:46 EDT 2025

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

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

Back to the top