Skip to content
Snippets Groups Projects
  1. 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
  2. Aug 25, 2014
    • Simon Barner's avatar
      - Introduce sub packages for annotation framework (see... · 5e8b053e
      Simon Barner authored
      - Introduce sub packages for annotation framework (see org.fortiss.tooling.base.ui.annotation -> package.html for documentation)
      - Standardize class names
      5e8b053e
    • Simon Barner's avatar
      - IAnnotationValueProvider · b0f2d575
      Simon Barner authored
       - add setAnnotationValue(String value, T specification) in addition to setAnnotationValue(V value, T specification) variant
       - This enables to use the String-based AnnotationEditingSupportStandard for non-String annotations.
       - Concrete AnnotationValueProviders must implement this method and convert the String representation of the input to the storage format provided by the respective annotation class (e.g., for Double, just by using the Double(String) constructor)
       - The current implementation  has been tested with String, Double, enum and multiple value String annotations
      
      - TODO:
        - Cleanup of IAnnotationValueProvider
        - Base class hierarchy for common concrete annotation value providers
        - multiple value annotation support in GenericAnnotationView
      b0f2d575
    • Simon Barner's avatar
  3. Aug 20, 2014
  4. Aug 07, 2014
  5. Aug 06, 2014
  6. Aug 05, 2014
  7. Jul 31, 2014
  8. Jul 30, 2014
  9. Jul 29, 2014
  10. Jul 28, 2014
  11. Jul 24, 2014
Loading