public abstract class AbstractImportTool extends AbstractWandoraTool implements WandoraTool
Modifier and Type | Field and Description |
---|---|
static int |
ASK_SOURCE |
protected boolean |
askSource |
static int |
CLOSE_LOGS |
protected boolean |
closeLogs |
static int |
CUSTOM_IMPORTER |
protected boolean |
directMerge
Are imported topics and associations added directly into the current topic map.
|
static int |
FILE_DIALOG_TITLE_TEXT |
static int |
FILE_IMPORTER |
java.lang.Object |
forceFiles |
private AbstractImportDialog |
importSourceDialog |
protected boolean |
newLayer
Should the application create a new layer for the imported topic map.
|
static int |
RAW_IMPORTER |
protected boolean |
resetWandoraFirst
Should the application reset everything before the import takes place.
|
private int |
selectedImportSource |
static int |
TOPICMAP_DIRECT_MERGE |
static int |
TOPICMAP_MAKE_NEW_LAYER |
static int |
TOPICMAP_RESET_FIRST |
static int |
URL_DIALOG_MESSAGE_TEXT |
static int |
URL_IMPORTER |
static int |
WEB_IMPORT |
protected boolean |
webImport |
Constructor and Description |
---|
AbstractImportTool()
Creates a new instance of AbstractImportTool
|
AbstractImportTool(int options) |
Modifier and Type | Method and Description |
---|---|
protected void |
createNewLayer(TopicMap topicMap,
java.lang.String streamName,
Wandora wandora) |
void |
execute(Wandora wandora,
Context context)
Runs the tool.
|
void |
finalizeImport(Wandora wandora) |
java.lang.String |
getGUIText(int textType) |
javax.swing.Icon |
getIcon()
All tools may have identifying graphic icon used within tool GUI elements.
|
protected java.lang.String |
getLayerNameFor(java.lang.String streamName,
Wandora wandora) |
int |
getOptions() |
WandoraToolType |
getType()
Tool type is used to categorize tools.
|
void |
importFile(Wandora wandora,
java.io.File file) |
void |
importFiles(Wandora wandora,
java.io.File[] files) |
abstract void |
importStream(Wandora admin,
java.lang.String streamName,
java.io.InputStream inputStream) |
void |
importUrl(Wandora wandora,
java.net.URL forceURL) |
void |
initializeImport(Wandora wandora) |
void |
requestImports(Wandora wandora) |
void |
setOptions(int options) |
addUndoMarker, addUndoMarker, allowMultipleInvocations, clearAllThreads, clearThreads, clearThreads, clearToolLock, clearToolLock, clearToolLocks, configure, execute, execute, forceStop, forceStop, getContext, getCurrentLogger, getDefaultLogger, getDescription, getHistory, getLastLogger, getName, getState, getThreads, getThreads, getToolMenuItem, getToolMenuItem, getTopicName, hlog, initialize, interruptAllThreads, interruptThreads, interruptThreads, isConfigurable, isRunning, isRunning, lockLog, log, log, log, log, requiresRefresh, run, runInOwnThread, setContext, setDefaultLogger, setLogTitle, setProgress, setProgressMax, setState, setToolLogger, singleLog, singleLog, singleLog, solveContextTopicMap, solveNameForTopicMap, writeOptions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
configure, execute, execute, getContext, getDescription, getName, getToolMenuItem, hlog, initialize, isConfigurable, isRunning, log, log, log, log, requiresRefresh, setContext, setToolLogger, writeOptions
forceStop, getHistory, getState, lockLog, setLogTitle, setProgress, setProgressMax, setState
public static final int CUSTOM_IMPORTER
public static final int RAW_IMPORTER
public static final int FILE_IMPORTER
public static final int URL_IMPORTER
private AbstractImportDialog importSourceDialog
private int selectedImportSource
public static final int TOPICMAP_RESET_FIRST
public static final int TOPICMAP_DIRECT_MERGE
public static final int TOPICMAP_MAKE_NEW_LAYER
public static final int WEB_IMPORT
public static final int ASK_SOURCE
public static final int CLOSE_LOGS
public static final int FILE_DIALOG_TITLE_TEXT
public static final int URL_DIALOG_MESSAGE_TEXT
protected boolean resetWandoraFirst
protected boolean directMerge
protected boolean newLayer
protected boolean webImport
protected boolean askSource
protected boolean closeLogs
public java.lang.Object forceFiles
public AbstractImportTool()
public AbstractImportTool(int options)
public void setOptions(int options)
public int getOptions()
public WandoraToolType getType()
AbstractWandoraTool
Tool type is used to categorize tools. Tool type has no real effect today, it is merely an informative property of a tool.
getType
in interface WandoraTool
getType
in class AbstractWandoraTool
public javax.swing.Icon getIcon()
AbstractWandoraTool
getIcon
should return Icon
object of
the tool.getIcon
in interface WandoraTool
getIcon
in class AbstractWandoraTool
public void execute(Wandora wandora, Context context)
WandoraTool
execute
in interface WandoraTool
public void requestImports(Wandora wandora)
public void importUrl(Wandora wandora, java.net.URL forceURL)
public void importFile(Wandora wandora, java.io.File file)
public void importFiles(Wandora wandora, java.io.File[] files)
public abstract void importStream(Wandora admin, java.lang.String streamName, java.io.InputStream inputStream)
public void initializeImport(Wandora wandora)
public void finalizeImport(Wandora wandora)
public java.lang.String getGUIText(int textType)
protected void createNewLayer(TopicMap topicMap, java.lang.String streamName, Wandora wandora) throws TopicMapException
TopicMapException
protected java.lang.String getLayerNameFor(java.lang.String streamName, Wandora wandora)
Copyright 2004-2015 Wandora Team