cz.cuni.amis.nb.pogamut.base.project.template.utils
Class ProjectCreationUtils

Package class diagram package ProjectCreationUtils
java.lang.Object
  extended by cz.cuni.amis.nb.pogamut.base.project.template.utils.ProjectCreationUtils

public class ProjectCreationUtils
extends Object

Author:
ik

Constructor Summary
ProjectCreationUtils()
          Creates a new instance of ProjectCreationUtils
 
Method Summary
static void handleWizardDescriptor(org.openide.WizardDescriptor wiz)
          Make common actions according to WizardDescriptor.
static String loadFileToString(File file)
          Loads file to string.
static void substituteInFile(File file, Pattern pattern, String strToSubst)
          Substitute pattern in file.
static void unZipFile(InputStream source, org.openide.filesystems.FileObject projectRoot)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectCreationUtils

public ProjectCreationUtils()
Creates a new instance of ProjectCreationUtils

Method Detail

handleWizardDescriptor

public static void handleWizardDescriptor(org.openide.WizardDescriptor wiz)
Make common actions according to WizardDescriptor.


substituteInFile

public static void substituteInFile(File file,
                                    Pattern pattern,
                                    String strToSubst)
                             throws IOException
Substitute pattern in file.

Throws:
IOException

loadFileToString

public static String loadFileToString(File file)
                               throws IOException
Loads file to string.

Throws:
IOException

unZipFile

public static void unZipFile(InputStream source,
                             org.openide.filesystems.FileObject projectRoot)
                      throws IOException
Throws:
IOException


Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.