Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » detecting the end of POST_CHANGE event?
detecting the end of POST_CHANGE event? [message #196317] Mon, 26 February 2007 19:02 Go to next message
Ric Wright is currently offline Ric WrightFriend
Messages: 70
Registered: July 2009
Member
I have implemented a plugin that help build eBooks. I have added a
resource listener so I know when the user has modified any of the
resources that make up the eBook. I then run an XML validator against
the resulting book. I get back a series of messages about errors and
warnings. I want to create Markers (problems, warnings) for these. The
problem is that since I am notified in a POST_CHANGE event, the tree is
locked. But it is not clear how I can tell when the POST_CHANGE event
is done and the tree unlocked so I can add the markers.

If anyone has a suggestion, I would be appreciative. Thanks.
Re: detecting the end of POST_CHANGE event? [message #196334 is a reply to message #196317] Mon, 26 February 2007 19:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wharley.bea.com

"Ric Wright" <rkwright@adobe.com> wrote in message
news:ervaru$b5c$1@utils.eclipse.org...
>I have implemented a plugin that help build eBooks. I have added a
>resource listener so I know when the user has modified any of the resources
>that make up the eBook. I then run an XML validator against the resulting
>book. I get back a series of messages about errors and warnings. I want
>to create Markers (problems, warnings) for these. The problem is that
>since I am notified in a POST_CHANGE event, the tree is locked. But it is
>not clear how I can tell when the POST_CHANGE event is done and the tree
>unlocked so I can add the markers.
>
> If anyone has a suggestion, I would be appreciative. Thanks.


It sounds to me like what you want is a Builder, not a
ResourceChangeListener.
Re: detecting the end of POST_CHANGE event? [message #196383 is a reply to message #196334] Mon, 26 February 2007 23:16 Go to previous message
Ric Wright is currently offline Ric WrightFriend
Messages: 70
Registered: July 2009
Member
Thanks, Walter. That was the right approach. I'm styling now. :-)

Ric

Walter Harley wrote:
> "Ric Wright" <rkwright@adobe.com> wrote in message
> news:ervaru$b5c$1@utils.eclipse.org...
>> I have implemented a plugin that help build eBooks. I have added a
>> resource listener so I know when the user has modified any of the resources
>> that make up the eBook. I then run an XML validator against the resulting
>> book. I get back a series of messages about errors and warnings. I want
>> to create Markers (problems, warnings) for these. The problem is that
>> since I am notified in a POST_CHANGE event, the tree is locked. But it is
>> not clear how I can tell when the POST_CHANGE event is done and the tree
>> unlocked so I can add the markers.
>>
>> If anyone has a suggestion, I would be appreciative. Thanks.
>
>
> It sounds to me like what you want is a Builder, not a
> ResourceChangeListener.
>
>
Previous Topic:Packages and folders in Package explorer
Next Topic:Use Annotation to add Line Numbers to Java Code
Goto Forum:
  


Current Time: Thu Apr 25 10:04:05 GMT 2024

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

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

Back to the top