Author: mvw
Date: 2008-06-18 10:34:24-0700
New Revision: 14998
Modified:
trunk/src/argouml-app/src/org/argouml/notation/providers/AttributeNotation.java
Log:
Fix for a little bug with attribute notation: it did not update the diagram when the stereotype of an attribute changed its name.
Modified: trunk/src/argouml-app/src/org/argouml/notation/providers/AttributeNotation.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/notation/providers/AttributeNotation.java?view=diff&rev=14998&p1=trunk/src/argouml-app/src/org/argouml/notation/providers/AttributeNotation.java&p2=trunk/src/argouml-app/src/org/argouml/notation/providers/AttributeNotation.java&r1=14997&r2=14998
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/notation/providers/AttributeNotation.java (original)
+++ trunk/src/argouml-app/src/org/argouml/notation/providers/AttributeNotation.java 2008-06-18 10:34:24-0700
@@ -1,5 +1,5 @@
// $Id$
-// Copyright (c) 2005-2007 The Regents of the University of California. All
+// Copyright (c) 2005-2008 The Regents of the University of California. All
// Rights Reserved. Permission to use, copy, modify, and distribute this
// software and its documentation without fee, and without a written
// agreement is hereby granted, provided that the above copyright notice
@@ -37,7 +37,7 @@
* for the text shown in the attribute compartment of a Class.
* Subclass this for all languages.
*
- * @author [email protected]
+ * @author Michiel
*/
public abstract class AttributeNotation extends NotationProvider {
@@ -51,7 +51,7 @@
public void initialiseListener(PropertyChangeListener listener,
Object modelElement) {
addElementListener(listener, modelElement);
- if (Model.getFacade().isAOperation(modelElement)) {
+ if (Model.getFacade().isAAttribute(modelElement)) {
// We also show stereotypes
for (Object uml : Model.getFacade().getStereotypes(modelElement)) {
addElementListener(listener, uml);
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.