org.symbian.tools.mtw.ui/src/org/symbian/tools/tmw/internal/ui/project/ZipInstaller.java
changeset 467 5a2901872fcf
parent 466 129c94e78375
equal deleted inserted replaced
466:129c94e78375 467:5a2901872fcf
   170                 if (fls.contains(name)) {
   170                 if (fls.contains(name)) {
   171                     final InputStream contents;
   171                     final InputStream contents;
   172                     if (nm.endsWith(TEMPLATE_FILE_EXTENSION)) {
   172                     if (nm.endsWith(TEMPLATE_FILE_EXTENSION)) {
   173                         contents = copyTemplate(project, name, stream, (int) entry.getSize(), ctx, monitor);
   173                         contents = copyTemplate(project, name, stream, (int) entry.getSize(), ctx, monitor);
   174                     } else {
   174                     } else {
   175                         contents = new NonClosingStream(stream);
   175                         contents = stream;
   176                     }
   176                     }
   177                     IFile file = context.addFile(project, name, contents, new SubProgressMonitor(monitor, 10));
   177                     IFile file = context.addFile(project, name, contents, new SubProgressMonitor(monitor, 10));
   178                     if (open) {
   178                     if (open) {
   179                         openFiles.add(file);
   179                         openFiles.add(file);
   180                     }
   180                     }