Class TeamStateProvider

    • Constructor Detail

      • TeamStateProvider

        public TeamStateProvider()
    • Method Detail

      • isDecorationEnabled

        public boolean isDecorationEnabled​(Object element)
        Determine if the decorator for the element is enabled by consulting the teamDecorator extension point to determine the decorator id associated with the resources the element maps to. Subclasses may override.
        Specified by:
        isDecorationEnabled in interface ITeamStateProvider
        Parameters:
        element - the model element
        Returns:
        whether decoration is enabled for the given model element
        See Also:
        ITeamStateProvider.isDecorationEnabled(java.lang.Object)
      • getDecoratedStateMask

        public int getDecoratedStateMask​(Object element)
        Determine the decorated state for the element by consulting the teamDecorator extension point to get the decorated state mask associated with the resources the element maps to. Subclasses may override.
        Specified by:
        getDecoratedStateMask in interface ITeamStateProvider
        Parameters:
        element - the model element to be decorated
        Returns:
        the mask that indicates what state the appropriate team decorator will decorate
        See Also:
        ITeamStateProvider.getDecoratedStateMask(java.lang.Object)
      • fireStateChangeEvent

        protected final void fireStateChangeEvent​(ITeamStateChangeEvent event)
        Fire the change event to all listeners.
        Parameters:
        event - the change event