Skip to main content


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 14:36 Go to next message
Oleg Schtofenmaher is currently offline Oleg SchtofenmaherFriend
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 19:20 Go to previous messageGo to next message
Oleg Schtofenmaher is currently offline Oleg SchtofenmaherFriend
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 15:21 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
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 Mar 28 21:39:54 GMT 2024

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

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

Back to the top