Class AbstractExtensionHandlersProvidingContentProvider
- java.lang.Object
-
- com._1c.g5.v8.dt.eventhandlers.ui.providers.AbstractEventHandlersContentProvider
-
- com._1c.g5.v8.dt.eventhandlers.ui.providers.AbstractExtensionHandlersProvidingContentProvider
-
- All Implemented Interfaces:
IContentProvider
,IStructuredContentProvider
,ITreeContentProvider
- Direct Known Subclasses:
FilterHandlerViewerContentProvider
,HandlerViewerContentProvider
public abstract class AbstractExtensionHandlersProvidingContentProvider extends AbstractEventHandlersContentProvider
Base class for content providers providing information about extensions handlers.
-
-
Field Summary
Fields Modifier and Type Field Description protected Configuration
configuration
protected static char
DOT
protected org.eclipse.xtext.scoping.IGlobalScopeProvider
globalScopeProvider
-
Constructor Summary
Constructors Constructor Description AbstractExtensionHandlersProvidingContentProvider(Configuration configuration, IV8ProjectManager projectManager, org.eclipse.xtext.scoping.IGlobalScopeProvider globalScopeProvider, IBslOwnerComputerService bslOwnerComputerService, org.eclipse.xtext.naming.IQualifiedNameProvider qualifiedNameProvider)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.xtext.naming.QualifiedName
createModuleName(HandlerContainer element)
Creates qualified module name.protected Collection<ExtensionMethodContainer>
getExtensions(HandlerContainer element)
Returns extensions of given element.protected String
getLastSegment(String string)
Returns last segment of given string.Object
getParent(Object element)
protected boolean
hasExtensions(HandlerContainer element)
Returnstrue
if given handler has extensions.-
Methods inherited from class com._1c.g5.v8.dt.eventhandlers.ui.providers.AbstractEventHandlersContentProvider
dispose, getChildren, hasChildren, inputChanged
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.jface.viewers.ITreeContentProvider
getElements
-
-
-
-
Field Detail
-
DOT
protected static final char DOT
- See Also:
- Constant Field Values
-
globalScopeProvider
protected final org.eclipse.xtext.scoping.IGlobalScopeProvider globalScopeProvider
-
configuration
protected final Configuration configuration
-
-
Constructor Detail
-
AbstractExtensionHandlersProvidingContentProvider
public AbstractExtensionHandlersProvidingContentProvider(Configuration configuration, IV8ProjectManager projectManager, org.eclipse.xtext.scoping.IGlobalScopeProvider globalScopeProvider, IBslOwnerComputerService bslOwnerComputerService, org.eclipse.xtext.naming.IQualifiedNameProvider qualifiedNameProvider)
Constructor.- Parameters:
configuration
- - configuration. Can't benull
.projectManager
- - v8 project manager. Can't benull
.globalScopeProvider
- - global scope provider. Can't benull
.bslOwnerComputerService
- - bsl owner computer service. Can't benull
.qualifiedNameProvider
- - qualified name provider. Can't benull
.
-
-
Method Detail
-
getParent
public Object getParent(Object element)
- Specified by:
getParent
in interfaceITreeContentProvider
- Overrides:
getParent
in classAbstractEventHandlersContentProvider
-
hasExtensions
protected boolean hasExtensions(HandlerContainer element)
Returnstrue
if given handler has extensions.- Parameters:
element
- - element to check for extensions. Can't benull
.- Returns:
true
if given handler has extensions.
-
getExtensions
protected Collection<ExtensionMethodContainer> getExtensions(HandlerContainer element)
Returns extensions of given element.- Parameters:
element
- - element to get extensions. Can't benull
.- Returns:
- extensions of given element. Can't return
null
.
-
createModuleName
protected org.eclipse.xtext.naming.QualifiedName createModuleName(HandlerContainer element)
Creates qualified module name.- Parameters:
element
- - element to create module name. Can't benull
.- Returns:
- qualified module name. Can't return
null
.
-
-