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 #379 (closed enhancement: fixed)

Opened 2011-03-17T12:42:18-05:00

Last modified 2011-07-26T15:50:15-05:00

Add support for plugin previews

Reported by: curtis Owned by: curtis
Priority: major Milestone: imagej-2.0-alpha3
Component: Plugin Framework Version:
Severity: non-issue Keywords:
Cc: bene.schmid@… Blocked By:


The plugin framework needs a way to provide a preview in response to input dialog changes, before OK is pressed. We should create a new interface called PreviewPlugin that includes a new method, preview(), which is automatically called when dialog widgets change.

In this way, many "naive" preview implementations can have preview() delegate to run(), but it will also be possible to customize the behavior of preview() compared to run().

Change History

comment:1 Changed 2011-04-28T16:27:12-05:00 by curtis

  • Milestone set to imagej-2.0-alpha3

comment:2 Changed 2011-05-20T16:35:50-05:00 by curtis

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

Initial preview feature added in 37c47161459c98b3bdfbe77d1ae375668054e1e8. Seems to work well with a14a398931844d83c84f21ef502badd50fdf0499.

See source:trunk/core/core-plugins/src/main/java/imagej/core/plugins/ for an example of usage.

comment:3 Changed 2011-07-26T15:50:15-05:00 by curtis

As of 9adfe9d21522060645e4ab576b0983a9b5297e02, the preview feature also provides a cancel() method for undoing the effects of a preview.