Skip to content

Package: VTTableStylePropertyImpl

VTTableStylePropertyImpl

nameinstructionbranchcomplexitylinemethod
VTTableStylePropertyImpl()
M: 0 C: 21
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 8
100%
M: 0 C: 1
100%
eGet(int, boolean, boolean)
M: 6 C: 25
81%
M: 1 C: 6
86%
M: 1 C: 6
86%
M: 1 C: 7
88%
M: 0 C: 1
100%
eIsSet(int)
M: 22 C: 11
33%
M: 8 C: 3
27%
M: 6 C: 3
33%
M: 4 C: 4
50%
M: 0 C: 1
100%
eSet(int, Object)
M: 42 C: 0
0%
M: 7 C: 0
0%
M: 7 C: 0
0%
M: 15 C: 0
0%
M: 1 C: 0
0%
eStaticClass()
M: 0 C: 2
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
eUnset(int)
M: 27 C: 0
0%
M: 7 C: 0
0%
M: 7 C: 0
0%
M: 15 C: 0
0%
M: 1 C: 0
0%
equalStyles(VTStyleProperty)
M: 0 C: 6
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getMaximumHeight()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getMinimumHeight()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getRenderMode()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getVisibleLines()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
isEnableSorting()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
isSetMaximumHeight()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
isSetMinimumHeight()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
isSetVisibleLines()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
isShowValidationSummaryTooltip()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
setEnableSorting(boolean)
M: 11 C: 10
48%
M: 1 C: 1
50%
M: 1 C: 1
50%
M: 2 C: 4
67%
M: 0 C: 1
100%
setMaximumHeight(int)
M: 16 C: 16
50%
M: 3 C: 1
25%
M: 2 C: 1
33%
M: 3 C: 6
67%
M: 0 C: 1
100%
setMinimumHeight(int)
M: 16 C: 16
50%
M: 3 C: 1
25%
M: 2 C: 1
33%
M: 3 C: 6
67%
M: 0 C: 1
100%
setRenderMode(RenderMode)
M: 13 C: 12
48%
M: 2 C: 2
50%
M: 2 C: 1
33%
M: 2 C: 4
67%
M: 0 C: 1
100%
setShowValidationSummaryTooltip(boolean)
M: 11 C: 10
48%
M: 1 C: 1
50%
M: 1 C: 1
50%
M: 3 C: 4
57%
M: 0 C: 1
100%
setVisibleLines(int)
M: 16 C: 16
50%
M: 3 C: 1
25%
M: 2 C: 1
33%
M: 3 C: 6
67%
M: 0 C: 1
100%
static {...}
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
toString()
M: 97 C: 0
0%
M: 8 C: 0
0%
M: 5 C: 0
0%
M: 26 C: 0
0%
M: 1 C: 0
0%
unsetMaximumHeight()
M: 11 C: 16
59%
M: 1 C: 1
50%
M: 1 C: 1
50%
M: 3 C: 6
67%
M: 0 C: 1
100%
unsetMinimumHeight()
M: 11 C: 16
59%
M: 1 C: 1
50%
M: 1 C: 1
50%
M: 3 C: 6
67%
M: 0 C: 1
100%
unsetVisibleLines()
M: 11 C: 16
59%
M: 1 C: 1
50%
M: 1 C: 1
50%
M: 3 C: 6
67%
M: 0 C: 1
100%

Coverage

1: /**
2: * Copyright (c) 2011-2016 EclipseSource Muenchen GmbH and others.
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License 2.0
6: * which accompanies this distribution, and is available at
7: * https://www.eclipse.org/legal/epl-2.0/
8: *
9: * SPDX-License-Identifier: EPL-2.0
10: *
11: * Contributors:
12: * EclipseSource Munich - initial API and implementation
13: */
14: package org.eclipse.emf.ecp.view.template.style.tableStyleProperty.model.impl;
15:
16: import org.eclipse.emf.common.notify.Notification;
17: import org.eclipse.emf.ecore.EClass;
18: import org.eclipse.emf.ecore.impl.ENotificationImpl;
19: import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
20: import org.eclipse.emf.ecp.common.spi.EMFUtils;
21: import org.eclipse.emf.ecp.view.template.model.VTStyleProperty;
22: import org.eclipse.emf.ecp.view.template.style.tableStyleProperty.model.RenderMode;
23: import org.eclipse.emf.ecp.view.template.style.tableStyleProperty.model.VTTableStyleProperty;
24: import org.eclipse.emf.ecp.view.template.style.tableStyleProperty.model.VTTableStylePropertyPackage;
25:
26: /**
27: * <!-- begin-user-doc -->
28: * An implementation of the model object '<em><b>Table Style Property</b></em>'.
29: * <!-- end-user-doc -->
30: * <p>
31: * The following features are implemented:
32: * </p>
33: * <ul>
34: * <li>{@link org.eclipse.emf.ecp.view.template.style.tableStyleProperty.model.impl.VTTableStylePropertyImpl#getMinimumHeight
35: * <em>Minimum Height</em>}</li>
36: * <li>{@link org.eclipse.emf.ecp.view.template.style.tableStyleProperty.model.impl.VTTableStylePropertyImpl#getMaximumHeight
37: * <em>Maximum Height</em>}</li>
38: * <li>{@link org.eclipse.emf.ecp.view.template.style.tableStyleProperty.model.impl.VTTableStylePropertyImpl#isShowValidationSummaryTooltip
39: * <em>Show Validation Summary Tooltip</em>}</li>
40: * <li>{@link org.eclipse.emf.ecp.view.template.style.tableStyleProperty.model.impl.VTTableStylePropertyImpl#isEnableSorting
41: * <em>Enable Sorting</em>}</li>
42: * <li>{@link org.eclipse.emf.ecp.view.template.style.tableStyleProperty.model.impl.VTTableStylePropertyImpl#getVisibleLines
43: * <em>Visible Lines</em>}</li>
44: * <li>{@link org.eclipse.emf.ecp.view.template.style.tableStyleProperty.model.impl.VTTableStylePropertyImpl#getRenderMode
45: * <em>Render Mode</em>}</li>
46: * </ul>
47: *
48: * @generated
49: */
50: public class VTTableStylePropertyImpl extends MinimalEObjectImpl.Container implements VTTableStyleProperty {
51:         /**
52:          * The default value of the '{@link #getMinimumHeight() <em>Minimum Height</em>}' attribute.
53:          * <!-- begin-user-doc -->
54:          * <!-- end-user-doc -->
55:          *
56:          * @see #getMinimumHeight()
57:          * @generated
58:          * @ordered
59:          */
60:         protected static final int MINIMUM_HEIGHT_EDEFAULT = 0;
61:
62:         /**
63:          * The cached value of the '{@link #getMinimumHeight() <em>Minimum Height</em>}' attribute.
64:          * <!-- begin-user-doc -->
65:          * <!-- end-user-doc -->
66:          *
67:          * @see #getMinimumHeight()
68:          * @generated
69:          * @ordered
70:          */
71:         protected int minimumHeight = MINIMUM_HEIGHT_EDEFAULT;
72:
73:         /**
74:          * This is true if the Minimum Height attribute has been set.
75:          * <!-- begin-user-doc -->
76:          * <!-- end-user-doc -->
77:          *
78:          * @generated
79:          * @ordered
80:          */
81:         protected boolean minimumHeightESet;
82:
83:         /**
84:          * The default value of the '{@link #getMaximumHeight() <em>Maximum Height</em>}' attribute.
85:          * <!-- begin-user-doc -->
86:          * <!-- end-user-doc -->
87:          *
88:          * @see #getMaximumHeight()
89:          * @generated
90:          * @ordered
91:          */
92:         protected static final int MAXIMUM_HEIGHT_EDEFAULT = 0;
93:
94:         /**
95:          * The cached value of the '{@link #getMaximumHeight() <em>Maximum Height</em>}' attribute.
96:          * <!-- begin-user-doc -->
97:          * <!-- end-user-doc -->
98:          *
99:          * @see #getMaximumHeight()
100:          * @generated
101:          * @ordered
102:          */
103:         protected int maximumHeight = MAXIMUM_HEIGHT_EDEFAULT;
104:
105:         /**
106:          * This is true if the Maximum Height attribute has been set.
107:          * <!-- begin-user-doc -->
108:          * <!-- end-user-doc -->
109:          *
110:          * @generated
111:          * @ordered
112:          */
113:         protected boolean maximumHeightESet;
114:
115:         /**
116:          * The default value of the '{@link #isShowValidationSummaryTooltip() <em>Show Validation Summary Tooltip</em>}'
117:          * attribute.
118:          * <!-- begin-user-doc -->
119:          * <!-- end-user-doc -->
120:          *
121:          * @see #isShowValidationSummaryTooltip()
122:          * @generated
123:          * @ordered
124:          */
125:         protected static final boolean SHOW_VALIDATION_SUMMARY_TOOLTIP_EDEFAULT = false;
126:
127:         /**
128:          * The cached value of the '{@link #isShowValidationSummaryTooltip() <em>Show Validation Summary Tooltip</em>}'
129:          * attribute.
130:          * <!-- begin-user-doc -->
131:          * <!-- end-user-doc -->
132:          *
133:          * @see #isShowValidationSummaryTooltip()
134:          * @generated
135:          * @ordered
136:          */
137:         protected boolean showValidationSummaryTooltip = SHOW_VALIDATION_SUMMARY_TOOLTIP_EDEFAULT;
138:
139:         /**
140:          * The default value of the '{@link #isEnableSorting() <em>Enable Sorting</em>}' attribute.
141:          * <!-- begin-user-doc -->
142:          * <!-- end-user-doc -->
143:          *
144:          * @see #isEnableSorting()
145:          * @generated
146:          * @ordered
147:          */
148:         protected static final boolean ENABLE_SORTING_EDEFAULT = true;
149:
150:         /**
151:          * The cached value of the '{@link #isEnableSorting() <em>Enable Sorting</em>}' attribute.
152:          * <!-- begin-user-doc -->
153:          * <!-- end-user-doc -->
154:          *
155:          * @see #isEnableSorting()
156:          * @generated
157:          * @ordered
158:          */
159:         protected boolean enableSorting = ENABLE_SORTING_EDEFAULT;
160:
161:         /**
162:          * The default value of the '{@link #getVisibleLines() <em>Visible Lines</em>}' attribute.
163:          * <!-- begin-user-doc -->
164:          *
165:          * @since 1.13
166:          * <!-- end-user-doc -->
167:          * @see #getVisibleLines()
168:          * @generated
169:          * @ordered
170:          */
171:         protected static final int VISIBLE_LINES_EDEFAULT = 0;
172:
173:         /**
174:          * The cached value of the '{@link #getVisibleLines() <em>Visible Lines</em>}' attribute.
175:          * <!-- begin-user-doc -->
176:          *
177:          * @since 1.13
178:          * <!-- end-user-doc -->
179:          * @see #getVisibleLines()
180:          * @generated
181:          * @ordered
182:          */
183:         protected int visibleLines = VISIBLE_LINES_EDEFAULT;
184:
185:         /**
186:          * This is true if the Visible Lines attribute has been set.
187:          * <!-- begin-user-doc -->
188:          * <!-- end-user-doc -->
189:          *
190:          * @generated
191:          * @ordered
192:          */
193:         protected boolean visibleLinesESet;
194:
195:         /**
196:          * The default value of the '{@link #getRenderMode() <em>Render Mode</em>}' attribute.
197:          * <!-- begin-user-doc -->
198:          * <!-- end-user-doc -->
199:          *
200:          * @see #getRenderMode()
201:          * @generated
202:          * @ordered
203:          */
204:         protected static final RenderMode RENDER_MODE_EDEFAULT = RenderMode.DEFAULT;
205:
206:         /**
207:          * The cached value of the '{@link #getRenderMode() <em>Render Mode</em>}' attribute.
208:          * <!-- begin-user-doc -->
209:          * <!-- end-user-doc -->
210:          *
211:          * @see #getRenderMode()
212:          * @generated
213:          * @ordered
214:          */
215:         protected RenderMode renderMode = RENDER_MODE_EDEFAULT;
216:
217:         /**
218:          * <!-- begin-user-doc -->
219:          * <!-- end-user-doc -->
220:          *
221:          * @generated
222:          */
223:         protected VTTableStylePropertyImpl() {
224:                 super();
225:         }
226:
227:         /**
228:          * <!-- begin-user-doc -->
229:          * <!-- end-user-doc -->
230:          *
231:          * @generated
232:          */
233:         @Override
234:         protected EClass eStaticClass() {
235:                 return VTTableStylePropertyPackage.Literals.TABLE_STYLE_PROPERTY;
236:         }
237:
238:         /**
239:          * <!-- begin-user-doc -->
240:          * <!-- end-user-doc -->
241:          *
242:          * @generated
243:          */
244:         @Override
245:         public int getMinimumHeight() {
246:                 return minimumHeight;
247:         }
248:
249:         /**
250:          * <!-- begin-user-doc -->
251:          * <!-- end-user-doc -->
252:          *
253:          * @generated
254:          */
255:         @Override
256:         public void setMinimumHeight(int newMinimumHeight) {
257:                 final int oldMinimumHeight = minimumHeight;
258:                 minimumHeight = newMinimumHeight;
259:                 final boolean oldMinimumHeightESet = minimumHeightESet;
260:                 minimumHeightESet = true;
261:•                if (eNotificationRequired()) {
262:                         eNotify(new ENotificationImpl(this, Notification.SET,
263:                                 VTTableStylePropertyPackage.TABLE_STYLE_PROPERTY__MINIMUM_HEIGHT, oldMinimumHeight, minimumHeight,
264:•                                !oldMinimumHeightESet));
265:                 }
266:         }
267:
268:         /**
269:          * <!-- begin-user-doc -->
270:          * <!-- end-user-doc -->
271:          *
272:          * @generated
273:          */
274:         @Override
275:         public void unsetMinimumHeight() {
276:                 final int oldMinimumHeight = minimumHeight;
277:                 final boolean oldMinimumHeightESet = minimumHeightESet;
278:                 minimumHeight = MINIMUM_HEIGHT_EDEFAULT;
279:                 minimumHeightESet = false;
280:•                if (eNotificationRequired()) {
281:                         eNotify(new ENotificationImpl(this, Notification.UNSET,
282:                                 VTTableStylePropertyPackage.TABLE_STYLE_PROPERTY__MINIMUM_HEIGHT, oldMinimumHeight,
283:                                 MINIMUM_HEIGHT_EDEFAULT, oldMinimumHeightESet));
284:                 }
285:         }
286:
287:         /**
288:          * <!-- begin-user-doc -->
289:          * <!-- end-user-doc -->
290:          *
291:          * @generated
292:          */
293:         @Override
294:         public boolean isSetMinimumHeight() {
295:                 return minimumHeightESet;
296:         }
297:
298:         /**
299:          * <!-- begin-user-doc -->
300:          * <!-- end-user-doc -->
301:          *
302:          * @generated
303:          */
304:         @Override
305:         public int getMaximumHeight() {
306:                 return maximumHeight;
307:         }
308:
309:         /**
310:          * <!-- begin-user-doc -->
311:          * <!-- end-user-doc -->
312:          *
313:          * @generated
314:          */
315:         @Override
316:         public void setMaximumHeight(int newMaximumHeight) {
317:                 final int oldMaximumHeight = maximumHeight;
318:                 maximumHeight = newMaximumHeight;
319:                 final boolean oldMaximumHeightESet = maximumHeightESet;
320:                 maximumHeightESet = true;
321:•                if (eNotificationRequired()) {
322:                         eNotify(new ENotificationImpl(this, Notification.SET,
323:                                 VTTableStylePropertyPackage.TABLE_STYLE_PROPERTY__MAXIMUM_HEIGHT, oldMaximumHeight, maximumHeight,
324:•                                !oldMaximumHeightESet));
325:                 }
326:         }
327:
328:         /**
329:          * <!-- begin-user-doc -->
330:          * <!-- end-user-doc -->
331:          *
332:          * @generated
333:          */
334:         @Override
335:         public void unsetMaximumHeight() {
336:                 final int oldMaximumHeight = maximumHeight;
337:                 final boolean oldMaximumHeightESet = maximumHeightESet;
338:                 maximumHeight = MAXIMUM_HEIGHT_EDEFAULT;
339:                 maximumHeightESet = false;
340:•                if (eNotificationRequired()) {
341:                         eNotify(new ENotificationImpl(this, Notification.UNSET,
342:                                 VTTableStylePropertyPackage.TABLE_STYLE_PROPERTY__MAXIMUM_HEIGHT, oldMaximumHeight,
343:                                 MAXIMUM_HEIGHT_EDEFAULT, oldMaximumHeightESet));
344:                 }
345:         }
346:
347:         /**
348:          * <!-- begin-user-doc -->
349:          * <!-- end-user-doc -->
350:          *
351:          * @generated
352:          */
353:         @Override
354:         public boolean isSetMaximumHeight() {
355:                 return maximumHeightESet;
356:         }
357:
358:         /**
359:          * <!-- begin-user-doc -->
360:          * <!-- end-user-doc -->
361:          *
362:          * @generated
363:          */
364:         @Override
365:         public boolean isShowValidationSummaryTooltip() {
366:                 return showValidationSummaryTooltip;
367:         }
368:
369:         /**
370:          * <!-- begin-user-doc -->
371:          * <!-- end-user-doc -->
372:          *
373:          * @generated
374:          */
375:         @Override
376:         public void setShowValidationSummaryTooltip(boolean newShowValidationSummaryTooltip) {
377:                 final boolean oldShowValidationSummaryTooltip = showValidationSummaryTooltip;
378:                 showValidationSummaryTooltip = newShowValidationSummaryTooltip;
379:•                if (eNotificationRequired()) {
380:                         eNotify(new ENotificationImpl(this, Notification.SET,
381:                                 VTTableStylePropertyPackage.TABLE_STYLE_PROPERTY__SHOW_VALIDATION_SUMMARY_TOOLTIP,
382:                                 oldShowValidationSummaryTooltip, showValidationSummaryTooltip));
383:                 }
384:         }
385:
386:         /**
387:          * <!-- begin-user-doc -->
388:          * <!-- end-user-doc -->
389:          *
390:          * @generated
391:          */
392:         @Override
393:         public boolean isEnableSorting() {
394:                 return enableSorting;
395:         }
396:
397:         /**
398:          * <!-- begin-user-doc -->
399:          * <!-- end-user-doc -->
400:          *
401:          * @generated
402:          */
403:         @Override
404:         public void setEnableSorting(boolean newEnableSorting) {
405:                 final boolean oldEnableSorting = enableSorting;
406:                 enableSorting = newEnableSorting;
407:•                if (eNotificationRequired()) {
408:                         eNotify(new ENotificationImpl(this, Notification.SET,
409:                                 VTTableStylePropertyPackage.TABLE_STYLE_PROPERTY__ENABLE_SORTING, oldEnableSorting, enableSorting));
410:                 }
411:         }
412:
413:         /**
414:          * <!-- begin-user-doc -->
415:          * <!-- end-user-doc -->
416:          *
417:          * @generated
418:          */
419:         @Override
420:         public int getVisibleLines() {
421:                 return visibleLines;
422:         }
423:
424:         /**
425:          * <!-- begin-user-doc -->
426:          * <!-- end-user-doc -->
427:          *
428:          * @generated
429:          */
430:         @Override
431:         public void setVisibleLines(int newVisibleLines) {
432:                 final int oldVisibleLines = visibleLines;
433:                 visibleLines = newVisibleLines;
434:                 final boolean oldVisibleLinesESet = visibleLinesESet;
435:                 visibleLinesESet = true;
436:•                if (eNotificationRequired()) {
437:                         eNotify(new ENotificationImpl(this, Notification.SET,
438:                                 VTTableStylePropertyPackage.TABLE_STYLE_PROPERTY__VISIBLE_LINES, oldVisibleLines, visibleLines,
439:•                                !oldVisibleLinesESet));
440:                 }
441:         }
442:
443:         /**
444:          * <!-- begin-user-doc -->
445:          * <!-- end-user-doc -->
446:          *
447:          * @generated
448:          */
449:         @Override
450:         public void unsetVisibleLines() {
451:                 final int oldVisibleLines = visibleLines;
452:                 final boolean oldVisibleLinesESet = visibleLinesESet;
453:                 visibleLines = VISIBLE_LINES_EDEFAULT;
454:                 visibleLinesESet = false;
455:•                if (eNotificationRequired()) {
456:                         eNotify(new ENotificationImpl(this, Notification.UNSET,
457:                                 VTTableStylePropertyPackage.TABLE_STYLE_PROPERTY__VISIBLE_LINES, oldVisibleLines,
458:                                 VISIBLE_LINES_EDEFAULT, oldVisibleLinesESet));
459:                 }
460:         }
461:
462:         /**
463:          * <!-- begin-user-doc -->
464:          * <!-- end-user-doc -->
465:          *
466:          * @generated
467:          */
468:         @Override
469:         public boolean isSetVisibleLines() {
470:                 return visibleLinesESet;
471:         }
472:
473:         /**
474:          * <!-- begin-user-doc -->
475:          * <!-- end-user-doc -->
476:          *
477:          * @generated
478:          */
479:         @Override
480:         public RenderMode getRenderMode() {
481:                 return renderMode;
482:         }
483:
484:         /**
485:          * <!-- begin-user-doc -->
486:          * <!-- end-user-doc -->
487:          *
488:          * @generated
489:          */
490:         @Override
491:         public void setRenderMode(RenderMode newRenderMode) {
492:                 final RenderMode oldRenderMode = renderMode;
493:•                renderMode = newRenderMode == null ? RENDER_MODE_EDEFAULT : newRenderMode;
494:•                if (eNotificationRequired()) {
495:                         eNotify(new ENotificationImpl(this, Notification.SET,
496:                                 VTTableStylePropertyPackage.TABLE_STYLE_PROPERTY__RENDER_MODE, oldRenderMode, renderMode));
497:                 }
498:         }
499:
500:         /**
501:          * <!-- begin-user-doc -->
502:          * <!-- end-user-doc -->
503:          *
504:          * @generated
505:          */
506:         @Override
507:         public Object eGet(int featureID, boolean resolve, boolean coreType) {
508:•                switch (featureID) {
509:                 case VTTableStylePropertyPackage.TABLE_STYLE_PROPERTY__MINIMUM_HEIGHT:
510:                         return getMinimumHeight();
511:                 case VTTableStylePropertyPackage.TABLE_STYLE_PROPERTY__MAXIMUM_HEIGHT:
512:                         return getMaximumHeight();
513:                 case VTTableStylePropertyPackage.TABLE_STYLE_PROPERTY__SHOW_VALIDATION_SUMMARY_TOOLTIP:
514:                         return isShowValidationSummaryTooltip();
515:                 case VTTableStylePropertyPackage.TABLE_STYLE_PROPERTY__ENABLE_SORTING:
516:                         return isEnableSorting();
517:                 case VTTableStylePropertyPackage.TABLE_STYLE_PROPERTY__VISIBLE_LINES:
518:                         return getVisibleLines();
519:                 case VTTableStylePropertyPackage.TABLE_STYLE_PROPERTY__RENDER_MODE:
520:                         return getRenderMode();
521:                 }
522:                 return super.eGet(featureID, resolve, coreType);
523:         }
524:
525:         /**
526:          * <!-- begin-user-doc -->
527:          * <!-- end-user-doc -->
528:          *
529:          * @generated
530:          */
531:         @Override
532:         public void eSet(int featureID, Object newValue) {
533:•                switch (featureID) {
534:                 case VTTableStylePropertyPackage.TABLE_STYLE_PROPERTY__MINIMUM_HEIGHT:
535:                         setMinimumHeight((Integer) newValue);
536:                         return;
537:                 case VTTableStylePropertyPackage.TABLE_STYLE_PROPERTY__MAXIMUM_HEIGHT:
538:                         setMaximumHeight((Integer) newValue);
539:                         return;
540:                 case VTTableStylePropertyPackage.TABLE_STYLE_PROPERTY__SHOW_VALIDATION_SUMMARY_TOOLTIP:
541:                         setShowValidationSummaryTooltip((Boolean) newValue);
542:                         return;
543:                 case VTTableStylePropertyPackage.TABLE_STYLE_PROPERTY__ENABLE_SORTING:
544:                         setEnableSorting((Boolean) newValue);
545:                         return;
546:                 case VTTableStylePropertyPackage.TABLE_STYLE_PROPERTY__VISIBLE_LINES:
547:                         setVisibleLines((Integer) newValue);
548:                         return;
549:                 case VTTableStylePropertyPackage.TABLE_STYLE_PROPERTY__RENDER_MODE:
550:                         setRenderMode((RenderMode) newValue);
551:                         return;
552:                 }
553:                 super.eSet(featureID, newValue);
554:         }
555:
556:         /**
557:          * <!-- begin-user-doc -->
558:          * <!-- end-user-doc -->
559:          *
560:          * @generated
561:          */
562:         @Override
563:         public void eUnset(int featureID) {
564:•                switch (featureID) {
565:                 case VTTableStylePropertyPackage.TABLE_STYLE_PROPERTY__MINIMUM_HEIGHT:
566:                         unsetMinimumHeight();
567:                         return;
568:                 case VTTableStylePropertyPackage.TABLE_STYLE_PROPERTY__MAXIMUM_HEIGHT:
569:                         unsetMaximumHeight();
570:                         return;
571:                 case VTTableStylePropertyPackage.TABLE_STYLE_PROPERTY__SHOW_VALIDATION_SUMMARY_TOOLTIP:
572:                         setShowValidationSummaryTooltip(SHOW_VALIDATION_SUMMARY_TOOLTIP_EDEFAULT);
573:                         return;
574:                 case VTTableStylePropertyPackage.TABLE_STYLE_PROPERTY__ENABLE_SORTING:
575:                         setEnableSorting(ENABLE_SORTING_EDEFAULT);
576:                         return;
577:                 case VTTableStylePropertyPackage.TABLE_STYLE_PROPERTY__VISIBLE_LINES:
578:                         unsetVisibleLines();
579:                         return;
580:                 case VTTableStylePropertyPackage.TABLE_STYLE_PROPERTY__RENDER_MODE:
581:                         setRenderMode(RENDER_MODE_EDEFAULT);
582:                         return;
583:                 }
584:                 super.eUnset(featureID);
585:         }
586:
587:         /**
588:          * <!-- begin-user-doc -->
589:          * <!-- end-user-doc -->
590:          *
591:          * @generated
592:          */
593:         @Override
594:         public boolean eIsSet(int featureID) {
595:•                switch (featureID) {
596:                 case VTTableStylePropertyPackage.TABLE_STYLE_PROPERTY__MINIMUM_HEIGHT:
597:                         return isSetMinimumHeight();
598:                 case VTTableStylePropertyPackage.TABLE_STYLE_PROPERTY__MAXIMUM_HEIGHT:
599:                         return isSetMaximumHeight();
600:                 case VTTableStylePropertyPackage.TABLE_STYLE_PROPERTY__SHOW_VALIDATION_SUMMARY_TOOLTIP:
601:                         return showValidationSummaryTooltip != SHOW_VALIDATION_SUMMARY_TOOLTIP_EDEFAULT;
602:                 case VTTableStylePropertyPackage.TABLE_STYLE_PROPERTY__ENABLE_SORTING:
603:•                        return enableSorting != ENABLE_SORTING_EDEFAULT;
604:                 case VTTableStylePropertyPackage.TABLE_STYLE_PROPERTY__VISIBLE_LINES:
605:                         return isSetVisibleLines();
606:                 case VTTableStylePropertyPackage.TABLE_STYLE_PROPERTY__RENDER_MODE:
607:•                        return renderMode != RENDER_MODE_EDEFAULT;
608:                 }
609:                 return super.eIsSet(featureID);
610:         }
611:
612:         /**
613:          * <!-- begin-user-doc -->
614:          * <!-- end-user-doc -->
615:          *
616:          * @generated
617:          */
618:         @Override
619:         public String toString() {
620:•                if (eIsProxy()) {
621:                         return super.toString();
622:                 }
623:
624:                 final StringBuffer result = new StringBuffer(super.toString());
625:                 result.append(" (minimumHeight: "); //$NON-NLS-1$
626:•                if (minimumHeightESet) {
627:                         result.append(minimumHeight);
628:                 } else {
629:                         result.append("<unset>"); //$NON-NLS-1$
630:                 }
631:                 result.append(", maximumHeight: "); //$NON-NLS-1$
632:•                if (maximumHeightESet) {
633:                         result.append(maximumHeight);
634:                 } else {
635:                         result.append("<unset>"); //$NON-NLS-1$
636:                 }
637:                 result.append(", showValidationSummaryTooltip: "); //$NON-NLS-1$
638:                 result.append(showValidationSummaryTooltip);
639:                 result.append(", enableSorting: "); //$NON-NLS-1$
640:                 result.append(enableSorting);
641:                 result.append(", visibleLines: "); //$NON-NLS-1$
642:•                if (visibleLinesESet) {
643:                         result.append(visibleLines);
644:                 } else {
645:                         result.append("<unset>"); //$NON-NLS-1$
646:                 }
647:                 result.append(", renderMode: "); //$NON-NLS-1$
648:                 result.append(renderMode);
649:                 result.append(')');
650:                 return result.toString();
651:         }
652:
653:         @Override
654:         public boolean equalStyles(VTStyleProperty styleProperty) {
655:                 return EMFUtils.filteredEquals(this, styleProperty);
656:         }
657:
658: } // VTTableStylePropertyImpl