|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectuk.ac.kcl.cch.jb.pliny.views.utils.PlinyArchiveImporter
the Pliny Archive importer. The Pliny Archive is a ZIP file.
The ZIP file contains an XML file containing the data about
Pliny model objects that come from the backing store, and items
that have been stored by
IResourceExtensionProcessors.
For each
Resource that has a
IResoruceExtensionProcessor associated with it, the importer will give
processor a chance to fetch the data the exporter stored in the archive
for it, by a call to the processor's #processArchiveEntries method.
PlinyArchiveExporter| Constructor Summary | |
PlinyArchiveImporter()
|
|
PlinyArchiveImporter(String fileName)
|
|
| Method Summary | |
void |
dispose()
|
InputStream |
getArchiveEntry(String name)
asks the archive reader to deliver an InputStream from the archive for the given component name. |
boolean |
getOptions(org.eclipse.swt.widgets.Shell parentShell)
the importer will call this method when it is time to get options from the user that will control this importer. |
void |
run(org.eclipse.core.runtime.IProgressMonitor monitor)
the exportAction will call this method when it is time to do the import. |
void |
setFileName(String fileName)
the export Action will call this method to provide a String containing the fully qualified fileName that is to be used for the import. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PlinyArchiveImporter()
public PlinyArchiveImporter(String fileName)
| Method Detail |
public void setFileName(String fileName)
IPlinyImporter
setFileName in interface IPlinyImporterfileName - public void dispose()
public InputStream getArchiveEntry(String name)
IGetsArchiveEntries
getArchiveEntry in interface IGetsArchiveEntriesname - String requested archive data component.
public void run(org.eclipse.core.runtime.IProgressMonitor monitor)
throws PlinyImportException
IPlinyImporter
run in interface IPlinyImportermonitor - monitor to be used during the import
PlinyImportException - all internally arising exceptions should be converted
to this exceptionpublic boolean getOptions(org.eclipse.swt.widgets.Shell parentShell)
IPlinyImportertrue if the user has confirmed
that the import is to go ahead. Simply return true
and do nothing else if there are no options to be provided.
If there are options, this code should invoke a wizard to get
them from the user.
getOptions in interface IPlinyImporterparentShell - Shell to be used to support display of a wizard
for options.
true if user wants to proceed to actual import
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||