Initial implementation: Provide control to apply value to multiple rows.
- Extend the IAnnotationValueProvider interface to include a method that returns a list of context menu entries with associated actions. The default implementation returns an empty list (implemented in the default interface method). This allows existing annotation value providers to add some default context menu actions by implementing an additional interface while existing AnnotationValueProviders do not need to be adjusted. - Add an additional descriptor class "AnnotationInstSpec" that allows to uniquely identify the Annotation (& instanceKey) shown as columns in the annotation view. It has been abstracted from the class ColumnHandle. - Add a method to the AnnotationLabelProvider that allows to query the Annotation for which it has been constructed. - Extend the GenericAnnotationView to display a context menu for "annotation columns". The content of the context menu is specified by the AnnoationvalueProvider. - Implement a context menu entry in the interface DefaultAnnotationContextActions that is implemented by the EnergyConsumptionValueProvider. refs 2361
Showing
- org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/annotation/labelprovider/AnnotationLabelProvider.java 16 additions, 0 deletions.../ui/annotation/labelprovider/AnnotationLabelProvider.java
- org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/annotation/view/generic/ColumnHandle.java 9 additions, 22 deletions...tooling/base/ui/annotation/view/generic/ColumnHandle.java
- org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/annotation/view/generic/GenericAnnotationView.java 131 additions, 14 deletions...ase/ui/annotation/view/generic/GenericAnnotationView.java
- org.fortiss.tooling.base/trunk/src/org/fortiss/tooling/base/annotation/valueprovider/AnnotationInstSpec.java 82 additions, 0 deletions...ing/base/annotation/valueprovider/AnnotationInstSpec.java
- org.fortiss.tooling.base/trunk/src/org/fortiss/tooling/base/annotation/valueprovider/DefaultAnnotationContextActions.java 93 additions, 0 deletions...tation/valueprovider/DefaultAnnotationContextActions.java
- org.fortiss.tooling.base/trunk/src/org/fortiss/tooling/base/annotation/valueprovider/IAnnotationValueProvider.java 20 additions, 1 deletion...se/annotation/valueprovider/IAnnotationValueProvider.java
Loading
Please register or sign in to comment