Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Relationship between getModelForRead(IFile) and getModelForRead(IStructuredDocument)
Relationship between getModelForRead(IFile) and getModelForRead(IStructuredDocument) [message #188946] Fri, 02 March 2007 04:48
Eclipse User
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: Wed Sep 17 01:38:42 GMT 2014

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

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