Package lu.kbra.modelizer_next.ui.impl
Interface DocumentLoadHandler
- All Known Implementing Classes:
ConsoleDocumentLoadHandler,SwingDocumentLoadHandler
public interface DocumentLoadHandler
Callback interface used by document loaders to report success or failure.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanconfirmLegacyImport(File file) Confirms whether the legacy import should continue.booleanconfirmNewerVersion(String fileVersion, String appVersion) Confirms whether the newer version should continue.voidReports the error.
-
Method Details
-
confirmLegacyImport
Confirms whether the legacy import should continue.- Parameters:
file- file to read or write- Returns:
truewhen the condition is met; otherwisefalse
-
confirmNewerVersion
Confirms whether the newer version should continue.- Parameters:
fileVersion- text value for file versionappVersion- text value for application version- Returns:
truewhen the condition is met; otherwisefalse
-
error
Reports the error.- Parameters:
message- message shown to the caller or userex- exception that caused the failure
-