diff options
author | Gun Kim <gune.kim@samsung.com> | 2014-01-16 20:15:01 +0900 |
---|---|---|
committer | Gun Kim <gune.kim@samsung.com> | 2014-01-16 20:16:10 +0900 |
commit | 4fc487ede03beddef526823626a899fa31e0f663 (patch) | |
tree | fc2a61f9c8fe317a122402972a94284b8dfa6bdb | |
parent | 8665f8ad6fcc0e4e1313036f61e244f003cff78c (diff) | |
download | common-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.java | 14 |
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) { |