Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 277680 - Control mode
Summary: Control mode
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 0.9.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Emilien Perico CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 296158 313302 376740 376749
Blocks: 275628 309798
  Show dependency tree
 
Reported: 2009-05-25 08:20 EDT by Raphael Faudou CLA
Modified: 2013-05-27 05:15 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raphael Faudou CLA 2009-05-25 08:20:45 EDT
create sub models (integration of EMF control command)
 With "control" command, a wizard is displayed to choose the name and directory of the new sub model file. 
 By default, the directory is the same as the current (parent) model and the name is the one of the current element on which the "control" command is applied.
 If there are profiles applied in the parent model, those profile applications must be done for the controllled sub model so that stereotypes can be seen.
 In parent model, the submodel can be seen but is in readOnly.
 In sub model, if there are dependencies with the parent model (types, actors...) the parent model maight be loaded as additional resource but must be set in readonly.
Comment 1 Emilien Perico CLA 2009-11-10 08:45:08 EST
the feature is now available on the trunk and partially implemented.
Applied profiles are not managed yet.

You can read specifications document to know the status. It is available as attached file of task 275628.
For now you can control as a first level. Notation and/or DI metamodel must be improved to manage several levels.
Comment 2 Emilien Perico CLA 2010-07-01 09:00:12 EDT
The feature is now implemented. There are some restrictions on Uncontrol command because of additional resources saving. It will be implemented once we will be able to save the additional resources.
Comment 3 Emilien Perico CLA 2011-01-07 10:59:32 EST
- update history when uncontrol is done is specific cases. Need to update resourceURL of controlled resources in low levels
- disable control/uncontrol action from an incorrect resource. Control is possible from the resource that contains the selection. A popup warn the user about this behavior
Comment 4 Emilien Perico CLA 2011-01-10 11:11:51 EST
fix bug with children assignment in historic for specific cases of control
Comment 5 Emilien Perico CLA 2011-01-13 11:40:53 EST
fix bug with children assignment in historic for specific cases of control and relative paths
Comment 6 Mathieu Velten CLA 2011-03-08 05:44:21 EST
I backported the getAssociated* methods in diresourceset.

This is added to avoid completely breaking the control mode but this needs to be removed before the release by modifying the di model to be hierarchical for example.
Comment 7 Sébastien Gérard CLA 2013-05-27 04:49:52 EDT
(In reply to comment #3)
> - update history when uncontrol is done is specific cases. Need to update
> resourceURL of controlled resources in low levels
> - disable control/uncontrol action from an incorrect resource. Control is
> possible from the resource that contains the selection. A popup warn the user
> about this behavior
Fixed.
Comment 8 Mathieu Velten CLA 2013-05-27 05:15:20 EDT
regarding the history model :

This is now quite useless, we have a fallback method (in 0.8 at least) that go throught all the resources in the resource set looking for the fragment.

I am planning to deprecate the history model and remove all references to it but this will be done after the release since I am quite busy ATM.