Author: mvw
Date: 2008-08-11 11:58:02-0700
New Revision: 15548
Modified:
trunk/src/argouml-app/src/org/argouml/uml/diagram/deployment/ui/SelectionComponent.java
Log:
Fix for issue 5301 for Component.
Also: Two of the toolbelt buttons (selection action buttons) of a Component generated dependencies in the wrong direction.
Modified: trunk/src/argouml-app/src/org/argouml/uml/diagram/deployment/ui/SelectionComponent.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/deployment/ui/SelectionComponent.java?view=diff&rev=15548&p1=trunk/src/argouml-app/src/org/argouml/uml/diagram/deployment/ui/SelectionComponent.java&p2=trunk/src/argouml-app/src/org/argouml/uml/diagram/deployment/ui/SelectionComponent.java&r1=15547&r2=15548
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/diagram/deployment/ui/SelectionComponent.java (original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/deployment/ui/SelectionComponent.java 2008-08-11 11:58:02-0700
@@ -1,5 +1,5 @@
// $Id$
-// Copyright (c) 1996-2007 The Regents of the University of California. All
+// Copyright (c) 1996-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
@@ -43,6 +43,9 @@
private static Icon depRight =
ResourceLoaderWrapper.lookupIconResource("DependencyRight");
+ /*
+ * North, South, West, East, South-West
+ */
private static Icon icons[] =
{dep,
dep,
@@ -73,6 +76,10 @@
@Override
protected Icon[] getIcons() {
+ if (Model.getModelManagementHelper().isReadOnly(
+ getContent().getOwner())) {
+ return new Icon[] {null, dep, depRight, null, null };
+ }
return icons;
}
@@ -98,7 +105,7 @@
@Override
protected boolean isReverseEdge(int index) {
- if (index == BOTTOM || index == RIGHT) {
+ if (index == LEFT || index == BOTTOM) {
return true;
}
return false;
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.