For example:
Model 1:
abstract class Command{}
Model 2:
class Command1 extends Command{ ...}
class Command2 extends Command{ ...}
Model 3:
class CommandHolder {
val Command[+] commands;
}
Now i generate the Editor to Model3 and want Command1 and Command2 to become selectable as children of the CommandHolder Element.
This means, if i create a CommandHolder File with the commands element as root element and make a right click on it and select [New Child] i would like Command1 and Command2 to appear in this list.
Is this possible without changing the generated source code?
Greetings
So i could not realize it without changing the generated code but i have a working solution.
In the specific item provider in the collectNewChildDescriptors Method from the CommandHolder i added
The EcoreHelper Methods: