menubar.setHighlighted(true);
BoundsHandle.removeBoundsHandlesFrom(this);
break;
case NORMAL:
WorldObjectImpl source = mySourceRef.get();
if (savedWindowBounds != null) {
setBounds(savedWindowBounds);
setOffset(savedWindowOffset);
} else {
setWidth(DEFAULT_WIDTH);
setHeight(DEFAULT_HEIGHT);
if (source != null) {
setOffset((getWidth() - source.getWidth()) / -2f, source.getHeight() + 20);
}
}
if (source != null) {
if (myEventConsumer != null) {
removeInputEventListener(myEventConsumer);
myEventConsumer = null;
}
source.addChild(this);
myBorder.setVisible(true);
BoundsHandle.addBoundsHandlesTo(this);
if (mySourceShadow == null) {
mySourceShadow = new RectangularEdge(source, this);
source.addChild(mySourceShadow, 0);
}
} else {
Util.Assert(false, "Window still active after source destroyed");
}