@SuppressWarnings({ "rawtypes", "unchecked" })
protected void createMoveHandle(List handles) {
if (isDragAllowed()) {
// display 'move' handle to allow dragging
MoveHandle moveHandle = new MoveHandle((GraphicalEditPart) getHost());
moveHandle.setDragTracker(getDragTracker());
moveHandle.setCursor(Cursors.SIZEALL);
LineBorder border = new LineBorder(resourceCache.getOutlineColor(), 1, Graphics.LINE_DASH);
SelectionPresentation selectionPresentation = getSelectionPresentation();
if (selectionPresentation != null) {
border.setColor(resourceCache.getColor(selectionPresentation.getColor().content()));
border.setStyle(FigureUtil.convertLineStyle(selectionPresentation.getStyle().content()));
border.setWidth(selectionPresentation.getWeight().content());
}
moveHandle.setBorder(border);
handles.add(moveHandle);
} else {
// display 'move' handle only to indicate selection
ResizableHandleKit.addMoveHandle((GraphicalEditPart) getHost(),
handles, getSelectTracker(), SharedCursors.ARROW);