/** * 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 ( ProfilePackage.Literals.SUB_PROFILE__PROPERTY, ProfileFactory.eINSTANCE.createSystemProperty () ) ); }
private void put ( final Profile prof, final String key, final String value ) { final SystemProperty prop = ProfileFactory.eINSTANCE.createSystemProperty (); prof.getProperty ().add ( prop ); prop.setEval ( false ); prop.setKey ( key ); prop.setValue ( value ); }
private void put ( final Profile prof, final String key, final String value ) { final SystemProperty prop = ProfileFactory.eINSTANCE.createSystemProperty (); prof.getProperty ().add ( prop ); prop.setEval ( false ); prop.setKey ( key ); prop.setValue ( value ); }
/** * 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 ( ProfilePackage.Literals.PROFILE__START, ProfileFactory.eINSTANCE.createStartBundle () ) ); newChildDescriptors.add ( createChildParameter ( ProfilePackage.Literals.PROFILE__SETBSL, ProfileFactory.eINSTANCE.createBundleStartLevel () ) ); newChildDescriptors.add ( createChildParameter ( ProfilePackage.Literals.PROFILE__PROPERTY, ProfileFactory.eINSTANCE.createSystemProperty () ) ); newChildDescriptors.add ( createChildParameter ( ProfilePackage.Literals.PROFILE__PROFILE, ProfileFactory.eINSTANCE.createSubProfile () ) ); }
public static void addSystemProperty ( final Profile profile, final String key, final Object value ) { removeSystemProperty ( profile, key ); // now add final SystemProperty prop = ProfileFactory.eINSTANCE.createSystemProperty (); prop.setKey ( key ); if ( value != null ) { prop.setValue ( "" + value ); } else { // we do set null here since we want to cancel out higher level values prop.setValue ( null ); } profile.getProperty ().add ( prop ); }
public static void addSystemProperty ( final Profile profile, final String key, final Object value ) { removeSystemProperty ( profile, key ); // now add final SystemProperty prop = ProfileFactory.eINSTANCE.createSystemProperty (); prop.setKey ( key ); if ( value != null ) { prop.setValue ( "" + value ); } else { // we do set null here since we want to cancel out higher level values prop.setValue ( null ); } profile.getProperty ().add ( prop ); }
public void process ( final EquinoxApplication app ) { // get profile final Profile profile = Profiles.createOrGetCustomizationProfile ( app ); // add system property final SystemProperty prop = ProfileFactory.eINSTANCE.createSystemProperty (); prop.setKey ( PropertyAuthenticationService.PROP ); prop.setValue ( makeValue ( this.userService.getUsers () ) ); profile.getProperty ().add ( prop ); // add service Profiles.addStartBundle ( profile, "org.eclipse.scada.sec.provider.plain.property" ); }