@Override
public Rectangle getBounds()
{
IFigure partFigure = this.editPart.getFigure();
final org.eclipse.draw2d.geometry.Rectangle bounds = partFigure.getBounds().getCopy();
partFigure.translateToAbsolute(bounds);
Point viewerOrigin = this.diagramEditor.getGraphicalViewer().getControl().getLocation();
viewerOrigin = this.diagramEditor.getGraphicalViewer().getControl().toDisplay(viewerOrigin);
bounds.x += viewerOrigin.x;
bounds.y += viewerOrigin.y;
return new Rectangle( bounds.x, bounds.y, bounds.width, 20 );