svn commit: r16739 - trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/CompartmentFigText.java
Michiel van der Wulp <[email protected]>
| Newsgroups | gmane.comp.lang.uml.argouml.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: mvw
Date: 2009-02-01 23:23:16-0800
New Revision: 16739
Modified:
trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/CompartmentFigText.java
Log:
Fix for issue 5681: Remove the selection indication when not selected.
Modified: trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/CompartmentFigText.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/CompartmentFigText.java?view=diff&pathrev=16739&r1=16738&r2=16739
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/CompartmentFigText.java (original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/CompartmentFigText.java 2009-02-01 23:23:16-0800
@@ -1,5 +1,5 @@
// $Id$
-// Copyright (c) 1996-2008 The Regents of the University of California. All
+// Copyright (c) 1996-2009 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
@@ -381,6 +381,10 @@
}
public void targetSet(TargetEvent e) {
- // Nothing required here
+ /* This is needed for when the selection changes from
+ * one compartment fig to an other object.
+ * Without this, the selection indicators would stay on the screen.
+ * See issue 5681. */
+ setHighlighted((Arrays.asList(e.getNewTargets()).contains(getOwner())));
}
}
------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=1089169
To unsubscribe from this discussion, e-mail: [[email protected]].