Edit >> Cut may use wrong fill value

Description

When you run Edit >> CUt it is supposed to fill with the background value(s). But the plugin fills in with the last background value IJ1 knows about. This may not be exactly the same as the current Options >> Channels bg values. Determine why they are not in sync and fix.

Change History

The IJ1 colors are only ever updated when the PickerTool has been run. If a user enters values into the OptionsChannels values no change is made to the IJ1 colors.

One possible solution is to map the new channel values into a color for the currently active DatasetView. If no view active then do not update the IJ1 colors otherwise do. The DatasetView would know how many channels to pull out depending upon the number of converters it's projector and also whether to composite the channels. This seems like a reasonable approach.

One obstacle to this approach is that options plugins live in ij-core while key classes live in ij-data. We may need to move the options classes into ij-data. And that might have other ramifications.

When there is no active dataset view the IJ1 colors can become stale. Although upon running a legacy plugin maybe we'd set the options channels to their current values which would then use the active DatasetView to map colors before the IJ1 plugin runs. Maybe always doing this is the real solution.