Text for lower-level class in classifier mapping truncated

Issue #60 resolved
Matthias Schoettle created an issue

When creating a classifier mapping for, for example, the Observer aspect, the selector shows all texts for the lower-level classes (from element) truncated. For example:

ver.|Observer
ver.|Subject

Comments (4)

  1. Matthias Schoettle reporter
    • changed status to open

    The text is not truncated by the GUI. Changing the component to Metamodel.

    In the SelectorView, the namer calls AdapterFactoryUtil.getPropertyText(...) to retrieve the text for the component. In there, the type name is stripped from the text retrieved by label provider.

  2. Matthias Schoettle reporter

    The type name is also stripped in the property descriptor. That's why the end of "Observer" is still in the final text.

    Commit 4ae3160 introduced behaviour in the MappingFromElementItemPropertyDescriptor in MappingItemProvider with the type name not being stripped. Commit 1abcda2 changed this behaviour, but it is not clear what problem exactly got fixed.

    The aspect name is not really of importance. It can actually be omitted, because only elements from the instantiated aspect can be selected.

  3. Matthias Schoettle reporter

    Fixed issue #60: Aspect name is not prepended anymore and therefore, the text can be retrieved by the actual delegator, which returns the class name including the type name.

    → <<cset 35d6264ee159>>

  4. Log in to comment