Grey-out Annotation menu options when not-applicable
If a column is currently selected that is not part of an Observation, it makes no sense to add or remove a Context from it.
To implement this, we'll have to introduce some rules-based table selection events in the Annotation Plugin. In certain cases it might be ambiguous what might be allowed or not, but those are likely to be fringe cases.
#1 Updated by ben leinfelder over 10 years ago
Here are the current scenarios:
1. When you first open Morpho (no data package is open)
-Only Search Annotations... is enabled
2. Open a datapackage
-Search Annotations... remains enabled
-Save Annotations... is enabled (I know there's consternation around this potentially confusing item)
3. Select a data column (header, not the cell)
-Everything is enabled.
For #3 there is a case where a multiple selection is required (merging measurements under the same observation). If you invoke the merge action with only a single column, an information message is presented saying that you need to select more than 1 column.