svn commit: r16597 - trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/SelectionEdgeClarifiers.java
Tom Morris <[email protected]>
| Newsgroups | gmane.comp.lang.uml.argouml.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: tfmorris
Date: 2009-01-14 09:16:55-0800
New Revision: 16597
Modified:
trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/SelectionEdgeClarifiers.java
Log:
Issue 4789: Use interfaces to reduce dependencies. No functional change.
Modified: trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/SelectionEdgeClarifiers.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/SelectionEdgeClarifiers.java?view=diff&pathrev=16597&r1=16596&r2=16597
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/SelectionEdgeClarifiers.java (original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/SelectionEdgeClarifiers.java 2009-01-14 09:16:55-0800
@@ -1,5 +1,5 @@
// $Id$
-// Copyright (c) 1996-2006 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
@@ -28,7 +28,6 @@
import org.tigris.gef.base.Globals;
import org.tigris.gef.base.PathItemPlacementStrategy;
-import org.tigris.gef.base.SelectionManager;
import org.tigris.gef.base.SelectionReshape;
import org.tigris.gef.presentation.Fig;
import org.tigris.gef.presentation.FigEdge;
@@ -41,11 +40,10 @@
*/
public class SelectionEdgeClarifiers extends SelectionReshape {
- ////////////////////////////////////////////////////////////////
- // constructors
- /** Construct a new SelectionEdgeClarifiers for the given Fig
- *
+ /**
+ * Construct a new SelectionEdgeClarifiers for the given Fig
+ *
* @param f the given fig
*/
public SelectionEdgeClarifiers(Fig f) { super(f); }
@@ -62,10 +60,10 @@
public void paint(Graphics g) {
super.paint(g);
int selectionCount =
- Globals.curEditor().getSelectionManager().selections().size();
+ Globals.curEditor().getSelectionManager().getSelections().size();
if (selectionCount == 1) {
- FigEdgeModelElement edge = (FigEdgeModelElement) getContent();
- edge.paintClarifiers(g);
+ FigEdge edge = (FigEdge) getContent();
+ ((Clarifiable) edge).paintClarifiers(g);
for (PathItemPlacementStrategy strategy
: edge.getPathItemStrategies()) {
strategy.paint(g);
@@ -73,5 +71,4 @@
}
}
-} /* end class SelectionEdgeClarifiers */
-
+}
------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=1024501
To unsubscribe from this discussion, e-mail: [[email protected]].