Project

General

Profile

Feature #2343

Handle complex copy&paste operations in the tooling plugins

Added by Alexander Diewald over 5 years ago. Updated almost 3 years ago.

Status:
New
Priority:
Normal
Category:
-
Target version:
Start date:
06/02/2015
Due date:
% Done:

0%

Estimated time:
4.00 h

Description

Current Status

Simple copy&paste operations are handled in the kernel which consist of copying a single element. For complex copy&paste operations, i.e. copying multiple model elements at once, the current solution is to make all participating model elements to inherit from ISpeciallyCopyable. Then, specialized methods are invoked during the copy operation which care for copying all model elements and the selected connections between these elements.
This approach is currently implemented seperately in at least two plugins while sharing the same logic, namely the component and the platform plugin.

Desired outcome & existing implementation

In order to avoid code duplication and to ease the implementation of future models, the solutions from the component and the platform plugins should be merged into the tooling plugins for the following reasons:
- The "copy&paste problem" appears in each meta-model where model elements are connected.
- The basic functionality of the current solution relies "only" on the classes IHierarchicElement, IConnection and IConnector which are part of the tooling plugins.

The implementation of the ISpeciallyCopyable methods in the platform plugin (org.fortiss.af3.platform.model.impl.*) are already written in a quite generic manner, i.e. they are based on IHierarchicElements. Hence, these methods qualify to serve as base that can be easily adapted for a tooling/kernel implementation. However, there are still some remainders using TransmissionConnections that are defined in the platform plugin. Nevertheless these remainders are expected to be easily replaceable by their IConnection base class.


Related issues

Related to Bug #2237: Platform Architecture: Transmission Connections not considered in copy&pasteClosed01/28/2015

Related to Feature #1865: MIRA: Copy traces when copying requirementsRejected12/12/2013

History

#1 Updated by Alexander Diewald over 5 years ago

  • Related to Bug #2237: Platform Architecture: Transmission Connections not considered in copy&paste added

#2 Updated by Anonymous about 5 years ago

  • Target version changed from AF3 2.8 RC1 (Feature Freeze) to AF3 2.10 GUI Improvement Week

#3 Updated by Anonymous over 4 years ago

  • Assignee set to Anonymous

#4 Updated by Johannes Eder about 4 years ago

  • Target version changed from AF3 2.10 GUI Improvement Week to AF3 2.10 Feature Freeze

#5 Updated by Anonymous about 4 years ago

  • Target version changed from AF3 2.10 Feature Freeze to AF3 2.11 GUI Improvement Week

#6 Updated by Anonymous over 3 years ago

  • Target version changed from AF3 2.11 GUI Improvement Week to AF3 2.12 GUI Sprint

#7 Updated by Anonymous almost 3 years ago

  • Assignee changed from Anonymous to Alexander Diewald

I think we should move it to AF4 requirements? What is your opinion?

#8 Updated by Alexander Diewald almost 3 years ago

  • Target version changed from AF3 2.12 GUI Sprint to AF4 Requirements

Fine with me. If we would refactor this feature now, we would need port it forward anyways. It is not an urgent issue.

#9 Updated by Simon Barner over 2 years ago

  • Related to Feature #1865: MIRA: Copy traces when copying requirements added

Also available in: Atom PDF