### Eclipse Workspace Patch 1.0
#P org.eclipse.gmf.runtime.diagram.ui
Index: src/org/eclipse/gmf/runtime/diagram/ui/figures/BorderItemLocator.java
===================================================================
RCS file: /cvsroot/modeling/org.eclipse.gmf/plugins/org.eclipse.gmf.runtime.diagram.ui/src/org/eclipse/gmf/runtime/diagram/ui/figures/BorderItemLocator.java,v
retrieving revision 1.8
diff -u -r1.8 BorderItemLocator.java
--- src/org/eclipse/gmf/runtime/diagram/ui/figures/BorderItemLocator.java 21 Apr 2008 20:13:20 -0000 1.8
+++ src/org/eclipse/gmf/runtime/diagram/ui/figures/BorderItemLocator.java 14 Jun 2008 21:30:30 -0000
@@ -181,13 +181,13 @@
}
/**
* Ensure the suggested location actually lies on the parent boundary. The
- * side takes precendence.
+ * side takes precedence.
*
* @param suggestedLocation
* @param suggestedSide
* @return point
*/
- private Point locateOnParent(Point suggestedLocation,
+ protected Point locateOnParent(Point suggestedLocation,
int suggestedSide, IFigure borderItem) {
Rectangle bounds = getParentBorder();
int parentFigureWidth = bounds.width;
@@ -254,9 +254,9 @@
* existing borderItemFigure.
*
* @param recommendedLocation
- * @return ture
or false
+ * @return true
or false
*/
- private boolean conflicts(Point recommendedLocation,
+ protected boolean conflicts(Point recommendedLocation,
IFigure targetBorderItem) {
Rectangle recommendedRect = new Rectangle(recommendedLocation,
getSize(targetBorderItem));
@@ -278,7 +278,7 @@
}
/**
- * The preferred side takes precendence.
+ * The preferred side takes precedence.
*
* @param suggestedLocation
* @param suggestedSide
@@ -286,7 +286,7 @@
* recursion count to avoid an infinite loop
* @return point
*/
- private Point locateOnBorder(Point suggestedLocation,
+ protected Point locateOnBorder(Point suggestedLocation,
int suggestedSide, int circuitCount, IFigure borderItem) {
Point recommendedLocation = locateOnParent(suggestedLocation,
suggestedSide, borderItem);