public class ImportModuleDependenciesAction extends FigureAction
| Modifier and Type | Class and Description |
|---|---|
static class |
ImportModuleDependenciesAction.ImportChoice
The user choice when dealing with a KAR with missing dependencies.
|
FigureAction.SourceTypeCANVAS_TYPE, CONTEXTMENU_TYPE, HOTKEY_TYPE, MENUBAR_TYPE, PASTE_OFFSET, TOOLBAR_TYPE| Constructor and Description |
|---|
ImportModuleDependenciesAction(TableauFrame parent)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Invoked when an action occurs.
|
ImportModuleDependenciesAction.ImportChoice |
checkDependencies()
Check the dependencies and ask the user how to proceed.
|
boolean |
getNeedToDoAForceExport() |
void |
setArchiveFile(java.io.File archiveFile)
Explicitly set the Archive file for this dependency broken KAR file.
|
void |
setDependencies(java.util.List<java.lang.String> deps)
Explicitly set the dependencies for this dependeny broken KAR
|
void |
setExportMode(boolean export)
By default, dialogs describe and attempt to Open KAR.
|
void |
setKarXml(KarXml karXml) |
void |
updateHistoryAndLastDirectory(boolean updateHistoryAndLastDirectory)
Change whether or not to update Kepler's Recent Files menu, and
last directory setting.
|
void |
waitForDownloadAndRestart()
Wait for the download to complete.
|
getFigure, getFrame, getSourceType, getTarget, getX, getY, offsetFigurepublic ImportModuleDependenciesAction(TableauFrame parent)
parent - the "frame" (derived from ptolemy.gui.Top) where the menu is
being added.public void setDependencies(java.util.List<java.lang.String> deps)
deps - public void setArchiveFile(java.io.File archiveFile)
archiveFile - public void setExportMode(boolean export)
export - public void updateHistoryAndLastDirectory(boolean updateHistoryAndLastDirectory)
updateHistoryAndLastDirectory - public boolean getNeedToDoAForceExport()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListeneractionPerformed in class FigureActione - ActionEventpublic ImportModuleDependenciesAction.ImportChoice checkDependencies()
public void waitForDownloadAndRestart()