Community
Participate
Working Groups
The current Import Package from Workspace action only supports importing packages from models stored in the Eclipse workspace. Similar to the refactoring of the New Papyrus Model wizard in bug 401197, a pluggable provider of storage to search for UML models in which to look for packages is required. This will allow the one dialog to browse all available models, so the menu action should be renamed from "Import Package from Workspace" to "Import Package from User Model".
I can work on this.
r10291 on the cdo_kepler branch has a refactored UI for importing packages and applying profiles. The org.eclipse.papyrus.uml.tools plug-in has a new "importSources" extension point by which extensions can plug in custom sources for browsing models from which to import packages or apply profiles. A default extension that browses the workspace is included; a CDO extension for browsing connected repositories is implemented in a new org.eclipse.papyrus.cdo.uml.ui plug-in. The dialog used by the "Import Package from Workspace" action, which now is renamed as "Import Package from User Model" because models aren't only in the workspace, is refactored as a reusable PackageImportSourceDialog in the org.eclipse.papyrus.uml.tools plug-in. It is reused now by the applied-profiles property editor for packages to choose profiles to apply. One outcome of the refactoring is that, for both the Import Package and Apply Profile dialogs that allowed multiple selection of models from which to import content, there is now only one follow-up dialog from which the user chooses packages/profiles from within the selected models to import/apply, instead of one additional dialog for each model. This streamlines the workflow. In the case of importing packages, the second (and following) dialog(s) used to have radio buttons to choose whether to import or copy a package. This is now implemented as a second column in the tree in which the user may choose, for each package, whether to import or copy it. Buttons are provided to quickly select all for import or for copy, as well as to deselect all.
r10315 on cdo_kepler branch has some additional usability enhancements in the dialogs and fixes for profile migration in CDO resources.
r10380 This enhancement has been merged to the trunk.