EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][de.uka.ipd.sdq.pcm.gmf.usage.edit.parts]

COVERAGE SUMMARY FOR SOURCE FILE [DelayLabelSpecEditPart.java]

nameclass, %method, %block, %line, %
DelayLabelSpecEditPart.java0%   (0/6)0%   (0/52)0%   (0/711)0%   (0/217)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class DelayLabelSpecEditPart0%   (0/1)0%   (0/40)0%   (0/533)0%   (0/177)
DelayLabelSpecEditPart (View): void 0%   (0/1)0%   (0/4)0%   (0/2)
access$0 (DelayLabelSpecEditPart, char): void 0%   (0/1)0%   (0/4)0%   (0/1)
addNotationalListeners (): void 0%   (0/1)0%   (0/9)0%   (0/3)
addSemanticListeners (): void 0%   (0/1)0%   (0/11)0%   (0/3)
createDefaultEditPolicies (): void 0%   (0/1)0%   (0/28)0%   (0/10)
createFigure (): IFigure 0%   (0/1)0%   (0/2)0%   (0/1)
getAccessibleEditPart (): AccessibleEditPart 0%   (0/1)0%   (0/13)0%   (0/3)
getChildBySemanticHint (String): IGraphicalEditPart 0%   (0/1)0%   (0/2)0%   (0/1)
getCompletionProcessor (): IContentAssistProcessor 0%   (0/1)0%   (0/17)0%   (0/4)
getEditText (): String 0%   (0/1)0%   (0/20)0%   (0/5)
getEditTextValidator (): ICellEditorValidator 0%   (0/1)0%   (0/5)0%   (0/1)
getFontStyleOwnerView (): View 0%   (0/1)0%   (0/3)0%   (0/1)
getLabelIcon (): Image 0%   (0/1)0%   (0/11)0%   (0/5)
getLabelIconHelper (IFigure): Image 0%   (0/1)0%   (0/11)0%   (0/3)
getLabelText (): String 0%   (0/1)0%   (0/29)0%   (0/8)
getLabelTextHelper (IFigure): String 0%   (0/1)0%   (0/11)0%   (0/3)
getManager (): DirectEditManager 0%   (0/1)0%   (0/16)0%   (0/5)
getModelChildren (): List 0%   (0/1)0%   (0/2)0%   (0/1)
getParser (): IParser 0%   (0/1)0%   (0/14)0%   (0/7)
getParserElement (): EObject 0%   (0/1)0%   (0/3)0%   (0/1)
getParserOptions (): ParserOptions 0%   (0/1)0%   (0/2)0%   (0/1)
handleNotificationEvent (Notification): void 0%   (0/1)0%   (0/63)0%   (0/22)
isEditable (): boolean 0%   (0/1)0%   (0/2)0%   (0/1)
performDirectEdit (): void 0%   (0/1)0%   (0/4)0%   (0/2)
performDirectEdit (Point): void 0%   (0/1)0%   (0/12)0%   (0/4)
performDirectEdit (char): void 0%   (0/1)0%   (0/13)0%   (0/4)
performDirectEditRequest (Request): void 0%   (0/1)0%   (0/16)0%   (0/5)
refreshFont (): void 0%   (0/1)0%   (0/34)0%   (0/8)
refreshLabel (): void 0%   (0/1)0%   (0/33)0%   (0/11)
refreshStrikeThrough (): void 0%   (0/1)0%   (0/20)0%   (0/6)
refreshUnderline (): void 0%   (0/1)0%   (0/20)0%   (0/5)
refreshVisuals (): void 0%   (0/1)0%   (0/13)0%   (0/7)
removeNotationalListeners (): void 0%   (0/1)0%   (0/6)0%   (0/3)
removeSemanticListeners (): void 0%   (0/1)0%   (0/4)0%   (0/2)
setFontColor (Color): void 0%   (0/1)0%   (0/5)0%   (0/2)
setLabel (WrappingLabel): void 0%   (0/1)0%   (0/15)0%   (0/6)
setLabelIconHelper (IFigure, Image): void 0%   (0/1)0%   (0/13)0%   (0/4)
setLabelText (String): void 0%   (0/1)0%   (0/26)0%   (0/10)
setLabelTextHelper (IFigure, String): void 0%   (0/1)0%   (0/13)0%   (0/4)
setManager (DirectEditManager): void 0%   (0/1)0%   (0/4)0%   (0/2)
     
class DelayLabelSpecEditPart$10%   (0/1)0%   (0/4)0%   (0/27)0%   (0/9)
DelayLabelSpecEditPart$1 (DelayLabelSpecEditPart): void 0%   (0/1)0%   (0/6)0%   (0/2)
createSelectionHandles (): List 0%   (0/1)0%   (0/17)0%   (0/5)
getCommand (Request): Command 0%   (0/1)0%   (0/2)0%   (0/1)
understandsRequest (Request): boolean 0%   (0/1)0%   (0/2)0%   (0/1)
     
class DelayLabelSpecEditPart$20%   (0/1)0%   (0/2)0%   (0/43)0%   (0/12)
DelayLabelSpecEditPart$2 (DelayLabelSpecEditPart): void 0%   (0/1)0%   (0/6)0%   (0/2)
isValid (Object): String 0%   (0/1)0%   (0/37)0%   (0/10)
     
class DelayLabelSpecEditPart$2$10%   (0/1)0%   (0/2)0%   (0/29)0%   (0/6)
DelayLabelSpecEditPart$2$1 (DelayLabelSpecEditPart$2, IParser, EObject, Objec... 0%   (0/1)0%   (0/15)0%   (0/2)
run (): void 0%   (0/1)0%   (0/14)0%   (0/4)
     
class DelayLabelSpecEditPart$30%   (0/1)0%   (0/2)0%   (0/63)0%   (0/18)
DelayLabelSpecEditPart$3 (DelayLabelSpecEditPart, Request): void 0%   (0/1)0%   (0/9)0%   (0/2)
run (): void 0%   (0/1)0%   (0/54)0%   (0/16)
     
class DelayLabelSpecEditPart$40%   (0/1)0%   (0/2)0%   (0/16)0%   (0/4)
DelayLabelSpecEditPart$4 (DelayLabelSpecEditPart, AbstractGraphicalEditPart):... 0%   (0/1)0%   (0/7)0%   (0/2)
getName (AccessibleEvent): void 0%   (0/1)0%   (0/9)0%   (0/2)

1/*
2 * Copyright 2007, SDQ, IPD, University of Karlsruhe
3 */
4package de.uka.ipd.sdq.pcm.gmf.usage.edit.parts;
5 
6import java.util.ArrayList;
7import java.util.Collections;
8import java.util.List;
9 
10import org.eclipse.draw2d.IFigure;
11import org.eclipse.draw2d.Label;
12import org.eclipse.draw2d.geometry.Point;
13import org.eclipse.emf.common.notify.Notification;
14import org.eclipse.emf.ecore.EObject;
15import org.eclipse.emf.transaction.RunnableWithResult;
16import org.eclipse.gef.AccessibleEditPart;
17import org.eclipse.gef.EditPolicy;
18import org.eclipse.gef.GraphicalEditPart;
19import org.eclipse.gef.Request;
20import org.eclipse.gef.commands.Command;
21import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
22import org.eclipse.gef.handles.MoveHandle;
23import org.eclipse.gef.handles.NonResizableHandleKit;
24import org.eclipse.gef.requests.DirectEditRequest;
25import org.eclipse.gef.tools.DirectEditManager;
26import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
27import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
28import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
29import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
30import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
31import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
32import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
33import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
34import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
35import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
36import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
37import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
38import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
39import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
40import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
41import org.eclipse.gmf.runtime.notation.FontStyle;
42import org.eclipse.gmf.runtime.notation.NotationPackage;
43import org.eclipse.gmf.runtime.notation.View;
44import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
45import org.eclipse.jface.viewers.ICellEditorValidator;
46import org.eclipse.swt.SWT;
47import org.eclipse.swt.accessibility.AccessibleEvent;
48import org.eclipse.swt.graphics.Color;
49import org.eclipse.swt.graphics.FontData;
50import org.eclipse.swt.graphics.Image;
51 
52import de.uka.ipd.sdq.pcm.dialogs.usage.DelaySpecificationDialog;
53import de.uka.ipd.sdq.pcm.gmf.usage.edit.policies.PalladioComponentModelTextSelectionEditPolicy;
54import de.uka.ipd.sdq.pcm.gmf.usage.part.PalladioComponentModelVisualIDRegistry;
55import de.uka.ipd.sdq.pcm.gmf.usage.providers.PalladioComponentModelElementTypes;
56import de.uka.ipd.sdq.pcm.gmf.usage.providers.PalladioComponentModelParserProvider;
57import de.uka.ipd.sdq.pcm.usagemodel.ClosedWorkload;
58import de.uka.ipd.sdq.pcm.usagemodel.Delay;
59 
60/**
61 * @generated
62 */
63public class DelayLabelSpecEditPart extends CompartmentEditPart implements
64                ITextAwareEditPart {
65 
66        /**
67         * @generated
68         */
69        public static final int VISUAL_ID = 5019;
70 
71        /**
72         * @generated
73         */
74        private DirectEditManager manager;
75 
76        /**
77         * @generated
78         */
79        private IParser parser;
80 
81        /**
82         * @generated
83         */
84        private List parserElements;
85 
86        /**
87         * @generated
88         */
89        private String defaultText;
90 
91        /**
92         * @generated
93         */
94        public DelayLabelSpecEditPart(View view) {
95                super(view);
96        }
97 
98        /**
99         * @generated
100         */
101        protected void createDefaultEditPolicies() {
102                super.createDefaultEditPolicies();
103                installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE,
104                                new PalladioComponentModelTextSelectionEditPolicy());
105                installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE,
106                                new LabelDirectEditPolicy());
107                installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE,
108                                new NonResizableEditPolicy() {
109 
110                                        protected List createSelectionHandles() {
111                                                List handles = new ArrayList();
112                                                NonResizableHandleKit.addMoveHandle(
113                                                                (GraphicalEditPart) getHost(), handles);
114                                                ((MoveHandle) handles.get(0)).setBorder(null);
115                                                return handles;
116                                        }
117 
118                                        public Command getCommand(Request request) {
119                                                return null;
120                                        }
121 
122                                        public boolean understandsRequest(Request request) {
123                                                return false;
124                                        }
125                                });
126                installEditPolicy(EditPolicyRoles.OPEN_ROLE,
127                                new DelaySpecificationDialog());
128        }
129 
130        /**
131         * @generated
132         */
133        protected String getLabelTextHelper(IFigure figure) {
134                if (figure instanceof WrappingLabel) {
135                        return ((WrappingLabel) figure).getText();
136                } else {
137                        return ((Label) figure).getText();
138                }
139        }
140 
141        /**
142         * @generated
143         */
144        protected void setLabelTextHelper(IFigure figure, String text) {
145                if (figure instanceof WrappingLabel) {
146                        ((WrappingLabel) figure).setText(text);
147                } else {
148                        ((Label) figure).setText(text);
149                }
150        }
151 
152        /**
153         * @generated
154         */
155        protected Image getLabelIconHelper(IFigure figure) {
156                if (figure instanceof WrappingLabel) {
157                        return ((WrappingLabel) figure).getIcon();
158                } else {
159                        return ((Label) figure).getIcon();
160                }
161        }
162 
163        /**
164         * @generated
165         */
166        protected void setLabelIconHelper(IFigure figure, Image icon) {
167                if (figure instanceof WrappingLabel) {
168                        ((WrappingLabel) figure).setIcon(icon);
169                } else {
170                        ((Label) figure).setIcon(icon);
171                }
172        }
173 
174        /**
175         * @generated
176         */
177        public void setLabel(WrappingLabel figure) {
178                unregisterVisuals();
179                setFigure(figure);
180                defaultText = getLabelTextHelper(figure);
181                registerVisuals();
182                refreshVisuals();
183        }
184 
185        /**
186         * @generated
187         */
188        protected List getModelChildren() {
189                return Collections.EMPTY_LIST;
190        }
191 
192        /**
193         * @generated
194         */
195        public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
196                return null;
197        }
198 
199        /**
200         * @generated
201         */
202        protected EObject getParserElement() {
203                return resolveSemanticElement();
204        }
205 
206        /**
207         * @generated
208         */
209        protected Image getLabelIcon() {
210                EObject parserElement = getParserElement();
211                if (parserElement == null) {
212                        return null;
213                }
214                return PalladioComponentModelElementTypes.getImage(parserElement
215                                .eClass());
216        }
217 
218        /**
219         * @generated not
220         */
221        protected String getLabelText() {
222                String text = null;
223 
224                Delay d = (Delay) resolveSemanticElement();
225                if (d.getTimeSpecification_Delay() != null) {
226                        text = "Delay Time: "
227                                        + d.getTimeSpecification_Delay().getSpecification();
228                }
229 
230                if (text == null || text.length() == 0) {
231                        text = defaultText;
232                }
233                return text;
234 
235        }
236 
237        /**
238         * @generated
239         */
240        public void setLabelText(String text) {
241                setLabelTextHelper(getFigure(), text);
242                Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
243                if (pdEditPolicy instanceof PalladioComponentModelTextSelectionEditPolicy) {
244                        ((PalladioComponentModelTextSelectionEditPolicy) pdEditPolicy)
245                                        .refreshFeedback();
246                }
247                Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
248                if (sfEditPolicy instanceof PalladioComponentModelTextSelectionEditPolicy) {
249                        ((PalladioComponentModelTextSelectionEditPolicy) sfEditPolicy)
250                                        .refreshFeedback();
251                }
252        }
253 
254        /**
255         * @generated
256         */
257        public String getEditText() {
258                if (getParserElement() == null || getParser() == null) {
259                        return ""; //$NON-NLS-1$
260                }
261                return getParser().getEditString(
262                                new EObjectAdapter(getParserElement()),
263                                getParserOptions().intValue());
264        }
265 
266        /**
267         * @generated
268         */
269        protected boolean isEditable() {
270                return false;
271        }
272 
273        /**
274         * @generated
275         */
276        public ICellEditorValidator getEditTextValidator() {
277                return new ICellEditorValidator() {
278 
279                        public String isValid(final Object value) {
280                                if (value instanceof String) {
281                                        final EObject element = getParserElement();
282                                        final IParser parser = getParser();
283                                        try {
284                                                IParserEditStatus valid = (IParserEditStatus) getEditingDomain()
285                                                                .runExclusive(new RunnableWithResult.Impl() {
286 
287                                                                        public void run() {
288                                                                                setResult(parser.isValidEditString(
289                                                                                                new EObjectAdapter(element),
290                                                                                                (String) value));
291                                                                        }
292                                                                });
293                                                return valid.getCode() == ParserEditStatus.EDITABLE ? null
294                                                                : valid.getMessage();
295                                        } catch (InterruptedException ie) {
296                                                ie.printStackTrace();
297                                        }
298                                }
299 
300                                // shouldn't get here
301                                return null;
302                        }
303                };
304        }
305 
306        /**
307         * @generated
308         */
309        public IContentAssistProcessor getCompletionProcessor() {
310                if (getParserElement() == null || getParser() == null) {
311                        return null;
312                }
313                return getParser().getCompletionProcessor(
314                                new EObjectAdapter(getParserElement()));
315        }
316 
317        /**
318         * @generated
319         */
320        public ParserOptions getParserOptions() {
321                return ParserOptions.NONE;
322        }
323 
324        /**
325         * @generated
326         */
327        public IParser getParser() {
328                if (parser == null) {
329                        parser = PalladioComponentModelParserProvider
330                                        .getParser(
331                                                        PalladioComponentModelElementTypes.Delay_3017,
332                                                        getParserElement(),
333                                                        PalladioComponentModelVisualIDRegistry
334                                                                        .getType(de.uka.ipd.sdq.pcm.gmf.usage.edit.parts.DelayLabelSpecEditPart.VISUAL_ID));
335                }
336                return parser;
337        }
338 
339        /**
340         * @generated
341         */
342        protected DirectEditManager getManager() {
343                if (manager == null) {
344                        setManager(new TextDirectEditManager(this, TextDirectEditManager
345                                        .getTextCellEditorClass(this),
346                                        PalladioComponentModelEditPartFactory
347                                                        .getTextCellEditorLocator(this)));
348                }
349                return manager;
350        }
351 
352        /**
353         * @generated
354         */
355        protected void setManager(DirectEditManager manager) {
356                this.manager = manager;
357        }
358 
359        /**
360         * @generated
361         */
362        protected void performDirectEdit() {
363                getManager().show();
364        }
365 
366        /**
367         * @generated
368         */
369        protected void performDirectEdit(Point eventLocation) {
370                if (getManager().getClass() == TextDirectEditManager.class) {
371                        ((TextDirectEditManager) getManager()).show(eventLocation
372                                        .getSWTPoint());
373                }
374        }
375 
376        /**
377         * @generated
378         */
379        private void performDirectEdit(char initialCharacter) {
380                if (getManager() instanceof TextDirectEditManager) {
381                        ((TextDirectEditManager) getManager()).show(initialCharacter);
382                } else {
383                        performDirectEdit();
384                }
385        }
386 
387        /**
388         * @generated
389         */
390        protected void performDirectEditRequest(Request request) {
391                final Request theRequest = request;
392                try {
393                        getEditingDomain().runExclusive(new Runnable() {
394 
395                                public void run() {
396                                        if (isActive() && isEditable()) {
397                                                if (theRequest
398                                                                .getExtendedData()
399                                                                .get(
400                                                                                RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
401                                                        Character initialChar = (Character) theRequest
402                                                                        .getExtendedData()
403                                                                        .get(
404                                                                                        RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
405                                                        performDirectEdit(initialChar.charValue());
406                                                } else if ((theRequest instanceof DirectEditRequest)
407                                                                && (getEditText().equals(getLabelText()))) {
408                                                        DirectEditRequest editRequest = (DirectEditRequest) theRequest;
409                                                        performDirectEdit(editRequest.getLocation());
410                                                } else {
411                                                        performDirectEdit();
412                                                }
413                                        }
414                                }
415                        });
416                } catch (InterruptedException e) {
417                        e.printStackTrace();
418                }
419        }
420 
421        /**
422         * @generated
423         */
424        protected void refreshVisuals() {
425                super.refreshVisuals();
426                refreshLabel();
427                refreshFont();
428                refreshFontColor();
429                refreshUnderline();
430                refreshStrikeThrough();
431        }
432 
433        /**
434         * @generated
435         */
436        protected void refreshLabel() {
437                setLabelTextHelper(getFigure(), getLabelText());
438                setLabelIconHelper(getFigure(), getLabelIcon());
439                Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
440                if (pdEditPolicy instanceof PalladioComponentModelTextSelectionEditPolicy) {
441                        ((PalladioComponentModelTextSelectionEditPolicy) pdEditPolicy)
442                                        .refreshFeedback();
443                }
444                Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
445                if (sfEditPolicy instanceof PalladioComponentModelTextSelectionEditPolicy) {
446                        ((PalladioComponentModelTextSelectionEditPolicy) sfEditPolicy)
447                                        .refreshFeedback();
448                }
449        }
450 
451        /**
452         * @generated
453         */
454        protected void refreshUnderline() {
455                FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
456                                NotationPackage.eINSTANCE.getFontStyle());
457                if (style != null && getFigure() instanceof WrappingLabel) {
458                        ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
459                }
460        }
461 
462        /**
463         * @generated
464         */
465        protected void refreshStrikeThrough() {
466                FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
467                                NotationPackage.eINSTANCE.getFontStyle());
468                if (style != null && getFigure() instanceof WrappingLabel) {
469                        ((WrappingLabel) getFigure()).setTextStrikeThrough(style
470                                        .isStrikeThrough());
471                }
472        }
473 
474        /**
475         * @generated
476         */
477        protected void refreshFont() {
478                FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
479                                NotationPackage.eINSTANCE.getFontStyle());
480                if (style != null) {
481                        FontData fontData = new FontData(style.getFontName(), style
482                                        .getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL)
483                                        | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
484                        setFont(fontData);
485                }
486        }
487 
488        /**
489         * @generated
490         */
491        protected void setFontColor(Color color) {
492                getFigure().setForegroundColor(color);
493        }
494 
495        /**
496         * @generated not
497         */
498        /**
499         * @generated not
500         */
501        protected void addSemanticListeners() {
502                Delay d = (Delay) resolveSemanticElement();
503                addListenerFilter("SemanticModel", this, d.getTimeSpecification_Delay()); //$NON-NLS-1$
504        }
505 
506        /**
507         * @generated not
508         */
509        protected void removeSemanticListeners() {
510                removeListenerFilter("SemanticModel"); //$NON-NLS-1$
511        }
512 
513        /**
514         * @generated
515         */
516        protected AccessibleEditPart getAccessibleEditPart() {
517                if (accessibleEP == null) {
518                        accessibleEP = new AccessibleGraphicalEditPart() {
519 
520                                public void getName(AccessibleEvent e) {
521                                        e.result = getLabelTextHelper(getFigure());
522                                }
523                        };
524                }
525                return accessibleEP;
526        }
527 
528        /**
529         * @generated
530         */
531        private View getFontStyleOwnerView() {
532                return getPrimaryView();
533        }
534 
535        /**
536         * @generated
537         */
538        protected void addNotationalListeners() {
539                super.addNotationalListeners();
540                addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
541        }
542 
543        /**
544         * @generated
545         */
546        protected void removeNotationalListeners() {
547                super.removeNotationalListeners();
548                removeListenerFilter("PrimaryView"); //$NON-NLS-1$
549        }
550 
551        /**
552         * @generated not
553         */
554        protected void handleNotificationEvent(Notification event) {
555                Object feature = event.getFeature();
556                if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
557                        Integer c = (Integer) event.getNewValue();
558                        setFontColor(DiagramColorRegistry.getInstance().getColor(c));
559                } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(
560                                feature)) {
561                        refreshUnderline();
562                } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough()
563                                .equals(feature)) {
564                        refreshStrikeThrough();
565                } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(
566                                feature)
567                                || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(
568                                                feature)
569                                || NotationPackage.eINSTANCE.getFontStyle_Bold()
570                                                .equals(feature)
571                                || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(
572                                                feature)) {
573                        refreshFont();
574                } else {
575                        refreshLabel();
576                }
577                super.handleNotificationEvent(event);
578        }
579 
580        /**
581         * @generated
582         */
583        protected IFigure createFigure() {
584                // Parent should assign one using setLabel() method
585                return null;
586        }
587 
588}

[all classes][de.uka.ipd.sdq.pcm.gmf.usage.edit.parts]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov