NOTICE! This is a static HTML version of a legacy ImageJ Trac ticket.

The ImageJ project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Ticket #974 (closed defect: fixed)

Opened 2012-02-13T15:19:08-06:00

Last modified 2012-03-01T14:58:19-06:00

Display::close() does not actually close window

Reported by: bdezonia Owned by: bdezonia
Priority: major Milestone: imagej2-b1-initial
Component: Display API Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking:

Description

The following plugin is ineffective. The event tracking somehow does not recognize that the window should be closed.

There is a temp workaround that I employed in the one place I needed it (in Harmonizer). It uses display.getPanel() so when Curtis makes his planned display code changes it will be discovered and remedied.

@Plugin(menuPath = "Plugins>Debug>Close Active Display")
public class CloseActiveDisplay implements ImageJPlugin {

@Parameter
private ImageDisplayService service;


@Override
public void run() {

service.getActiveImageDisplay().close();

}

}

Change History

comment:1 Changed 2012-03-01T14:58:07-06:00 by bdezonia

  • Status changed from new to closed
  • Resolution set to fixed

Fixed by 2ac9f2bf56dee339aee4adae5b81a95806320ab2

comment:2 Changed 2012-03-01T14:58:19-06:00 by bdezonia

  • Milestone changed from imagej-2.0-beta2 to imagej-2.0-beta1