org.symbian.tools.mtw.ui/src/org/symbian/tools/tmw/internal/ui/wizard/WizardContext.java
changeset 466 129c94e78375
parent 465 87920e15f8eb
child 467 5a2901872fcf
equal deleted inserted replaced
465:87920e15f8eb 466:129c94e78375
    64         if (runtimes.length > 0) {
    64         if (runtimes.length > 0) {
    65             runtime = runtimes[0];
    65             runtime = runtimes[0];
    66         }
    66         }
    67     }
    67     }
    68 
    68 
    69     public void addFile(IProject project, IPath name, InputStream contents, IProgressMonitor monitor)
    69     public IFile addFile(IProject project, IPath name, InputStream contents, IProgressMonitor monitor)
    70             throws CoreException {
    70             throws CoreException {
    71         monitor.beginTask(name.toOSString(), 100);
    71         monitor.beginTask(name.toOSString(), 100);
    72         final IFile file = project.getFile(name);
    72         final IFile file = project.getFile(name);
    73         if (!file.exists()) {
    73         if (!file.exists()) {
    74             create(file.getParent());
    74             create(file.getParent());
    75         }
    75         }
    76         file.create(contents, false, new SubProgressMonitor(monitor, 100));
    76         file.create(contents, false, new SubProgressMonitor(monitor, 100));
    77         monitor.done();
    77         monitor.done();
       
    78         return file;
    78     }
    79     }
    79 
    80 
    80     public void addPropertyChangeListener(PropertyChangeListener arg0) {
    81     public void addPropertyChangeListener(PropertyChangeListener arg0) {
    81         propertySupport.addPropertyChangeListener(arg0);
    82         propertySupport.addPropertyChangeListener(arg0);
    82     }
    83     }