/** * This returns the label styled text for the adapted class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object getStyledText ( Object object ) { HttpServiceModule httpServiceModule = (HttpServiceModule)object; return new StyledString ( getString ( "_UI_HttpServiceModule_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " ).append ( Short.toString ( httpServiceModule.getPort () ) ); //$NON-NLS-1$ //$NON-NLS-2$ }
@Override public void process ( final Module module, final Collection<ApplicationModule> modules, final EquinoxBase app, final org.eclipse.scada.configuration.world.osgi.EquinoxApplication implApp ) { final HttpService s = OsgiFactory.eINSTANCE.createHttpService (); final Endpoint ep = Endpoints.registerEndpoint ( implApp, ( (HttpServiceModule)module ).getPort (), Endpoints.reference ( s ), "HTTP Endpoint" ); 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 ) { HttpServiceModule httpServiceModule = (HttpServiceModule)object; return new StyledString ( getString ( "_UI_HttpServiceModule_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " ).append ( Short.toString ( httpServiceModule.getPort () ) ); //$NON-NLS-1$ //$NON-NLS-2$ }