|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttico.editor.TProjectHandler
public class TProjectHandler
Static class that manages the current editing project files.
Constructor Summary | |
---|---|
TProjectHandler()
|
Method Summary | |
---|---|
static void |
cleanTempDirectory()
Deletes all the current temporal directory contents. |
static void |
copyCurrentToTemp(java.lang.String[] partialPaths)
Copies a list of files from the current directory to the temporal directory. |
static void |
deleteTempDirectory()
Deletes the current temporal directory and all its contents. |
static java.io.File |
getTempDirectory()
Returns the current temporal directory. |
static java.lang.String |
getTempDirectoryPath()
Returns the current temporal directory path. |
static TBoard |
loadBoard(java.io.File zipFile)
Creates a board using the information contained in a
zipFile . |
static TProject |
loadProject(java.io.File zipFile)
Creates an editor project using the information contained in a
zipFile . |
static TInterpreterProject |
loadProjectInterpreter(java.io.File zipFile)
Creates an interpreter project using the information contained in a
zipFile . |
static void |
loadZip(java.io.File zipFile)
Loads the current temporal directory with the contents of the specified zipFile . |
static void |
saveBoard(TBoard board,
java.io.File zipFile)
Saves the specified board to the specified
zipFile . |
static void |
saveProject(TProject project,
java.io.File zipFile)
Saves the specified project to the specified
zipFile . |
static void |
saveZip(java.io.File zipFile)
Stores the current termporal directory in the specified zipFile . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TProjectHandler()
Method Detail |
---|
public static java.io.File getTempDirectory()
public static java.lang.String getTempDirectoryPath()
public static void deleteTempDirectory()
public static void cleanTempDirectory()
public static void copyCurrentToTemp(java.lang.String[] partialPaths) throws java.io.IOException
partialPaths
- The list of files
java.io.IOException
- If there is any problem copying the filespublic static void saveZip(java.io.File zipFile) throws java.io.IOException
zipFile
.
zipFile
- The specified zipFile
java.io.IOException
- If there is any problem with the zipFile
public static void loadZip(java.io.File zipFile) throws java.io.IOException
zipFile
.
zipFile
- The specified zipFile
java.io.IOException
- If there is any problem with the zipFile
public static void saveProject(TProject project, java.io.File zipFile) throws javax.xml.parsers.ParserConfigurationException, java.io.IOException, javax.xml.transform.TransformerException
project
to the specified
zipFile
.
project
- The project
to savezipFile
- The target zipFile
javax.xml.parsers.ParserConfigurationException
- If there are syntactic error
in the XML document
java.io.IOException
- If there are file problems with the zipFile
javax.xml.transform.TransformerException
- If there are problems transforming the
XML document to textpublic static void saveBoard(TBoard board, java.io.File zipFile) throws javax.xml.parsers.ParserConfigurationException, java.io.IOException, javax.xml.transform.TransformerException
board
to the specified
zipFile
.
board
- The board
to savezipFile
- The target zipFile
javax.xml.parsers.ParserConfigurationException
- If there are syntactic error
in the XML document
java.io.IOException
- If there are file problems with the zipFile
javax.xml.transform.TransformerException
- If there are problems transforming the
XML document to textpublic static TProject loadProject(java.io.File zipFile) throws java.io.IOException, javax.xml.parsers.ParserConfigurationException, InvalidFormatException, org.xml.sax.SAXException
editor project
using the information contained in a
zipFile
.
zipFile
- The source zipFile
project
java.io.IOException
- If there are file problems with the zipFile
javax.xml.parsers.ParserConfigurationException
- If there are syntactic error
in the XML document
InvalidFormatException
- If the XML document has an invalid format
org.xml.sax.SAXException
- If there are problems transforming the
text to a XML documentpublic static TInterpreterProject loadProjectInterpreter(java.io.File zipFile) throws java.io.IOException, javax.xml.parsers.ParserConfigurationException, InvalidFormatException, org.xml.sax.SAXException
interpreter project
using the information contained in a
zipFile
.
zipFile
- The source zipFile
project
java.io.IOException
- If there are file problems with the zipFile
javax.xml.parsers.ParserConfigurationException
- If there are syntactic error
in the XML document
InvalidFormatException
- If the XML document has an invalid format
org.xml.sax.SAXException
- If there are problems transforming the
text to a XML documentpublic static TBoard loadBoard(java.io.File zipFile) throws javax.xml.parsers.ParserConfigurationException, java.io.IOException, org.xml.sax.SAXException, InvalidFormatException
board
using the information contained in a
zipFile
.
zipFile
- The source zipFile
board
java.io.IOException
- If there are file problems with the zipFile
javax.xml.parsers.ParserConfigurationException
- If there are syntactic error
in the XML document
InvalidFormatException
- If the XML document has an invalid format
org.xml.sax.SAXException
- If there are problems transforming the
text to a XML document
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |