}
private ZipModel getModel(IFile file) throws CoreException {
- ZipModel model = (ZipModel) fModels.get(file);
- if (model == null)
- fModels.put(file, model = new ZipModel(file.getLocation().toFile(),
- file.getContents(), file.isReadOnly()));
- return model;
+ return new ZipModel(file.getLocation().toFile(),file.getContents(), file.isReadOnly());
+ // TODO: This code is disabled temporarily.
+ // Because, if it uses fModels, the changed contents of ZIP file aren't applied to Project Explorer,
+ // through the ZIP file was modified.
+// ZipModel model = (ZipModel) fModels.get(file);
+// if (model == null)
+// fModels.put(file, model = new ZipModel(file.getLocation().toFile(),
+// file.getContents(), file.isReadOnly()));
+// return model;
}
public Object getParent(Object element) {