- Aug 29, 2014
-
-
Simon Barner authored
Introduce "derived" annotation, i.e. based on calculations instead of explicit annotations / model contents can be implemented - DerivedAnnotationBase meta-model element, with getValue() EOperation, and a extensive documentation. - Corresponding DerivedAnnotationValueProviderBase, implementing a read-only, text-view of the calculation result - To implement the above, move handling of annotation EClass & factory to ValueProviderBase refs 1841
-
Simon Barner authored
- Fix NPE in case a filter actually strikes
-
- Aug 28, 2014
-
-
Simon Barner authored
- renamings of model elements (e.g., in the properties view) - addition of new instances of multi-instance annotations -> Use originator of the notification, and not the new value to trigger the update refs 1841
-
Simon Barner authored
refs 1841
-
Simon Barner authored
- Move column label provider displaying the model element names in the first column to a dedicated class ElementNameLabelProvider - Introduce IAnnotationViewPart
-
Simon Barner authored
- Ensure and document that all output of TextEditingSupport.getValue() is converted to a non-null String. This is required because this value will be consumed in TextCellEditor.doSetValue() which expects such input
-
Simon Barner authored
- Apply <underlying EMF Factory>.createFromString() to all String input in order to ensure conversion for input received e.g. from TextCellEditors on all code paths
-
Simon Barner authored
refs 1841
-
Simon Barner authored
- Install {@link Adapter} to watch for the addition or removal of model elements to/from elements visible in this {@link AnnotationViewPartBase} (to trigger according updates). - Ensure that all annotations for all offspring of the currently selected are shown in the view - AnnotationViewPartBase no longer maintains a protected attribute with the list of current annotation entries, but triggers the abstract update(Collection<AnnotationEntry>) method at the right occasions (to be implemented by concrete views). - Possible improvement in GenericAnnotationView: efficient implementation of update(Collection<AnnotationEntry>) (instead of complete redraw). refs 1841
-
- Aug 27, 2014
-
-
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
-
- Aug 26, 2014
-
-
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
-
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.)
-
- Aug 25, 2014
-
-
Simon Barner authored
- Introduce sub packages for annotation framework (see org.fortiss.tooling.base.ui.annotation -> package.html for documentation) - Standardize class names
-
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
-
Simon Barner authored
-
- Aug 20, 2014
-
-
Vincent Aravantinos authored
-
Vincent Aravantinos authored
-
- Aug 07, 2014
-
-
Dongyue Mou authored
refs 2093
-
Florian Hölzl authored
refs 2093
-
Florian Hölzl authored
refs 2093
-
Florian Hölzl authored
refs 2093
-
- Aug 06, 2014
-
-
Johannes Eder authored
refs 2093
-
Johannes Eder authored
refs 2093
-
Vincent Aravantinos authored
refs 2093
-
Vincent Aravantinos authored
fix of failures: was again due to the EMF annoying thing of forcing non-duplicates in function arguments refs 2077
-
- Aug 05, 2014
-
-
Florian Hölzl authored
refs 2093
-
Vincent Aravantinos authored
refs 2093
-
Vincent Aravantinos authored
refs 2049
-
Vincent Aravantinos authored
refs 2066
-
Vincent Aravantinos authored
refs 2093
-
Vincent Aravantinos authored
refs 2093
-
Florian Hölzl authored
refs 2093
-
Florian Hölzl authored
refs 2093
-
Florian Hölzl authored
refs 2093
-
Florian Hölzl authored
refs 2093
-
Florian Hölzl authored
refs 2093
-
Florian Hölzl authored
refs 2093
-
Florian Hölzl authored
refs 2093
-
Florian Hölzl authored
refs 2093
-
Florian Hölzl authored
refs 2093
-