public abstract class AbstractAsyncTagExporter extends ClientFileUtilities.CharFileWritingTask implements AsyncClientTask
Modifier and Type | Class and Description |
---|---|
class |
AbstractAsyncTagExporter.EmptyExportException
This checked exception is thrown when trying to export from a provider with no tags
|
Constructor and Description |
---|
AbstractAsyncTagExporter(DesignerContext context,
java.io.File target,
java.util.List<TagPath> tagPaths,
java.util.List<TagPath> typePaths) |
Modifier and Type | Method and Description |
---|---|
boolean |
canCancel()
Whether or not the user is allowed to cancel the operation.
|
protected void |
collectTags() |
protected TaskProgressUpdater |
getProgressListener() |
protected java.util.List<TagNode> |
getTags() |
java.lang.String |
getTaskTitle()
A helpful title describing the operation for the user.
|
protected ComplexTypeManager |
getTypeManager() |
protected java.util.List<TagNode> |
getTypes() |
void |
run(TaskProgressListener progressListener)
The "work" function.
|
protected void |
setFailed() |
void |
writeToFile(java.io.File file) |
writeToFile
public AbstractAsyncTagExporter(DesignerContext context, java.io.File target, java.util.List<TagPath> tagPaths, java.util.List<TagPath> typePaths) throws AbstractAsyncTagExporter.EmptyExportException
protected ComplexTypeManager getTypeManager()
protected java.util.List<TagNode> getTags()
protected java.util.List<TagNode> getTypes()
public java.lang.String getTaskTitle()
AsyncClientTask
getTaskTitle
in interface AsyncClientTask
public boolean canCancel()
AsyncClientTask
canCancel
in interface AsyncClientTask
protected TaskProgressUpdater getProgressListener()
protected void setFailed()
public final void writeToFile(java.io.File file) throws java.io.IOException
writeToFile
in interface ClientFileUtilities.FileWritingTask
writeToFile
in class ClientFileUtilities.CharFileWritingTask
java.io.IOException
public void run(TaskProgressListener progressListener) throws java.lang.Exception
AsyncClientTask
run
in interface AsyncClientTask
java.lang.Exception
protected void collectTags() throws java.lang.Exception
java.lang.Exception