public static OutputSpecification createOutput ( final String string, final DataType dataType ) { final OutputSpecification output = ComponentFactory.eINSTANCE.createOutputSpecification (); output.setName ( string ); output.setDataType ( dataType ); return output; } }
public static OutputSpecification createOutput ( final String string, final DataType dataType ) { final OutputSpecification output = ComponentFactory.eINSTANCE.createOutputSpecification (); output.setName ( string ); output.setDataType ( dataType ); return output; } }
/** * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children * that can be created under this object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override protected void collectNewChildDescriptors ( Collection<Object> newChildDescriptors, Object object ) { super.collectNewChildDescriptors ( newChildDescriptors, object ); newChildDescriptors.add ( createChildParameter ( ComponentPackage.Literals.SCRIPT_MODULE__INPUTS, ComponentFactory.eINSTANCE.createInputSpecification () ) ); newChildDescriptors.add ( createChildParameter ( ComponentPackage.Literals.SCRIPT_MODULE__OUTPUTS, ComponentFactory.eINSTANCE.createOutputSpecification () ) ); newChildDescriptors.add ( createChildParameter ( ComponentPackage.Literals.SCRIPT_MODULE__INIT_SCRIPT, ComponentFactory.eINSTANCE.createScript () ) ); newChildDescriptors.add ( createChildParameter ( ComponentPackage.Literals.SCRIPT_MODULE__UPDATE_SCRIPT, ComponentFactory.eINSTANCE.createScript () ) ); newChildDescriptors.add ( createChildParameter ( ComponentPackage.Literals.SCRIPT_MODULE__WRITE_COMMAND_SCRIPT, ComponentFactory.eINSTANCE.createScript () ) ); newChildDescriptors.add ( createChildParameter ( ComponentPackage.Literals.SCRIPT_MODULE__TIMER_SCRIPT, ComponentFactory.eINSTANCE.createTimerScript () ) ); }
/** * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children * that can be created under this object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override protected void collectNewChildDescriptors ( Collection<Object> newChildDescriptors, Object object ) { super.collectNewChildDescriptors ( newChildDescriptors, object ); newChildDescriptors.add ( createChildParameter ( ComponentPackage.Literals.SCRIPT_MODULE__INPUTS, ComponentFactory.eINSTANCE.createInputSpecification () ) ); newChildDescriptors.add ( createChildParameter ( ComponentPackage.Literals.SCRIPT_MODULE__OUTPUTS, ComponentFactory.eINSTANCE.createOutputSpecification () ) ); newChildDescriptors.add ( createChildParameter ( ComponentPackage.Literals.SCRIPT_MODULE__INIT_SCRIPT, ComponentFactory.eINSTANCE.createScript () ) ); newChildDescriptors.add ( createChildParameter ( ComponentPackage.Literals.SCRIPT_MODULE__UPDATE_SCRIPT, ComponentFactory.eINSTANCE.createScript () ) ); newChildDescriptors.add ( createChildParameter ( ComponentPackage.Literals.SCRIPT_MODULE__WRITE_COMMAND_SCRIPT, ComponentFactory.eINSTANCE.createScript () ) ); newChildDescriptors.add ( createChildParameter ( ComponentPackage.Literals.SCRIPT_MODULE__TIMER_SCRIPT, ComponentFactory.eINSTANCE.createTimerScript () ) ); }