Class ScopeBasedContentProvider
- java.lang.Object
-
- com._1c.g5.modeling.xtext.ui.viewers.ScopeBasedContentProvider
-
- All Implemented Interfaces:
IContentProvider,IStructuredContentProvider
public class ScopeBasedContentProvider extends Object implements IStructuredContentProvider
This implementation ofIStructuredContentProviderhandles the case where the viewer input is an Pair. Given EObject must be contained by resource. This implementation tries to get appropriate
IScopeProviderregistered for resource which contains given EObject. With the help of this scope provider and input pair it gets scope and returns array ofIEObjectDescriptions or empty array if input arguments are wrong or there is no appropriate scope provider.- Restriction:
- This class is not intended to be subclassed by clients.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()This implementation does nothing.Object[]getElements(Object inputElement)static ScopeBasedContentProvidergetInstance()Returns an instance of ScopeBasedContentProvider.voidinputChanged(Viewer viewer, Object oldInput, Object newInput)This implementation does nothing.
-
-
-
Method Detail
-
getInstance
public static ScopeBasedContentProvider getInstance()
Returns an instance of ScopeBasedContentProvider. Since instances of this class do not maintain any state, they can be shared between multiple clients.- Returns:
- an instance of ScopeBasedContentProvider
-
getElements
public Object[] getElements(Object inputElement)
- Specified by:
getElementsin interfaceIStructuredContentProvider
-
inputChanged
public void inputChanged(Viewer viewer, Object oldInput, Object newInput)
This implementation does nothing.- Specified by:
inputChangedin interfaceIContentProvider
-
dispose
public void dispose()
This implementation does nothing.- Specified by:
disposein interfaceIContentProvider
-
-