Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (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] Sat, 17 February 2007 02:52 Go to next message
Eclipse UserFriend
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 06:13 Go to previous messageGo to next message
David Williams is currently offline David WilliamsFriend
Messages: 722
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 17:46 Go to previous message
Eclipse UserFriend
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 Mar 29 13:17:34 GMT 2024

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

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

Back to the top