svn commit: r18687 - trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/model/GetterSetterManagerImpl.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: bobtarling
Date: 2010-08-26 10:56:39-0700
New Revision: 18687

Modified:
   trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/model/GetterSetterManagerImpl.java

Log:
Restrict deferred events available for selection

Modified: trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/model/GetterSetterManagerImpl.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/model/GetterSetterManagerImpl.java?view=diff&pathrev=18687&r1=18686&r2=18687
==============================================================================
--- trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/model/GetterSetterManagerImpl.java	(original)
+++ trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/model/GetterSetterManagerImpl.java	2010-08-26 10:56:39-0700
@@ -1449,9 +1449,15 @@
 
             protected List getChoices() {
                 List list = new ArrayList();
-                list.addAll(Model.getModelManagementHelper().getAllModelElementsOfKind(
-                        Model.getFacade().getRoot(getTarget()),
+                
+                Object parent =
+                    Model.getStateMachinesHelper()
+                        .findNamespaceForEvent(getTarget(), null);
+                list.addAll(
+                    Model.getModelManagementHelper().getAllModelElementsOfKind(
+                        parent,
                         Model.getMetaTypes().getEvent()));
+                
                 return list;
             }

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2651783

To unsubscribe from this discussion, e-mail: [[email protected]].
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.