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

COVERAGE SUMMARY FOR SOURCE FILE [CommunicationLinkResourceSpecificationThroughputLabelEditPart.java]

nameclass, %method, %block, %line, %
CommunicationLinkResourceSpecificationThroughputLabelEditPart.java0%   (0/6)0%   (0/52)0%   (0/684)0%   (0/210)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class CommunicationLinkResourceSpecificationThroughputLabelEditPart0%   (0/1)0%   (0/40)0%   (0/512)0%   (0/171)
CommunicationLinkResourceSpecificationThroughputLabelEditPart (View): void 0%   (0/1)0%   (0/4)0%   (0/2)
access$0 (CommunicationLinkResourceSpecificationThroughputLabelEditPart, char... 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/4)
createDefaultEditPolicies (): void 0%   (0/1)0%   (0/22)0%   (0/7)
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/2)0%   (0/1)
getLabelIconHelper (IFigure): Image 0%   (0/1)0%   (0/11)0%   (0/3)
getLabelText (): String 0%   (0/1)0%   (0/23)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 CommunicationLinkResourceSpecificationThroughputLabelEditPart$10%   (0/1)0%   (0/4)0%   (0/21)0%   (0/8)
CommunicationLinkResourceSpecificationThroughputLabelEditPart$1 (Communicatio... 0%   (0/1)0%   (0/6)0%   (0/2)
createSelectionHandles (): List 0%   (0/1)0%   (0/11)0%   (0/4)
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 CommunicationLinkResourceSpecificationThroughputLabelEditPart$20%   (0/1)0%   (0/2)0%   (0/43)0%   (0/12)
CommunicationLinkResourceSpecificationThroughputLabelEditPart$2 (Communicatio... 0%   (0/1)0%   (0/6)0%   (0/2)
isValid (Object): String 0%   (0/1)0%   (0/37)0%   (0/10)
     
class CommunicationLinkResourceSpecificationThroughputLabelEditPart$2$10%   (0/1)0%   (0/2)0%   (0/29)0%   (0/6)
CommunicationLinkResourceSpecificationThroughputLabelEditPart$2$1 (Communicat... 0%   (0/1)0%   (0/15)0%   (0/2)
run (): void 0%   (0/1)0%   (0/14)0%   (0/4)
     
class CommunicationLinkResourceSpecificationThroughputLabelEditPart$30%   (0/1)0%   (0/2)0%   (0/63)0%   (0/18)
CommunicationLinkResourceSpecificationThroughputLabelEditPart$3 (Communicatio... 0%   (0/1)0%   (0/9)0%   (0/2)
run (): void 0%   (0/1)0%   (0/54)0%   (0/16)
     
class CommunicationLinkResourceSpecificationThroughputLabelEditPart$40%   (0/1)0%   (0/2)0%   (0/16)0%   (0/4)
CommunicationLinkResourceSpecificationThroughputLabelEditPart$4 (Communicatio... 0%   (0/1)0%   (0/7)0%   (0/2)
getName (AccessibleEvent): void 0%   (0/1)0%   (0/9)0%   (0/2)

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

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