Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 401830 - [CDO] Import packages from repository models
Summary: [CDO] Import packages from repository models
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 0.10.0   Edit
Hardware: PC Mac OS X
: P2 enhancement (vote)
Target Milestone: M6   Edit
Assignee: Christian Damus CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 290952
  Show dependency tree
 
Reported: 2013-02-26 15:22 EST by Christian Damus CLA
Modified: 2013-03-06 11:14 EST (History)
0 users

See Also:
give.a.damus: kepler+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Damus CLA 2013-02-26 15:22:42 EST
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".
Comment 1 Christian Damus CLA 2013-02-26 15:23:29 EST
I can work on this.
Comment 2 Christian Damus CLA 2013-02-27 17:18:06 EST
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.
Comment 3 Christian Damus CLA 2013-03-01 08:39:26 EST
r10315 on cdo_kepler branch has some additional usability enhancements in the dialogs and fixes for profile migration in CDO resources.
Comment 4 Christian Damus CLA 2013-03-06 11:12:43 EST
r10380

This enhancement has been merged to the trunk.
Comment 5 Christian Damus CLA 2013-03-06 11:14:54 EST
r10380

This enhancement has been merged to the trunk.