Lines 40-45
Link Here
|
40 |
import org.eclipse.gmf.runtime.draw2d.ui.mapmode.MapModeUtil; |
40 |
import org.eclipse.gmf.runtime.draw2d.ui.mapmode.MapModeUtil; |
41 |
import org.eclipse.swt.SWT; |
41 |
import org.eclipse.swt.SWT; |
42 |
import org.eclipse.swt.graphics.Color; |
42 |
import org.eclipse.swt.graphics.Color; |
|
|
43 |
import org.eclipse.swt.graphics.Cursor; |
43 |
|
44 |
|
44 |
|
45 |
|
45 |
/** |
46 |
/** |
Lines 1237-1241
Link Here
|
1237 |
super.paintFigure(graphics); |
1238 |
super.paintFigure(graphics); |
1238 |
graphics.popState(); |
1239 |
graphics.popState(); |
1239 |
} |
1240 |
} |
|
|
1241 |
|
1242 |
/** |
1243 |
* Currently we cannot create bendpoints with avoid obstructions |
1244 |
* routing style turned on. Hence we need to define a special cursor |
1245 |
* to give user feedback about the disabled bendpoint editing |
1246 |
*/ |
1247 |
static private final Cursor NO_COMMAND_SPECIAL_CURSOR = new Cursor(null, SWT.CURSOR_ARROW); |
1248 |
|
1249 |
/** |
1250 |
* Overriden to display special cursor when needed. Fix for bug #145467 |
1251 |
*/ |
1252 |
public Cursor getCursor() { |
1253 |
if (isAvoidObstacleRouting()) |
1254 |
return NO_COMMAND_SPECIAL_CURSOR; |
1255 |
return super.getCursor(); |
1256 |
} |
1257 |
|
1240 |
} |
1258 |
} |
1241 |
|
1259 |
|