# Uses of Interface
org.eclipse.ui.SelectionListenerFactory.ISelectionModel

Packages that use SelectionListenerFactory.ISelectionModel
Package
Description
org.eclipse.ui
Application programming interfaces for interaction with and extension of the Eclipse Platform User Interface.

## Uses of SelectionListenerFactory.ISelectionModel in org.eclipse.ui

Fields in org.eclipse.ui with type parameters of type SelectionListenerFactory.ISelectionModel
Modifier and Type
Field
Description
`static Predicate<SelectionListenerFactory.ISelectionModel>`
SelectionListenerFactory.Predicates.`alreadyDelivered`
A predicate that tests true if the selection and the part it came from are the same as the selection listener currently has.
`static Predicate<SelectionListenerFactory.ISelectionModel>`
SelectionListenerFactory.Predicates.`alreadyDeliveredAnyPart`
A predicate that tests true if the selection is the same as the selection we currently have.
`static Predicate<SelectionListenerFactory.ISelectionModel>`
SelectionListenerFactory.Predicates.`emptySelection`
A predicate that will test true if the selection is not empty.
`static Predicate<SelectionListenerFactory.ISelectionModel>`
SelectionListenerFactory.Predicates.`selectionPartVisible`
A predicate that tests true when the part that provides the selection is visible.
`static Predicate<SelectionListenerFactory.ISelectionModel>`
SelectionListenerFactory.Predicates.`selfMute`
A predicate that tests true if the selection originates from its own part.
`static Predicate<SelectionListenerFactory.ISelectionModel>`
SelectionListenerFactory.Predicates.`targetPartVisible`
A predicate that tests true if the part that receives the selection is visible.
Methods in org.eclipse.ui that return types with arguments of type SelectionListenerFactory.ISelectionModel
Modifier and Type
Method
Description
`static Predicate<SelectionListenerFactory.ISelectionModel>`
SelectionListenerFactory.Predicates.`adaptsTo(Class<?> adapterType)`
Creates a predicate that returns true when all the objects contained in an `IStructuredSelection` are adaptable to the passed adapter type.
`static Predicate<SelectionListenerFactory.ISelectionModel>`
SelectionListenerFactory.Predicates.`minimalSelectionSize(int size)`
Creates a predicate that will test true if the selection is an `IStructuredSelection` and number of elements is at least the passed size.
`static Predicate<SelectionListenerFactory.ISelectionModel>`
SelectionListenerFactory.Predicates.`selectionSize(int size)`
Creates a predicate that will test true if the selection is an `IStructuredSelection` and number of elements matches the passed size.
`static Predicate<SelectionListenerFactory.ISelectionModel>`
SelectionListenerFactory.Predicates.`selectionType(Class<? extends ISelection> selectionType)`
Creates a predicate that tests true if the selection is an instance of the passed selection type.
Method parameters in org.eclipse.ui with type arguments of type SelectionListenerFactory.ISelectionModel
Modifier and Type
Method
Description
`static ISelectionListener`
SelectionListenerFactory.`createListener(IWorkbenchPart part, Predicate<SelectionListenerFactory.ISelectionModel> predicate)`
Create a listener for a part that also acts as the selection listener.
`static ISelectionListener`
SelectionListenerFactory.`createListener(IWorkbenchPart part, ISelectionListener listener, Predicate<SelectionListenerFactory.ISelectionModel> predicate)`
Create a listener for a part with a separate selection listener.
`static ISelectionListener`
SelectionListenerFactory.`createVisibleListener(IWorkbenchPart part, ISelectionListener listener, Predicate<SelectionListenerFactory.ISelectionModel> additionalPredicate)`
Convenience method to create a listener that only gets notified when: the selection has changed; the part is visible.
`static ISelectionListener`
SelectionListenerFactory.`createVisibleSelfMutedListener(IWorkbenchPart part, ISelectionListener listener, Predicate<SelectionListenerFactory.ISelectionModel> additionalPredicate)`
Provides a listener that only gets notified of selection events when: the selection has changed; the part is visible; the selection does not originate from the part.
`static ISelectionListener`
SelectionListenerFactory.`decorate(ISelectionListener listener, Predicate<SelectionListenerFactory.ISelectionModel> additionalPredicate)`
Decorates the passed listener with the passed predicate.