Ticket #390 (closed task: fixed)

Opened 8 years ago

Last modified 8 years ago

Make legacy layer reuse existing displays when possible

Reported by: bdezonia Owned by: bdezonia
Priority: major Milestone: imagej-2.0-alpha1
Component: Legacy Compatibility Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking:

Description

When running plugins IJ2 hatches new image Windows where IJ1 may not. Modify the legacy layer to display a new window of an image only if the Dataset returned by the legacy plugin is not already being displayed elsewhere.

Change History

comment:1 Changed 8 years ago by bdezonia

Modify LegacyManager's behavior when overriding updateAndDraw(). The DisplayPostProcessor::handleOutput() method needs to reference a new DatasetManager. This manager should map Datasets to Displays. handleOutput() should be able to loop over the displays and see if current Dataset is shown there. If so then just do a refresh of the Display else hatch a new Display like now.

comment:2 Changed 8 years ago by bdezonia

  • Summary changed from Make legacy layer display images as IJ1 would to Make legacy layer reuse existing displays when possible

comment:3 Changed 8 years ago by bdezonia

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.