Author: DartPeng
Date: 2010-11-08 01:38:28 -0500 (Mon, 08 Nov 2010)
New Revision: 26323
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/process/TaskNodeFigure.java
Log:
JBIDE-7346
Change the line style
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/process/TaskNodeFigure.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/process/TaskNodeFigure.java 2010-11-08
05:16:51 UTC (rev 26322)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/process/TaskNodeFigure.java 2010-11-08
06:38:28 UTC (rev 26323)
@@ -16,6 +16,7 @@
import org.eclipse.draw2d.ActionEvent;
import org.eclipse.draw2d.ActionListener;
import org.eclipse.draw2d.Clickable;
+import org.eclipse.draw2d.ColorConstants;
import org.eclipse.draw2d.Figure;
import org.eclipse.draw2d.Graphics;
import org.eclipse.draw2d.GridData;
@@ -30,6 +31,7 @@
import org.eclipse.draw2d.geometry.Rectangle;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.StructuredSelection;
+import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Menu;
@@ -134,7 +136,9 @@
protected void paintBorder(Graphics graphics) {
// super.paintBorder(graphics);
if (showRectangle) {
- graphics.setLineWidth(2);
+// graphics.setLineWidth(2);
+ graphics.setForegroundColor(ColorConstants.blue);
+ graphics.setLineStyle(SWT.LINE_DOT);
graphics.drawRectangle(getBounds().x+1,getBounds().y+1,getBounds().width - 2 ,
getBounds().height - 2);
}
}
Show replies by date