Package com._1c.g5.v8.dt.md.ui.providers
Class CommandGroupContentProvider
- java.lang.Object
-
- com._1c.g5.v8.dt.md.ui.providers.CommandGroupContentProvider
-
- All Implemented Interfaces:
IContentProvider
,IStructuredContentProvider
,ITreeContentProvider
public class CommandGroupContentProvider extends Object implements ITreeContentProvider
Command content provider.
-
-
Constructor Summary
Constructors Constructor Description CommandGroupContentProvider(IV8Project v8project, IMdObjectByTypeProvider objectByTypeProvider)
Constructor.CommandGroupContentProvider(IV8Project v8project, IMdObjectByTypeProvider objectByTypeProvider, CommandGroupCategory category)
Constructor.CommandGroupContentProvider(IV8Project v8project, IMdObjectByTypeProvider objectByTypeProvider, CommandGroupCategory category, boolean needFormCommands)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Object[]
getChildren(Object parentElement)
Object[]
getElements(Object inputElement)
Object
getParent(Object element)
boolean
hasChildren(Object element)
void
inputChanged(Viewer viewer, Object oldInput, Object newInput)
-
-
-
Constructor Detail
-
CommandGroupContentProvider
public CommandGroupContentProvider(IV8Project v8project, IMdObjectByTypeProvider objectByTypeProvider)
Constructor.- Parameters:
v8project
- the V8 project, cannot benull
objectByTypeProvider
- Reference to theIMdObjectByTypeProvider
, cannot benull
-
CommandGroupContentProvider
public CommandGroupContentProvider(IV8Project v8project, IMdObjectByTypeProvider objectByTypeProvider, CommandGroupCategory category)
Constructor.- Parameters:
v8project
- the V8 project, cannot benull
objectByTypeProvider
- Reference to theIMdObjectByTypeProvider
, cannot benull
category
- the first selected command group category
-
CommandGroupContentProvider
public CommandGroupContentProvider(IV8Project v8project, IMdObjectByTypeProvider objectByTypeProvider, CommandGroupCategory category, boolean needFormCommands)
Constructor.- Parameters:
v8project
- the V8 project, cannot benull
category
- the first selected command group categoryneedFormCommands
- needs form commands
-
-
Method Detail
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceIContentProvider
-
getChildren
public Object[] getChildren(Object parentElement)
- Specified by:
getChildren
in interfaceITreeContentProvider
-
getElements
public Object[] getElements(Object inputElement)
- Specified by:
getElements
in interfaceIStructuredContentProvider
- Specified by:
getElements
in interfaceITreeContentProvider
-
getParent
public Object getParent(Object element)
- Specified by:
getParent
in interfaceITreeContentProvider
-
hasChildren
public boolean hasChildren(Object element)
- Specified by:
hasChildren
in interfaceITreeContentProvider
-
inputChanged
public void inputChanged(Viewer viewer, Object oldInput, Object newInput)
- Specified by:
inputChanged
in interfaceIContentProvider
-
-