@Override public void process ( final Module module, final Collection<ApplicationModule> modules, final EquinoxBase app, final org.eclipse.scada.configuration.world.osgi.EquinoxApplication implApp ) { final Profile p = Profiles.createOrGetCustomizationProfile ( implApp ); for ( final String bundle : BUNDLES ) { p.getInstallationUnits ().add ( bundle ); Profiles.addStartBundle ( p, bundle ); } final EventInjectorSyslog s = OsgiFactory.eINSTANCE.createEventInjectorSyslog (); final org.eclipse.scada.configuration.infrastructure.EventInjectorSyslog m = (org.eclipse.scada.configuration.infrastructure.EventInjectorSyslog)module; final Endpoint ep = Endpoints.registerEndpoint ( implApp, m.getPort (), Endpoints.reference ( s ), "Syslog Receiver Endpoint" ); s.setBindAddress ( m.getBindAddress () ); s.setEndpoint ( ep ); modules.add ( s ); } }
/** * 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 = ( (EventInjectorSyslog)object ).getBindAddress (); StyledString styledLabel = new StyledString (); if ( label == null || label.length () == 0 ) { styledLabel.append ( getString ( "_UI_EventInjectorSyslog_type" ), StyledString.Style.QUALIFIER_STYLER ); //$NON-NLS-1$ } else { styledLabel.append ( getString ( "_UI_EventInjectorSyslog_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " + label ); //$NON-NLS-1$ //$NON-NLS-2$ } return styledLabel; }
/** * 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 = ( (EventInjectorSyslog)object ).getBindAddress (); StyledString styledLabel = new StyledString (); if ( label == null || label.length () == 0 ) { styledLabel.append ( getString ( "_UI_EventInjectorSyslog_type" ), StyledString.Style.QUALIFIER_STYLER ); //$NON-NLS-1$ } else { styledLabel.append ( getString ( "_UI_EventInjectorSyslog_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " + label ); //$NON-NLS-1$ //$NON-NLS-2$ } return styledLabel; }