|
VdexReload 1.1.3 API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.reload.editor.contentpackaging.resourceview.ResourceImporter
ResourceImporter class. Class is used to decide what type of resource the user is trying to import into the resources pool. It will decide on which it is and then either call the HTMLParser to find dependencies or simply copy over the files (or folder contents) into the project folder (resource pool)
Field Summary | |
protected boolean |
_cancelOperation
Because we are using nested and recursive function calls it is neccessary to hold a implementation of when a user clicks on the cancel button of a dialogue box. |
protected boolean |
_yesToAll
|
Fields inherited from interface uk.ac.reload.dweezil.DweezilConstants |
CR, DEBUG |
Constructor Summary | |
ResourceImporter(java.io.File[] files,
java.io.File destination,
boolean obtainDependencies,
ReloadProgressMonitor progressMonitor)
Constructor - Is passed an array of file references |
|
ResourceImporter(java.io.File aFile,
java.io.File destination,
boolean obtainDependencies,
ReloadProgressMonitor progressMonitor)
Constructor - Is passed a file reference |
Method Summary | |
static void |
copyFile(java.io.File from,
java.io.File to)
Copy a file to a different file. |
boolean |
getHasUserImportedFiles()
Accessor method to return the above variable |
protected void |
showMessageDialog(java.lang.String msg,
java.lang.String title)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected boolean _yesToAll
protected boolean _cancelOperation
Constructor Detail |
public ResourceImporter(java.io.File aFile, java.io.File destination, boolean obtainDependencies, ReloadProgressMonitor progressMonitor)
aFile
- - The file we want to importdestination
- - The destination folder to copy it toobtainDependencies
- - Does the user want to pull all dependencies acrosspublic ResourceImporter(java.io.File[] files, java.io.File destination, boolean obtainDependencies, ReloadProgressMonitor progressMonitor)
files
- - An array of files we wish to importdestination
- - The destination folder to copy it toobtainDependencies
- - Does the user want to pull all dependencies acrossMethod Detail |
public boolean getHasUserImportedFiles()
protected void showMessageDialog(java.lang.String msg, java.lang.String title)
public static void copyFile(java.io.File from, java.io.File to)
from
- to
-
java.io.IOException
|
VdexReload 1.1.3 API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |