summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGun Kim <gune.kim@samsung.com>2014-01-16 20:15:01 +0900
committerGun Kim <gune.kim@samsung.com>2014-01-16 20:16:10 +0900
commit4fc487ede03beddef526823626a899fa31e0f663 (patch)
treefc2a61f9c8fe317a122402972a94284b8dfa6bdb
parent8665f8ad6fcc0e4e1313036f61e244f003cff78c (diff)
downloadcommon-eplugin-4fc487ede03beddef526823626a899fa31e0f663.tar.gz
common-eplugin-4fc487ede03beddef526823626a899fa31e0f663.tar.bz2
common-eplugin-4fc487ede03beddef526823626a899fa31e0f663.zip
TOOLS: modified zip editor
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>
-rw-r--r--org.tizen.common.externals/src/zipeditor/ZipContentProvider.java14
1 files changed, 9 insertions, 5 deletions
diff --git a/org.tizen.common.externals/src/zipeditor/ZipContentProvider.java b/org.tizen.common.externals/src/zipeditor/ZipContentProvider.java
index d9c2fd0ac..20a62c9a3 100644
--- a/org.tizen.common.externals/src/zipeditor/ZipContentProvider.java
+++ b/org.tizen.common.externals/src/zipeditor/ZipContentProvider.java
@@ -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) {