Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 348653 - [Model Explorer] Some "move" in the model explorer should be forbidden
Summary: [Model Explorer] Some "move" in the model explorer should be forbidden
Status: NEW
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 355731
  Show dependency tree
 
Reported: 2011-06-07 17:43 EDT by Yann Tanguy CLA
Modified: 2017-09-08 09:53 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yann Tanguy CLA 2011-06-07 17:43:39 EDT
It may be a good option to make some "creation verification" before allowing to move elements.

For example if the creation of a FlowProperty is only allowed on FlowSpecification, there is no reason to allow to move such element on any other kind of elements (ex: an Enumeration).
Currently the default policy is "always allow" to move elements (if allow by UML2 EMF implementation). It may be better to choose the opposite policy "Always forbid" and make exception where an implementation is provided, or behavior has been validated.
Comment 1 Ansgar Radermacher CLA 2013-03-19 06:04:34 EDT
This can be reproduced with 0.10.X. I don't think that we should prevent to move a flow property to an interface that is not stereotyped as FlowSpecification, since the user might want to add the FlowSpecification stereotype to the latter or remove the FlowPropery stereotype from the former. This should perhaps be part of model validation rules.
However, it should not be possible to move a property into an enumeration, as we don't allow the creation of a property within an enumeration (even if the latter is technically a classifier).