Bug 511783

Summary: Initialize tool operation with no-op operation
Product: [Modeling] Sirius Reporter: Laurent Fasani <laurent.fasani>
Component: CoreAssignee: Project inbox <sirius.core-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: laurent.fasani, pierre-charles.david, steve.monnier
Version: unspecifiedKeywords: triaged
Target Milestone: Next   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 496019    
Bug Blocks:    

Description Laurent Fasani CLA 2017-02-06 12:12:19 EST
Each time the specifier create a tool, he has to create a initial operation and most of the time create a changeContext operation.

This ticket is to consider that the InitialOperation and the ChangeContext(var:self) should be done automatically at the tool creation.

This ticket aim to generalize what have been done specifically to have navigate tool in properties view. https://bugs.eclipse.org/bugs/show_bug.cgi?id=496019.
Comment 1 Laurent Fasani CLA 2017-02-06 12:27:58 EST
This ticket should be handled simultaneously with https://bugs.eclipse.org/bugs/show_bug.cgi?id=508256 as the solution may be very similar.

A possible alternative is to superclass all the xxxItemProviderFactory with an implementation that could overload createChildParameter(Object feature, Object child). See providerRootExtendsClass attribute in edit part of xxx.genmodel.

Another alternative to study is to use ChildCreationExtender(on package
in genmodel)to extend ItemProviderFactory for a given package. It allows
to overload createChildParameter(Object feature, Object child). Then
overloading can be targeted on only the VSM packages.