Class NodePresentationUtil


  • public class NodePresentationUtil
    extends Object
    This class provides utility methods for default presentation logic for referenced nodes. Here is some implementation notes how presentation text is calculated: 1) default presentation: - custom text by overriding BC#getPresentation() or ISmartReferent#getPresentation(context) - name from INamedConcept - special presentation for smart. refs. TODO should be removed - concept alias 2) matching text: - custom text by overriding ISmartReferent#getMatchingText(context) - resolveInfo from IResolveInfo TODO IResolveInfo now uses mostly to separate matchingText and visibleMatchingText - default presentation 3) visible matching text: - custom text by overriding ISmartReferent#getVisibleMatchingText(context) - default presentation 4) description text: - custom text by overriding ISmartReferent#getDescriptionText(context) - {conceptName} ( {where} ) These facilities should be used only in editor-runtime for specifying the textual presentation of referenced node in completion, etc. Other subsystems should not rely on it and use SNode.getPresentation() or SNode.getName() instead. TODO Should be moved to editor-runtime?