|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.kcl.cch.jb.pliny.views.utils.PlinyTxtImporter
the importer to take a plain text file delineated into notes
and create a set of Pliny
NoteLucened
objects from them.
Constructor Summary | |
PlinyTxtImporter(String fileName)
|
Method Summary | |
String |
getFileName()
|
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. |
void |
setNoteStartID(String string)
|
void |
setReceivingFavourite(Resource resource)
|
void |
setReferentStartID(String string)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PlinyTxtImporter(String fileName)
Method Detail |
public String getFileName()
public void setReceivingFavourite(Resource resource)
public void setNoteStartID(String string)
public void setReferentStartID(String string)
public void run(org.eclipse.core.runtime.IProgressMonitor monitor) throws PlinyImportException
IPlinyImporter
run
in interface IPlinyImporter
monitor
- monitor to be used during the import
PlinyImportException
- all internally arising exceptions should be converted
to this exceptionpublic void setFileName(String fileName)
IPlinyImporter
setFileName
in interface IPlinyImporter
fileName
- public boolean getOptions(org.eclipse.swt.widgets.Shell parentShell)
IPlinyImporter
true
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 IPlinyImporter
parentShell
- 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 |