Class NavigatorOrderDescription

    • Constructor Detail

      • NavigatorOrderDescription

        public NavigatorOrderDescription()
    • Method Detail

      • getObjectIndex

        public int getObjectIndex​(String featureName,
                                  long bmObjectId)
        Description copied from interface: INavigatorOrderDescription
        Returns the index of the object with the given bm id among siblings for the given feature.
        Specified by:
        getObjectIndex in interface INavigatorOrderDescription
        Parameters:
        featureName - the feature name to get feature value objects order for, cannot be null
        bmObjectId - the bm object id to get index for, cannot be null
        Returns:
        the index among siblings or -1 if there is no object with the given id
      • getObjectIndex

        public int getObjectIndex​(String featureName,
                                  org.eclipse.emf.ecore.EObject object)
        Description copied from interface: INavigatorOrderDescription
        Returns the index of the given object among siblings for the given feature.
        Specified by:
        getObjectIndex in interface INavigatorOrderDescription
        Parameters:
        featureName - the feature name to get feature value objects order for, cannot be null
        object - the given object to get index for, cannot be null
        Returns:
        the index among siblings or -1 if there is no object with the given id
      • setObjectsOrder

        public void setObjectsOrder​(String featureName,
                                    Map<Long,​Integer> objectsOrder)
        Description copied from interface: INavigatorOrderDescription
        Sets the navigator objects order associated with the given feature.
        Specified by:
        setObjectsOrder in interface INavigatorOrderDescription
        Parameters:
        featureName - the feature name to update feature value objects order for, cannot be null
        objectsOrder - a new objects order, cannot be null
      • setObjectOrder

        public void setObjectOrder​(String featureName,
                                   long bmObjectId,
                                   int orderIndex)
        Description copied from interface: INavigatorOrderDescription
        Sets the navigator objects order associated with the given feature for the specified child object.
        Specified by:
        setObjectOrder in interface INavigatorOrderDescription
        Parameters:
        featureName - the feature name to update feature value objects order for, cannot be null
        bmObjectId - the child object bm id to set index for
        orderIndex - a new order index for the specified child object