Ticket #379 (closed enhancement: fixed)

Opened 8 years ago

Last modified 8 years ago

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:
Blocking:

Description

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 8 years ago by curtis

  • Milestone set to imagej-2.0-alpha3

comment:2 Changed 8 years ago 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/ParameterTester.java for an example of usage.

comment:3 Changed 8 years ago by curtis

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

Note: See TracTickets for help on using tickets.