]> gerrit.simantics Code Review - simantics/platform.git/commit
Improved error handling in shared library import wizard 37/237/2
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 29 Dec 2016 11:05:27 +0000 (13:05 +0200)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 29 Dec 2016 11:07:18 +0000 (14:07 +0300)
commit24e2b34260f219f0d1644ca7a138894980e25b14
tree067d56a8c67bae54e60f5e0ea0801544afbf69f6
parentd22ffb6cafbcefffc4d86023f46e9f8baee319fc
Improved error handling in shared library import wizard

Previously the wizard catched all exceptions in the wrong place causing
the UI to never show any errors to the user and just close the wizard as
if everything was successful. The problems were only printed to the
console and in selected cases also to the workspace error log.

This changes the import code to not catch any exceptions and let the UI
side deal with the thrown exceptions by logging them, showing them to
the user as the wizard's error message and in a separate error dialog.

refs #6903
[PRIVATE-12918]

Change-Id: I5014c86abb61e097b610d7f62e849d1737a4a92b
bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/migration/MigrationUtils.java
bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/sharedontology/wizard/SharedOntologyImportWizard.java