protected boolean createStandardSARLLifecycleFunctionTemplates ( String elementTypeName , Function1 < ? super String , ? extends ISarlActionBuilder > actionAdder , Procedure1 < ? super String > usesAdder ) { if ( ! isCreateStandardLifecycleFunctions ( ) ) { return false ; } usesAdder . apply ( LOGGING_CAPACITY_NAME ) ; ISarlActionBuilder action = actionAdder . apply ( INSTALL_SKILL_NAME ) ; IBlockExpressionBuilder block = action . getExpression ( ) ; block . setInnerDocumentation ( MessageFormat . format ( Messages . AbstractNewSarlElementWizardPage_19 , elementTypeName ) ) ; IExpressionBuilder expr = block . addExpression ( ) ; createInfoCall ( expr , "Installing the " + elementTypeName ) ; //$NON-NLS-1$ action = actionAdder . apply ( UNINSTALL_SKILL_NAME ) ; block = action . getExpression ( ) ; block . setInnerDocumentation ( MessageFormat . format ( Messages . AbstractNewSarlElementWizardPage_20 , elementTypeName ) ) ; expr = block . addExpression ( ) ; createInfoCall ( expr , "Uninstalling the " + elementTypeName ) ; //$NON-NLS-1$ return true ; }
Create the default standard lifecycle function templates .