Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Relationship between getModelForRead(IFile) and getModelForRead(IStructuredDocument)
Relationship between getModelForRead(IFile) and getModelForRead(IStructuredDocument) [message #188946] Fri, 02 March 2007 04:48
Eclipse UserFriend
Originally posted by: konigsberg.at.geemail.dot.com

Hello,

Given IFile f and IStructuredDocument sDoc where sDoc came from f, will
the seqeuence

IStructuredModel m1 = ModelManager.getModelForRead(sDoc);
IStructuredModel m2 = ModelManager.getModelForRead(f);

pass the assertion

assert m1 == m2;

?

That is, I'm looking to prevent superfluous reads from the disk. I
presume so, but I wonder if I'm missing some understanding of the model
manager.

Thanks, Robert
Previous Topic:WTP BOF monday night, 7:30 room 209
Next Topic:JPA: No drivers in list with 2.0M5
Goto Forum:
  


Current Time: Mon Feb 10 01:33:22 GMT 2025

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

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

Back to the top