From 4fc487ede03beddef526823626a899fa31e0f663 Mon Sep 17 00:00:00 2001 From: Gun Kim Date: Thu, 16 Jan 2014 20:15:01 +0900 Subject: [PATCH] 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 --- .../src/zipeditor/ZipContentProvider.java | 14 +++++++++----- 1 file 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 d9c2fd0..20a62c9 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) { -- 2.7.4