135 * <!-- end-user-doc --> |
135 * <!-- end-user-doc --> |
136 * @generated |
136 * @generated |
137 */ |
137 */ |
138 @Override |
138 @Override |
139 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
139 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
140 switch (featureID) { |
140 if(featureID == PIConfigPackage.BUTTON_EVENT_PROFILE_TYPE__MAPPING){ |
141 case PIConfigPackage.BUTTON_EVENT_PROFILE_TYPE__MAPPING: |
141 return ((InternalEList<?>)getMapping()).basicRemove(otherEnd, msgs); |
142 return ((InternalEList<?>)getMapping()).basicRemove(otherEnd, msgs); |
142 }else{ |
143 } |
143 return super.eInverseRemove(otherEnd, featureID, msgs); |
144 return super.eInverseRemove(otherEnd, featureID, msgs); |
144 } |
145 } |
145 } |
146 |
146 |
147 /** |
147 /** |
148 * <!-- begin-user-doc --> |
148 * <!-- begin-user-doc --> |
149 * <!-- end-user-doc --> |
149 * <!-- end-user-doc --> |
150 * @generated |
150 * @generated |
151 */ |
151 */ |
152 @Override |
152 @Override |
153 public Object eGet(int featureID, boolean resolve, boolean coreType) { |
153 public Object eGet(int featureID, boolean resolve, boolean coreType) { |
154 switch (featureID) { |
154 if(featureID == PIConfigPackage.BUTTON_EVENT_PROFILE_TYPE__MAPPING){ |
155 case PIConfigPackage.BUTTON_EVENT_PROFILE_TYPE__MAPPING: |
155 return getMapping(); |
156 return getMapping(); |
156 }else if(featureID == PIConfigPackage.BUTTON_EVENT_PROFILE_TYPE__PROFILE_ID){ |
157 case PIConfigPackage.BUTTON_EVENT_PROFILE_TYPE__PROFILE_ID: |
157 return getProfileId(); |
158 return getProfileId(); |
158 }else{ |
159 } |
159 return super.eGet(featureID, resolve, coreType); |
160 return super.eGet(featureID, resolve, coreType); |
160 } |
161 } |
161 } |
162 |
162 |
163 /** |
163 /** |
164 * <!-- begin-user-doc --> |
164 * <!-- begin-user-doc --> |
165 * <!-- end-user-doc --> |
165 * <!-- end-user-doc --> |
166 * @generated |
166 * @generated |
167 */ |
167 */ |
168 @SuppressWarnings("unchecked") |
168 @SuppressWarnings("unchecked") |
169 @Override |
169 @Override |
170 public void eSet(int featureID, Object newValue) { |
170 public void eSet(int featureID, Object newValue) { |
171 switch (featureID) { |
171 if(featureID == PIConfigPackage.BUTTON_EVENT_PROFILE_TYPE__MAPPING){ |
172 case PIConfigPackage.BUTTON_EVENT_PROFILE_TYPE__MAPPING: |
172 getMapping().clear(); |
173 getMapping().clear(); |
173 getMapping().addAll((Collection<? extends MappingType>)newValue); |
174 getMapping().addAll((Collection<? extends MappingType>)newValue); |
174 }else if(featureID == PIConfigPackage.BUTTON_EVENT_PROFILE_TYPE__PROFILE_ID){ |
175 return; |
175 setProfileId((String)newValue); |
176 case PIConfigPackage.BUTTON_EVENT_PROFILE_TYPE__PROFILE_ID: |
176 }else{ |
177 setProfileId((String)newValue); |
177 super.eSet(featureID, newValue); |
178 return; |
178 } |
179 } |
|
180 super.eSet(featureID, newValue); |
|
181 } |
179 } |
182 |
180 |
183 /** |
181 /** |
184 * <!-- begin-user-doc --> |
182 * <!-- begin-user-doc --> |
185 * <!-- end-user-doc --> |
183 * <!-- end-user-doc --> |
186 * @generated |
184 * @generated |
187 */ |
185 */ |
188 @Override |
186 @Override |
189 public void eUnset(int featureID) { |
187 public void eUnset(int featureID) { |
190 switch (featureID) { |
188 if(featureID == PIConfigPackage.BUTTON_EVENT_PROFILE_TYPE__MAPPING){ |
191 case PIConfigPackage.BUTTON_EVENT_PROFILE_TYPE__MAPPING: |
189 getMapping().clear(); |
192 getMapping().clear(); |
190 }if(featureID == PIConfigPackage.BUTTON_EVENT_PROFILE_TYPE__PROFILE_ID){ |
193 return; |
191 setProfileId(PROFILE_ID_EDEFAULT); |
194 case PIConfigPackage.BUTTON_EVENT_PROFILE_TYPE__PROFILE_ID: |
192 }else{ |
195 setProfileId(PROFILE_ID_EDEFAULT); |
193 super.eUnset(featureID); |
196 return; |
194 } |
197 } |
|
198 super.eUnset(featureID); |
|
199 } |
195 } |
200 |
196 |
201 /** |
197 /** |
202 * <!-- begin-user-doc --> |
198 * <!-- begin-user-doc --> |
203 * <!-- end-user-doc --> |
199 * <!-- end-user-doc --> |
204 * @generated |
200 * @generated |
205 */ |
201 */ |
206 @Override |
202 @Override |
207 public boolean eIsSet(int featureID) { |
203 public boolean eIsSet(int featureID) { |
208 switch (featureID) { |
204 if(featureID == PIConfigPackage.BUTTON_EVENT_PROFILE_TYPE__MAPPING){ |
209 case PIConfigPackage.BUTTON_EVENT_PROFILE_TYPE__MAPPING: |
205 return mapping != null && !mapping.isEmpty(); |
210 return mapping != null && !mapping.isEmpty(); |
206 }else if(featureID == PIConfigPackage.BUTTON_EVENT_PROFILE_TYPE__PROFILE_ID){ |
211 case PIConfigPackage.BUTTON_EVENT_PROFILE_TYPE__PROFILE_ID: |
207 return PROFILE_ID_EDEFAULT == null ? profileId != null : !PROFILE_ID_EDEFAULT.equals(profileId); |
212 return PROFILE_ID_EDEFAULT == null ? profileId != null : !PROFILE_ID_EDEFAULT.equals(profileId); |
208 }else{ |
213 } |
209 return super.eIsSet(featureID); |
214 return super.eIsSet(featureID); |
210 } |
215 } |
211 } |
216 |
212 |
217 /** |
213 /** |
218 * <!-- begin-user-doc --> |
214 * <!-- begin-user-doc --> |
219 * <!-- end-user-doc --> |
215 * <!-- end-user-doc --> |