blob: 1ad542616b0b0607669fcf461b8e6d121137f6eb [file] [log] [blame]
/**
*
*/
package org.eclipse.jst.pagedesigner.editpolicies;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.geometry.Dimension;
import org.eclipse.gef.DragTracker;
import org.eclipse.gef.GraphicalEditPart;
class NonVisualChildDecorator extends ElementDecoratorSquareHandle
{
NonVisualChildDecorator(final GraphicalEditPart hostPart, int location)
{
super(hostPart, new CornerRelativeHandleLocator(hostPart.getFigure(), location));
}
protected void init() {
setPreferredSize(new Dimension(8, 8));
}
public void ancestorMoved(IFigure ancestor) {
// TODO: for some reason this causes an infinite loop
// when in the feedback layer...
//super.ancestorMoved(ancestor);
}
protected DragTracker createDragTracker() {
return null;
}
protected int getAlpha()
{
return 255;
}
}