~andre-dau/jhelioviewer/deadlock-fix

« back to all changes in this revision

Viewing changes to jhv/src/org/helioviewer/jhv/gui/controller/ImagePanelEventPopupController.java

  • Committer: Andre Dau
  • Date: 2010-06-16 22:25:02 UTC
  • Revision ID: andre@sporran.nascom.nasa.gov-20100616222502-clt9p39o6h2y1bew
Fix for bug 595113

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
import org.helioviewer.viewmodel.changeevent.RegionChangedReason;
19
19
import org.helioviewer.viewmodel.changeevent.TimestampChangedReason;
20
20
import org.helioviewer.viewmodel.changeevent.ViewportChangedReason;
21
 
import org.helioviewer.viewmodel.view.GUIViewListener;
22
21
import org.helioviewer.viewmodel.view.RegionView;
23
22
import org.helioviewer.viewmodel.view.View;
24
23
import org.helioviewer.viewmodel.view.ViewHelper;
 
24
import org.helioviewer.viewmodel.view.ViewListener;
25
25
import org.helioviewer.viewmodel.view.ViewportView;
26
26
import org.helioviewer.viewmodel.viewportimagesize.ViewportImageSize;
27
27
 
36
36
 * @author Markus Langenberg
37
37
 * 
38
38
 */
39
 
public class ImagePanelEventPopupController implements ImagePanelPlugin, MouseListener, MouseMotionListener, GUIViewListener {
 
39
public class ImagePanelEventPopupController implements ImagePanelPlugin, MouseListener, MouseMotionListener, ViewListener {
40
40
 
41
41
    // ///////////////////////////////////////////////////////////////////////////
42
42
    // Definitions
230
230
        }
231
231
    }
232
232
 
233
 
    public void viewChanged(View sender, ChangeEvent event) {
234
 
        ViewHelper.ensureGUIViewListenerExecutionInGUIThread(this, sender, event);
235
 
    }
236
233
    
237
234
    /**
238
235
     * {@inheritDoc}
239
236
     */
240
 
    public void viewChangedRunningInGUIThread(View sender, ChangeEvent aEvent) {
 
237
    public void viewChanged(View sender, ChangeEvent aEvent) {
241
238
        if (popUp != null) {
242
239
            if (aEvent.reasonOccurred(RegionChangedReason.class) || aEvent.reasonOccurred(ViewportChangedReason.class) || aEvent.reasonOccurred(TimestampChangedReason.class)) {
243
240
                popUp.setVisible(false);