Class CollectionNavigatorAdapterBase<M extends org.eclipse.emf.ecore.EObject>
java.lang.Object
org.eclipse.ui.model.WorkbenchAdapter
com._1c.g5.v8.dt.navigator.adapters.NavigatorAdapterBase
com._1c.g5.v8.dt.navigator.adapters.VirtualNavigatorAdapterBase
com._1c.g5.v8.dt.navigator.adapters.CollectionNavigatorAdapterBase<M>
- All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable
,org.eclipse.ui.model.IWorkbenchAdapter
,org.eclipse.ui.model.IWorkbenchAdapter2
,org.eclipse.ui.model.IWorkbenchAdapter3
- Direct Known Subclasses:
AttachedCollectionNavigatorAdapterBase
,SubsystemNavigatorAdapter.Folder
public abstract class CollectionNavigatorAdapterBase<M extends org.eclipse.emf.ecore.EObject>
extends VirtualNavigatorAdapterBase
Base adapter for collection nodes.
-
Field Summary
Fields inherited from class com._1c.g5.v8.dt.navigator.adapters.NavigatorAdapterBase
NO_CHILDREN
-
Constructor Summary
ConstructorsConstructorDescriptionCollectionNavigatorAdapterBase
(String label, org.eclipse.jface.resource.ImageDescriptor icon, M model, org.eclipse.emf.ecore.EReference contentFeature) Constructs the instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
<T> T
getAdapter
(Class<T> adapter) Object[]
org.eclipse.emf.ecore.EReference
getModel
(boolean reload) abstract Object
boolean
hasChildren
(Object element) Return true in case of have children.int
hashCode()
Methods inherited from class com._1c.g5.v8.dt.navigator.adapters.VirtualNavigatorAdapterBase
getImageDescriptor, getLabel
Methods inherited from class org.eclipse.ui.model.WorkbenchAdapter
getBackground, getFont, getForeground, getStyledText
-
Constructor Details
-
CollectionNavigatorAdapterBase
public CollectionNavigatorAdapterBase(String label, org.eclipse.jface.resource.ImageDescriptor icon, M model, org.eclipse.emf.ecore.EReference contentFeature) Constructs the instance.- Parameters:
label
- collection label.icon
- collection icon.model
- model to get collection contents from.contentFeature
- model feature for collection content.
-
-
Method Details
-
getChildren
- Specified by:
getChildren
in interfaceorg.eclipse.ui.model.IWorkbenchAdapter
- Specified by:
getChildren
in classNavigatorAdapterBase
-
hasChildren
Description copied from class:NavigatorAdapterBase
Return true in case of have children.- Specified by:
hasChildren
in classNavigatorAdapterBase
- Returns:
-
hashCode
public int hashCode()Description copied from class:VirtualNavigatorAdapterBase
- Overrides:
hashCode
in classVirtualNavigatorAdapterBase
-
equals
Description copied from class:VirtualNavigatorAdapterBase
- Overrides:
equals
in classVirtualNavigatorAdapterBase
-
getAdapter
- Specified by:
getAdapter
in interfaceorg.eclipse.core.runtime.IAdaptable
- Overrides:
getAdapter
in classNavigatorAdapterBase
-
getParent
- Specified by:
getParent
in interfaceorg.eclipse.ui.model.IWorkbenchAdapter
- Specified by:
getParent
in classNavigatorAdapterBase
-
getModel
- Parameters:
reload
-true
if we need reloadIBmObject
before get it- Returns:
- associated model.
-
getContentFeature
public org.eclipse.emf.ecore.EReference getContentFeature()- Returns:
- associated content feature.
-