Manage Inconsistencies

Viewing inconsistent elements


Hiding inconsistent elements


Managing inconsistent elements



Use Cases


Show Inconsistent Elements


The Show Inconsistent Elements action toggles between two states:

  1. Showing inconsistencies is disabled.

  2. Showing inconsistencies is enabled.


On-line


Deletions


  1. A concern element or the parent of a concern element is deleted from the Java model.

    1. If showing inconsistencies is disabled.

      • The concern element is removed from the concern model.

      • The concern element is set as inconsistent.

      • It is removed from the view.

      • The dirty flag becomes true.

    2. If showing inconsistencies is enabled.

      • The concern element is removed from the concern model

      • The concern element is set as inconsistent.

      • It is kept displayed in the view.

      • The view is refreshed to indicate that the element doesn't exist.

      • The dirty flag becomes true.


Additions


  1. An element that was previously inconsistent is added to the Java model.

    1. Showing inconsistencies is disabled

      • The element is added to the concern model

      • It appears in the view.

      • The dirty flag becomes true.

    2. Showing inconsistencies is enabled.

      • The view is updated to indicate that the element exists.

      • The dirty flag becomes true.


Changes


  1. The modifiers of a field or a method that is part of the concern model are changed.

      • The view is refreshed to show the new characteristics of the element.

      • The dirty flag becomes true.

Save


  1. There are inconsistent elements in the model.

      • The inconsistent elements are saved as normal concern elements.



Load


Deletions


  1. A concern element does not exist in the Java model.

    1. Showing inconsistent elements is disabled.

      • The concern element is set as inconsistent.

      • It is not displayed in the view.

      • The dirty flag remains false.

    2. Showing inconsistent elements is enabled.

      1. The element is part of the Java model.
        • The concern element is set as inconsistent.

        • It is displayed in the view with an icon indicating that it does not exist.

        • The dirty flag remains false.

      2. The element is not part of the Java model.
        • The concern element is set as inconsistent.

        • It is displayed in the view with an icon indicating that it does not exist.

        • It is displayed as a child node of the concern instead of a child node of it's parent type.

        • It is labeled with its fully qualified name.

        • The dirty flag remains false.


Additions


  1. An inconsistent element now exist in the Java model.

    1. The element exists as-is in the model.

Changes


  1. The modifiers of a field or method that is part of the concern model have been changed.

      • The view shows the appropriate modifiers.

      • The dirty flag remains false.