Revision 471 2.1/trunk/org.gvsig.view3d/org.gvsig.view3d.swing/org.gvsig.view3d.swing.impl/src/main/java/org/gvsig/view3d/swing/impl/DefaultView3DPanel.java

View differences:

DefaultView3DPanel.java
32 32
import javax.swing.JPanel;
33 33

  
34 34
import org.gvsig.fmap.mapcontext.MapContext;
35
import org.gvsig.tools.observer.BaseNotification;
36
import org.gvsig.tools.observer.Notification;
37 35
import org.gvsig.tools.observer.ObservableHelper;
38 36
import org.gvsig.tools.observer.Observer;
39 37
import org.gvsig.tools.swing.api.ToolsSwingLocator;
......
121 119
    }
122 120

  
123 121
    public void componentHidden(ComponentEvent e) {
124
        
125
        Notification beforeDisposeNotification =
126
            new BaseNotification(View3DPanel.BEFORE_DISPOSE_PANEL_NOTIFICATION,
127
                null);
128
        
129
        observableHelper.notifyObservers(this,beforeDisposeNotification);
130
        
131 122
        getMapControl3D().dispose();
132
        
133
        Notification afterDisposeNotification =
134
            new BaseNotification(View3DPanel.AFTER_DISPOSE_PANEL_NOTIFICATION,
135
                null);
136
        
137
        observableHelper.notifyObservers(this,afterDisposeNotification);
138
        
139 123
    }
140

  
141 124
}

Also available in: Unified diff