]> gerrit.simantics Code Review - simantics/platform.git/commit
ModelImportWizard.doImport does not import the model to specified target 21/821/2
authorJussi Koskela <jussi.koskela@semantum.fi>
Wed, 9 Aug 2017 10:00:35 +0000 (13:00 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 10 Aug 2017 14:15:59 +0000 (17:15 +0300)
commit1ab8209ad38dd5822f982f2aab4ad2c9fb3ef4dc
treefed3f7f296df566462c41e7d83332ab90cc9d0a7
parent70df15d1aa2355d488b330d2c1c9527d0dff6ca5
ModelImportWizard.doImport does not import the model to specified target

When triggered from the UI the target should always be the project
resource. Otherwise any target resource should be accepted.
DefaultPasteImportAdvisor must be used instead of the
ModelImportAdvisor, since ModelImportAdvisor always replaces the target
with the project resource (to support copy-pasting of models in UI).

refs #7418

Change-Id: I1b7eaef30ab32154319822c0615b9ab96a3f70b6
bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/sharedontology/wizard/ModelImportWizard.java