Author: dazarov
Date: 2008-05-29 04:26:34 -0400 (Thu, 29 May 2008)
New Revision: 8415
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/figures/ExceptionFigure.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1189
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/figures/ExceptionFigure.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/figures/ExceptionFigure.java 2008-05-29
06:58:32 UTC (rev 8414)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/figures/ExceptionFigure.java 2008-05-29
08:26:34 UTC (rev 8415)
@@ -101,6 +101,7 @@
c = new FixedConnectionAnchor(this);
c.offsetV = 10;
+ c.offsetH = -1;
c.leftToRight = false;
connectionAnchors.put("1_OUT", c);
outputConnectionAnchors.addElement(c);
@@ -130,8 +131,6 @@
Rectangle r = getBounds().getCopy();
g.translate(r.getLocation());
- int start = 0;
-
if (exc != null) {
g.setBackgroundColor(exceptionBackgroundColor);
g.setForegroundColor(exceptionForegroundColor);
@@ -139,14 +138,14 @@
g.setBackgroundColor(lightGrayColor);
}
- g.fillRectangle(0, 0, r.width, r.height);
+ g.fillRectangle(1, 1, r.width-2, r.height-2);
g.setBackgroundColor(whiteColor);
- g.fillRectangle(start + 1, 1, 22, 19);
+ g.fillRectangle(1, 1, 22, 19);
if (icon != null)
- g.drawImage(icon, start + 4, 2);
+ g.drawImage(icon, 4, 2);
if(exc != null){
g.setFont(exceptionFont);