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 ofIStructuredContentProvider
handles the case where the viewer input is an Pair. Given EObject must be contained by resource. This implementation tries to get appropriate
IScopeProvider
registered for resource which contains given EObject. With the help of this scope provider and input pair it gets scope and returns array ofIEObjectDescription
s 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 void
dispose()
This implementation does nothing.Object[]
getElements(Object inputElement)
static ScopeBasedContentProvider
getInstance()
Returns an instance of ScopeBasedContentProvider.void
inputChanged(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:
getElements
in interfaceIStructuredContentProvider
-
inputChanged
public void inputChanged(Viewer viewer, Object oldInput, Object newInput)
This implementation does nothing.- Specified by:
inputChanged
in interfaceIContentProvider
-
dispose
public void dispose()
This implementation does nothing.- Specified by:
dispose
in interfaceIContentProvider
-
-