Skip to content
Snippets Groups Projects
  1. Jun 02, 2015
    • Simon Barner's avatar
      - doCompositorBasedDelete(): Sort list of deletion targets such that object... · 0f19480a
      Simon Barner authored
      - doCompositorBasedDelete(): Sort list of deletion targets such that object whose eContainer() is not contained in 'targets' are deleted first (e.g., free connectors in hierarchical element models).
      - This is required to avoid an NPE when the GUI is refreshed while the list of object to be deleted is processed.
      
      refs 2231
      
      0f19480a
  2. Jun 01, 2015
  3. May 21, 2015
  4. May 20, 2015
  5. May 07, 2015
  6. Apr 30, 2015
  7. Apr 24, 2015
  8. Apr 16, 2015
    • Simon Barner's avatar
      - Use IdentityHashMap instead of TreeMap that uses the identity hashes to order objects. · a98fe553
      Simon Barner authored
      - This fixes the bug that the TreeMap suffers from collisions of identity hashes.
      - The special properties of IdentityHashMap that it uses references equality (instead
        of equals()) to decide collisions is not needed here, but it also does not harm since
        this is the default implementation of equals(), and per definition there cannot be
        two equal elements (at the XMI resource level).
      refs 2309
      a98fe553
  9. Apr 10, 2015
  10. Apr 09, 2015
  11. Apr 07, 2015
    • Simon Barner's avatar
      - Support sharing the ResourceSet used to load models managed by the kernel... · e279dcc6
      Simon Barner authored
      - Support sharing the ResourceSet used to load models managed by the kernel with additional model files (e.g., models, that are linked to the model managed by the kernel using IDs)
        - Save all resources in the ResourceSet when the model managed by the kernel is saved
        - Update ResourceSet when file used to persist Resource not managed by the kernel is removed from the file system
      refs 2309
      
      e279dcc6
  12. Apr 01, 2015
  13. Mar 31, 2015
  14. Mar 27, 2015
  15. Mar 25, 2015
  16. Mar 24, 2015
  17. Mar 18, 2015
  18. Mar 17, 2015
    • Simon Barner's avatar
      - Add prefix "generated-" for directories of generated edit and editor code... · 2a6d4bb2
      Simon Barner authored
      - Add prefix "generated-" for directories of generated edit and editor code (not used in default AF3 distribution)
      2a6d4bb2
    • Simon Barner's avatar
      Problem description: · 4143f522
      Simon Barner authored
      - By default, EMF uses fragment-path based links to persist EReferences. While this works fine for standalone model resources, it can cause inconsistencies in case there are multiple resource models that contain cross-resource references. (I.e., if the structure of the AF3 model resource changes, the links from the external model resource can become invalid)
      - The recommended way to work around this is to configure EMF to use IDs to encode EReferences.
      
      Solution:
      - Change persistence of AF3 model resources to encode references using an (extrinsic) xmi:id, that is identical to the model element's org.fortiss.tooling.kernel.model.IIdLabled.id. A dedicated XMIResource type for AF3 model resources is used (which is created by a resource factory registered for *.af3_23 files)
      - The reason for not using IIdLabled.id as intrinsic ID is that the implemented solution using xmi:id is both forward and backward compatible
      - At the price of losing forward compatibility, the IIdLabled.id could be changed to a derived, volatile EAttribute that simply returns the value of xmi:id
      - Add EContentAdapter to sync xmi:id and IIdLabled.id
      - Ensure uniqueness of IDs (that is now much more crucial) during when loading and saving as well as importing and exporting models (and print a warning to the console in case duplicates have been detected and fixed)
      - As an additional safety layer, add constraint checkers to ensure uniqueness of IDs and consistency of IIdLabled.id and xmi:id
      
      Related changes:
      - Speed up loading and saving of XMI resources by setting corresponding XMLResource options
      - Ensure that IDs are assigned to annotations as soon as they are instantiated
      refs 2309
      4143f522
  19. Mar 16, 2015
    • Simon Barner's avatar
      - GSNPositionedEditPartBase*: Avoid code duplication by pushing... · 759cb1fc
      Simon Barner authored
      - GSNPositionedEditPartBase*: Avoid code duplication by pushing refreshDecorationFigure() to PositionedEditPartBase
      - PositionedEditPartBase.refreshDecorationFigure()
        - Avoid SWT Image leak by reusing the same icons
        - Add more null-checks to implementation
      - MarkerViewPart -> column updater: Avoid SWT Image leak by disposing old image before setting a new one
      759cb1fc
Loading