Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » When do I use IDOMNode.getModel and when do I used StructuredModelManager.getModelForRead?
When do I use IDOMNode.getModel and when do I used StructuredModelManager.getModelForRead? [message #188146] Fri, 16 February 2007 21:52 Go to next message
Eclipse User
Originally posted by: fakeaddress.brainkandy.org

When is it safe to use IDOMNode.getModel without having to get the
node's owner document and getting the model through the
StructuredModelManager?

Thanks, Robert
Re: When do I use IDOMNode.getModel and when do I used StructuredModelManager.getModelForRead? [message #188178 is a reply to message #188146] Sun, 18 February 2007 01:13 Go to previous messageGo to next message
David Williams is currently offline David Williams
Messages: 696
Registered: July 2009
Senior Member
On Fri, 16 Feb 2007 21:52:33 -0500, Robert Konigsberg <fakeaddress@brainkandy.org> wrote:

> When is it safe to use IDOMNode.getModel without having to get the
> node's owner document and getting the model through the
> StructuredModelManager?
>
> Thanks, Robert
>

Off hand, I'd say it's better to use the model manager.
It's been a while since I studied it, but suspect that's like to
become API, whereas IDOMNode.getModel() probably won't. With the
latter case, it will be hard to ensure the proper multi-thread behavior.
Re: When do I use IDOMNode.getModel and when do I used StructuredModelManager.getModelForRead? [message #188186 is a reply to message #188178] Sun, 18 February 2007 12:46 Go to previous message
Eclipse User
Originally posted by: konigsberg-at-g-m.ail-ddooott.com

Thanks for your quick response, David.

"David Williams" <david_williams@us.ibm.com> wrote in message
news:op.tnxkwetvac05ss@dmw2t23.ibm.com...
> On Fri, 16 Feb 2007 21:52:33 -0500, Robert Konigsberg
> <fakeaddress@brainkandy.org> wrote:
>
>> When is it safe to use IDOMNode.getModel without having to get the
>> node's owner document and getting the model through the
>> StructuredModelManager?
>>
>> Thanks, Robert
>>
>
> Off hand, I'd say it's better to use the model manager.
> It's been a while since I studied it, but suspect that's like to
> become API, whereas IDOMNode.getModel() probably won't. With the
> latter case, it will be hard to ensure the proper multi-thread behavior.
>
Previous Topic:Headless workspace compilation
Next Topic:How to identify the IPath source of a JobSafeStructuredDocument?
Goto Forum:
  


Current Time: Fri Aug 29 10:31:45 EDT 2014

Powered by FUDForum. Page generated in 0.02129 seconds