public void propertyChange(final PropertyChangeEvent evt) {
if ("active".equals(evt.getPropertyName())) {
ToolWindow toolWindow = (ToolWindow) evt.getSource();
FloatingTypeDescriptor typeDescriptor = toolWindow.getTypeDescriptor(FloatingTypeDescriptor.class);
if (transparencyTimer != null) {
transparencyTimer.stop();
if (transparencyAnimation.isAnimating()) {
synchronized (FloatingFrame.this) {
if (transparencyManager.isAlphaModeEnabled(FloatingFrame.this)) {
transparencyAnimation.stop();
transparencyManager.setAlphaModeRatio(FloatingFrame.this, 1.0f);
}
}
}
}
if (typeDescriptor.isTransparentMode()) {
if (evt.getNewValue() == Boolean.FALSE) {
if (transparencyAnimation != null) {
transparencyTimer = new Timer(typeDescriptor.getTransparentDelay() + 100, this) {
@Override
protected void fireActionPerformed(ActionEvent e) {
e = new ActionEvent(evt.getSource(),
e.getID(), e.getActionCommand(), e.getWhen(), e.getModifiers());
super.fireActionPerformed(e);