Skip to content
Snippets Groups Projects
  1. Sep 11, 2014
    • Simon Barner's avatar
      - Move AnnotationFilter to dedicate file · 0888161d
      Simon Barner authored
      - Add GenericAnnotationView.setFixedAnnotationFilter(). It can be used to install an externally created filter instead of the filter option GUI. This can be used to embed GenericAnnotationView in another widget, and to restrict its scope accordingly.
      refs 1841
      0888161d
    • Simon Barner's avatar
      - Enable filtering by model element hierarchy level and annotation type · 83017bb8
      Simon Barner authored
      - Split filtering functionality and filter option widget:
        preparation to configure view with fixed filter (and to hide the filter option UI), e.g.
        for embedding the view in another UI control.
      - Merge column filtering methods into (row) ViewerFilter
      refs 1841
      83017bb8
    • Simon Barner's avatar
      ExtendedCCombo · 4cf12737
      Simon Barner authored
       - Do not add grid layout data that determines how the new ExtendedCCombo is added to its enclosing layout and do not set options in the constructor. Both violate the encapsulation and complicate the reuse of ExtendedCCombo in different contexts.
       - Override all add*() and remove() to ensure consistency of underlying CCombo and list of referenced objects.
      4cf12737
  2. Sep 10, 2014
  3. Sep 09, 2014
  4. Sep 08, 2014
  5. Sep 05, 2014
  6. Sep 04, 2014
  7. Sep 03, 2014
  8. Sep 02, 2014
  9. Sep 01, 2014
  10. Aug 29, 2014
  11. Aug 28, 2014
  12. Aug 27, 2014
    • Simon Barner's avatar
      Add support for IAnnotatedSpecifications for which multiple instances can exist: · 90c20e8f
      Simon Barner authored
      - Extend IAnnotationValueProvider with getter/setter methods to access individual instances of a multi-instance IAnnotatedSpecification
      
      - The storage of the instances is based on an EMap<String, V> in the corresponding IAnnotatedSpecification.
      
      - See MultiInstanceAnnotationValueProviderBase for documentation how to create the corresponding meta-model for the annotation types, and of course use it as a basis for specific multi-instance value providers.
      
      - Merge SingleAttributeValueProviderBase and SingleEDataValueProviderBase to SingleEStructuralFeatureValueProviderBase, and generalize it to work on EStructuralFeatures. This is required to support both EAttributes and "contained" EReferences as annotation storage in the meta-model.
      
      - With the above change, cleanup and extend the instantiation of annotation attributes / contained references to EClasses.
      
      - Extend the GenericAnnotationView to enable instantiation of multi-instance annoations.
      refs 1841
      90c20e8f
  13. Aug 26, 2014
    • Simon Barner's avatar
      Finalize annotation framework overhaul · 3c4ff7cd
      Simon Barner authored
      - IAnnotationValueProvider
        - allowsMultipleValues() -> allowsMultipleAnnotationInstances()
        - createEditingSupport()
           - Remove unused parameter
           - Method is unconditionally used to construct the editing support. Defaults
             are set in base classes implementing IAnnotationValueProvider.
        - remove getFixedValues(): SingleEnumAttributeValueProviderBase() creates the required ComboBoxEditingSupport
        
      - IAnnotationValueProvider base classes:
        - ValueProviderBase: Empty implementation of interface
        - SingleAttributeValueProviderBase: IAnnotationValueProvider manages a single attribute of a given specification class. Probably nearly all static annotations will be based on this.
        - SingleEDataTypeAttributeValueProvider: primitive data types (e.g., int, double), and potentially many other data types managed by EMF
        - SingleEnumAttributeValueProvider: Provides ComboBoxEditingSupport based on enum declaration in Ecore meta-model.
      
      - Further fixes:
        - Make combo box in ComboBoxEditionSupport non-editable
        - Prevent NPE in TextEditingSupport.getValue()
        
      - Use new base classes in test annotation classes
      refs 1841
      3c4ff7cd
    • Simon Barner's avatar
      - Revise and document IAnnotationValueProvider API and add some TODOs for further refinement · eefb44b4
      Simon Barner authored
      - Provide generic abstract base classes:
        - ValueProviderBase -> for generic annotated specifications
        - SinglePrimitiveAttributeValueProviderBase, for annotated specifications whose storage is implemented by a single primitive attribute (Double, Integer, String, etc.)
      eefb44b4
Loading