public void started() {
BasicUtilities.invokeLaterOnEDT(new Runnable() {
@Override
public void run() {
DropableGlassPane glassPane = new DropableGlassPane();
glassPane.addDropRegion(new WindowDropRegion(null,
Contribution.LEFT_VIEW, content) {
@Override
public Rectangle getBounds() {
Rectangle bounds =
getWindowManager().getMainWindow().getContentPane().getBounds();
bounds.height = (bounds.height - bounds.y) * 2 / 3;
bounds.width = bounds.width / 3;
return bounds;
}
});
glassPane.addDropRegion(new WindowDropRegion(null,
Contribution.RIGHT_VIEW, content) {
@Override
public Rectangle getBounds() {
Rectangle bounds =
getWindowManager().getMainWindow().getContentPane().getBounds();
bounds.height = (bounds.height - bounds.y) * 2 / 3;
bounds.width = bounds.width / 3;
bounds.x = bounds.x + bounds.width * 2;
return bounds;
}
});
glassPane.addDropRegion(new WindowDropRegion(null,
Contribution.BOTTOM_VIEW, content) {
@Override
public Rectangle getBounds() {
Rectangle bounds =
getWindowManager().getMainWindow().getContentPane().getBounds();
bounds.height = (bounds.height - bounds.y) / 3;
bounds.y = bounds.y + bounds.height * 2;
return bounds;
}
});
glassPane
.addDropRegion(new WindowDropRegion(null, Contribution.EDITOR,
content) {
@Override
public Rectangle getBounds() {