@Override public void perform ( final DeploymentContext context, final OperatingSystemDescriptor operatingSystem ) throws Exception { runSetup ( context, this.module.getContainer ().getModules (), operatingSystem ); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public SetupModuleContainer getContainer () { if ( container != null && container.eIsProxy () ) { InternalEObject oldContainer = (InternalEObject)container; container = (SetupModuleContainer)eResolveProxy ( oldContainer ); if ( container != oldContainer ) { if ( eNotificationRequired () ) eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, SetupPackage.SUB_CONTAINER_MODULE__CONTAINER, oldContainer, container ) ); } } return container; }
/** * This returns the label styled text for the adapted class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object getStyledText ( Object object ) { String label = ( (SetupModuleContainer)object ).getId (); StyledString styledLabel = new StyledString (); if ( label == null || label.length () == 0 ) { styledLabel.append ( getString ( "_UI_SetupModuleContainer_type" ), StyledString.Style.QUALIFIER_STYLER ); //$NON-NLS-1$ } else { styledLabel.append ( getString ( "_UI_SetupModuleContainer_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " + label ); //$NON-NLS-1$ //$NON-NLS-2$ } return styledLabel; }
@Override public void perform ( final DeploymentContext context, final OperatingSystemDescriptor operatingSystem ) throws Exception { runSetup ( context, this.module.getContainer ().getModules (), operatingSystem ); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public SetupModuleContainer getSetup () { if ( setup != null && setup.eIsProxy () ) { InternalEObject oldSetup = (InternalEObject)setup; setup = (SetupModuleContainer)eResolveProxy ( oldSetup ); if ( setup != oldSetup ) { if ( eNotificationRequired () ) eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, DeploymentPackage.COMMON_DEPLOYMENT_MECHANISM__SETUP, oldSetup, setup ) ); } } return setup; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated NOT */ @Override public void validateOperatingSystem ( final OperatingSystemDescriptor descriptor, final ValidationContext ctx ) { if ( this.container == null ) { ctx.add ( "A sub container module must reference a setup container" ); } for ( final SetupModule module : this.container.getModules () ) { module.validateOperatingSystem ( descriptor, ctx ); } }
protected void runSetup ( final CommonDeploymentMechanism deploy, final DeploymentContext context, final IProgressMonitor monitor ) throws Exception { if ( deploy.getSetup () != null ) { SubModuleHandler.runSetup ( context, deploy.getSetup ().getModules (), this.deploy.getOperatingSystem () ); } SubModuleHandler.runSetup ( context, deploy.getAdditionalSetupModules (), deploy.getOperatingSystem () ); monitor.done (); }
protected void runSetup ( final CommonDeploymentMechanism deploy, final DeploymentContext context, final IProgressMonitor monitor ) throws Exception { if ( deploy.getSetup () != null ) { SubModuleHandler.runSetup ( context, deploy.getSetup ().getModules (), this.deploy.getOperatingSystem () ); } SubModuleHandler.runSetup ( context, deploy.getAdditionalSetupModules (), deploy.getOperatingSystem () ); monitor.done (); }