createButtons(northBorder);
}
boolean resizable = (style & SWT.RESIZE) != 0;
{
final MouseResizeListener mouseResizeListener = new MouseResizeListener(
IContainer.BORDER_N, (BorderCanvas) getBorder(IContainer.BORDER_N),
resizable);
getBorder(IContainer.BORDER_N).addListener(SWT.MouseDown, mouseResizeListener);
getBorder(IContainer.BORDER_N).addListener(SWT.MouseMove, mouseResizeListener);
getBorder(IContainer.BORDER_N).addListener(SWT.MouseExit, mouseResizeListener);
}
{
final MouseResizeListener mouseResizeListener = new MouseResizeListener(
IContainer.BORDER_E, (BorderCanvas) getBorder(IContainer.BORDER_E),
resizable);
getBorder(IContainer.BORDER_E).addListener(SWT.MouseDown, mouseResizeListener);
getBorder(IContainer.BORDER_E).addListener(SWT.MouseMove, mouseResizeListener);
getBorder(IContainer.BORDER_E).addListener(SWT.MouseExit, mouseResizeListener);
}
{
final MouseResizeListener mouseResizeListener = new MouseResizeListener(
IContainer.BORDER_S, (BorderCanvas) getBorder(IContainer.BORDER_S),
resizable);
getBorder(IContainer.BORDER_S).addListener(SWT.MouseDown, mouseResizeListener);
getBorder(IContainer.BORDER_S).addListener(SWT.MouseMove, mouseResizeListener);
getBorder(IContainer.BORDER_S).addListener(SWT.MouseExit, mouseResizeListener);
}
{
final MouseResizeListener mouseResizeListener = new MouseResizeListener(
IContainer.BORDER_W, (BorderCanvas) getBorder(IContainer.BORDER_W),
resizable);
getBorder(IContainer.BORDER_W).addListener(SWT.MouseDown, mouseResizeListener);
getBorder(IContainer.BORDER_W).addListener(SWT.MouseMove, mouseResizeListener);
getBorder(IContainer.BORDER_W).addListener(SWT.MouseExit, mouseResizeListener);
}
{
final MouseResizeListener mouseResizeListener = new MouseResizeListener(
IContainer.BORDER_NE, (BorderCanvas) getBorder(IContainer.BORDER_NE),
resizable);
getBorder(IContainer.BORDER_NE).addListener(SWT.MouseDown, mouseResizeListener);
getBorder(IContainer.BORDER_NE).addListener(SWT.MouseMove, mouseResizeListener);
getBorder(IContainer.BORDER_NE).addListener(SWT.MouseExit, mouseResizeListener);
}
{
final MouseResizeListener mouseResizeListener = new MouseResizeListener(
IContainer.BORDER_NW, (BorderCanvas) getBorder(IContainer.BORDER_NW),
resizable);
getBorder(IContainer.BORDER_NW).addListener(SWT.MouseDown, mouseResizeListener);
getBorder(IContainer.BORDER_NW).addListener(SWT.MouseMove, mouseResizeListener);
getBorder(IContainer.BORDER_NW).addListener(SWT.MouseExit, mouseResizeListener);
}
{
final MouseResizeListener mouseResizeListener = new MouseResizeListener(
IContainer.BORDER_SE, (BorderCanvas) getBorder(IContainer.BORDER_SE),
resizable);
getBorder(IContainer.BORDER_SE).addListener(SWT.MouseDown, mouseResizeListener);
getBorder(IContainer.BORDER_SE).addListener(SWT.MouseMove, mouseResizeListener);
getBorder(IContainer.BORDER_SE).addListener(SWT.MouseExit, mouseResizeListener);
}
{
final MouseResizeListener mouseResizeListener = new MouseResizeListener(
IContainer.BORDER_SW, (BorderCanvas) getBorder(IContainer.BORDER_SW),
resizable);
getBorder(IContainer.BORDER_SW).addListener(SWT.MouseDown, mouseResizeListener);
getBorder(IContainer.BORDER_SW).addListener(SWT.MouseMove, mouseResizeListener);
getBorder(IContainer.BORDER_SW).addListener(SWT.MouseExit, mouseResizeListener);