TOOLS: modified zip editor 37/15137/1
authorGun Kim <gune.kim@samsung.com>
Thu, 16 Jan 2014 11:15:01 +0000 (20:15 +0900)
committerGun Kim <gune.kim@samsung.com>
Thu, 16 Jan 2014 11:16:10 +0000 (20:16 +0900)
If the wgt file was modified, it wasn't applied to Package Explorer.
This commit fixed it.

Change-Id: I718579eb0dc3863a8786b3bec4d2643d4cc653c4
Signed-off-by: Gun Kim <gune.kim@samsung.com>
org.tizen.common.externals/src/zipeditor/ZipContentProvider.java

index d9c2fd0..20a62c9 100644 (file)
@@ -87,11 +87,15 @@ public class ZipContentProvider implements ITreeContentProvider {
        }
        
        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) {