Class AttachedNavigatorAdapter
- 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.md.ui.navigator.adapters.AttachedNavigatorAdapter
-
- All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable
,org.eclipse.ui.model.IWorkbenchAdapter
,org.eclipse.ui.model.IWorkbenchAdapter2
,org.eclipse.ui.model.IWorkbenchAdapter3
public final class AttachedNavigatorAdapter extends VirtualNavigatorAdapterBase
Navigator adapter for use withAttachingTreeContentProvider
. This adapter may be attached to any tree node.
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.navigator.adapters.NavigatorAdapterBase
NO_CHILDREN
-
-
Constructor Summary
Constructors Constructor Description AttachedNavigatorAdapter(AttachedNavigatorAdapter adapter, Object parent)
Instantiates a new attached navigator adapter based on the existing adapter and parent.AttachedNavigatorAdapter(String label, org.eclipse.jface.resource.ImageDescriptor icon)
Instantiates a new attached navigator adapter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object[]
getChildren(Object o)
Object
getParent(Object o)
boolean
hasChildren(Object element)
Return true in case of have children.-
Methods inherited from class com._1c.g5.v8.dt.navigator.adapters.VirtualNavigatorAdapterBase
equals, getImageDescriptor, getLabel, hashCode
-
Methods inherited from class com._1c.g5.v8.dt.navigator.adapters.NavigatorAdapterBase
getAdapter
-
-
-
-
Constructor Detail
-
AttachedNavigatorAdapter
public AttachedNavigatorAdapter(String label, org.eclipse.jface.resource.ImageDescriptor icon)
Instantiates a new attached navigator adapter.- Parameters:
label
- the labelicon
- the icon
-
AttachedNavigatorAdapter
public AttachedNavigatorAdapter(AttachedNavigatorAdapter adapter, Object parent)
Instantiates a new attached navigator adapter based on the existing adapter and parent.- Parameters:
adapter
- the existing adapterparent
- the parent
-
-
Method Detail
-
getChildren
public Object[] getChildren(Object o)
- Specified by:
getChildren
in interfaceorg.eclipse.ui.model.IWorkbenchAdapter
- Specified by:
getChildren
in classNavigatorAdapterBase
-
hasChildren
public boolean hasChildren(Object element)
Description copied from class:NavigatorAdapterBase
Return true in case of have children.- Specified by:
hasChildren
in classNavigatorAdapterBase
- Returns:
-
getParent
public Object getParent(Object o)
- Specified by:
getParent
in interfaceorg.eclipse.ui.model.IWorkbenchAdapter
- Specified by:
getParent
in classNavigatorAdapterBase
-
-