Class ObjectsSection
- java.lang.Object
- 
- org.eclipse.swt.widgets.Widget
- 
- org.eclipse.swt.widgets.Control
- 
- org.eclipse.swt.widgets.Scrollable
- 
- org.eclipse.swt.widgets.Composite
- 
- org.eclipse.swt.widgets.Canvas
- 
- org.eclipse.ui.forms.widgets.ExpandableComposite
- 
- org.eclipse.ui.forms.widgets.Section
- 
- com._1c.g5.v8.dt.rights.ui.sections.ObjectsSection
 
 
 
 
 
 
 
 
- 
- All Implemented Interfaces:
- org.eclipse.swt.graphics.Drawable
 
 public class ObjectsSection extends org.eclipse.ui.forms.widgets.SectionRights edit section.
- 
- 
Field SummaryFields Modifier and Type Field Description protected org.eclipse.jface.action.MenuManagercontextMenuManagerThe context menu managerprotected IModelEditingSupportmodelEditingSupportThe model editing supportstatic StringOBJECT_SECTION_CONTEXT_MENU_LOCATIONThe object section context menu locationstatic StringOBJECT_SECTION_TOOLBAR_LOCATIONThe object section toolbar locationprotected org.eclipse.ui.IWorkbenchPartSitesiteThe workbench part siteprotected org.eclipse.jface.action.ToolBarManagertoolbarManagerThe object section toolbar managerprotected TreeViewerviewerThe viewer to show rights- 
Fields inherited from class org.eclipse.ui.forms.widgets.ExpandableCompositeCLIENT_INDENT, clientVerticalSpacing, COMPACT, descriptionVerticalSpacing, EXPANDED, FOCUS_TITLE, GAP, LEFT_TEXT_CLIENT_ALIGNMENT, marginHeight, marginWidth, NO_TITLE, NO_TITLE_FOCUS_BOX, SHORT_TITLE_BAR, textLabel, TITLE_BAR, titleBarTextMarginWidth, toggle, TREE_NODE, TWISTIE, VGAP
 
- 
 - 
Constructor SummaryConstructors Constructor Description ObjectsSection(org.eclipse.ui.forms.IManagedForm managedForm, org.eclipse.swt.widgets.Composite parent, org.eclipse.ui.IWorkbenchPartSite site, IRightsEditorController controller, IResourceLookup resourceLookup, IBmEmfIndexManager bmEmfIndexManager, org.eclipse.xtext.naming.IQualifiedNameProvider qualifiedNameProvider, IModelEditingSupport modelEditingSupport)Constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSelectionChangedListener(ISelectionChangedListener listener)Adds selection changed listener.voidaddViewerTopItemsAsync(Collection<TreeViewerItem> items)Addes the viewer top items asynchronously.protected voidafterViewerInizialized()Called after the viewer content was created and the viewer initialization was finished.protected voidbeforeViewerInizialized()Called before the viewer content was created and the viewer initialization was finished.voidcollapse(List<TreeViewerItem> items)Collapses the given node subtrees.voidcollapseAll()Collapses all nodes.voidcreateClient()Creates section client.protected voidcreateToolbar()Creates toolbar.protected org.eclipse.swt.widgets.MenucreateViewerContextMenu()Creates the viewer context menu.protected voidcreateViewerRightColumns()Creates viewer right columns.protected voidcreateViewerRightColumns(List<TreeViewerItem> items)Creates viewer right columns.protected voiddeleteViewerRightColumns()Deletes viewer right columns.voiddispose()voidexpand(List<TreeViewerItem> items)Expands the given node subtrees.voidexpandAll()Expands all nodes.TreeViewerItemgetFirstSelectedTopViewerItem()Gets the first selected topTreeViewerItem.Collection<Right>getRightsToFilterBy()Retursn the collection of rights to filter by.List<TreeViewerItem>getSelectedEditableViewerItems()Returns the selected editableTreeViewerItem's.List<TreeViewerItem>getSelectedTopViewerItems()Gets the selected topTreeViewerItem's.List<TreeViewerItem>getSelectedViewerItems()Gets the selectedTreeViewerItem's.booleanisFilterActionChecked()Checks if filter action checked.booleanisFilterByCurrentValueActionChecked()Checks if filter by current value action checked.protected booleanisThreeStateRightsCheckboxCellEditor()Determines whether the checkbook of the rights cell editor can make two or three states.voidrefreshViewerAsyncAndUpdatesColumns()Refreshes viewer async and updates right columns.voidrefreshViewerItemAsync(TreeViewerItem item)Refreshes the viewer item asynchronously.voidrefreshViewerItemsAsync(Collection<TreeViewerItem> items)Refreshes the viewer items asynchronously.voidremoveViewerTopItemsAsync(Collection<TreeViewerItem> items)Removes the viewer top items asynchronously.voidresetRightsToFilterBy()Resets the rights to filter by.protected voidsetEnabledActions()Sets actions enablement after selection was changed.voidsetfilterByCurrentValueActionChecked(boolean checked)Sets the checked status of the 'FilterByCurrentValue' action.booleansetFocus()voidsetRightsDenotationOption(RightsDenotationOption rightsDenotationOption)Sets the rights denotation option and updates right columns.voidsetRightsToFilterBy(Collection<Right> rightsToFilterBy)Sets the collection of rights to filter by.voidsetSetFilterActionChecked(boolean checked)Sets the checked status of the 'SetFilter' action.voidsetSetFilterByRightsActionChecked(boolean checked)Sets the checked status of the 'SetFilterByRights' action.- 
Methods inherited from class org.eclipse.ui.forms.widgets.SectiongetDescription, getDescriptionControl, getSeparatorControl, getTitleBarBackground, getTitleBarBorderColor, getTitleBarGradientBackground, internalSetExpanded, onPaint, reflow, setBackground, setBackgroundImage, setDescription, setDescriptionControl, setForeground, setSeparatorControl, setTitleBarBackground, setTitleBarBorderColor, setTitleBarGradientBackground
 - 
Methods inherited from class org.eclipse.ui.forms.widgets.ExpandableCompositeaddExpansionListener, computeSize, forceFocus, getClient, getExpansionStyle, getText, getTextClient, getTextClientHeightDifference, getTitleBarForeground, hasTitleBar, isExpanded, isFixedStyle, removeExpansionListener, setActiveToggleColor, setClient, setEnabled, setExpanded, setFont, setLayout, setMenu, setText, setTextClient, setTitleBarForeground, setToggleColor, setToolTipText
 - 
Methods inherited from class org.eclipse.swt.widgets.CanvasdrawBackground, getCaret, getIME, scroll, setCaret, setIME
 - 
Methods inherited from class org.eclipse.swt.widgets.Compositechanged, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setLayoutDeferred, setTabList, toString
 - 
Methods inherited from class org.eclipse.swt.widgets.ScrollablecomputeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar
 - 
Methods inherited from class org.eclipse.swt.widgets.ControladdControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, dragDetect, dragDetect, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBounds, setBounds, setCapture, setCursor, setDragDetect, setLayoutData, setLocation, setLocation, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
 - 
Methods inherited from class org.eclipse.swt.widgets.WidgetaddDisposeListener, addListener, checkWidget, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData
 
- 
 
- 
- 
- 
Field Detail- 
OBJECT_SECTION_TOOLBAR_LOCATIONpublic static final String OBJECT_SECTION_TOOLBAR_LOCATION The object section toolbar location- See Also:
- Constant Field Values
 
 - 
OBJECT_SECTION_CONTEXT_MENU_LOCATIONpublic static final String OBJECT_SECTION_CONTEXT_MENU_LOCATION The object section context menu location- See Also:
- Constant Field Values
 
 - 
toolbarManagerprotected org.eclipse.jface.action.ToolBarManager toolbarManager The object section toolbar manager
 - 
contextMenuManagerprotected org.eclipse.jface.action.MenuManager contextMenuManager The context menu manager
 - 
siteprotected org.eclipse.ui.IWorkbenchPartSite site The workbench part site
 - 
viewerprotected TreeViewer viewer The viewer to show rights
 - 
modelEditingSupportprotected IModelEditingSupport modelEditingSupport The model editing support
 
- 
 - 
Constructor Detail- 
ObjectsSectionpublic ObjectsSection(org.eclipse.ui.forms.IManagedForm managedForm, org.eclipse.swt.widgets.Composite parent, org.eclipse.ui.IWorkbenchPartSite site, IRightsEditorController controller, IResourceLookup resourceLookup, IBmEmfIndexManager bmEmfIndexManager, org.eclipse.xtext.naming.IQualifiedNameProvider qualifiedNameProvider, IModelEditingSupport modelEditingSupport)Constructor.- Parameters:
- managedForm- the managed form, can not be- null
- parent- the parent, can not be- null
- site- the site, can not be- null
- controller- the controller, can not be- null
- resourceLookup- the resource lookup, can not be- null
- bmEmfIndexManager- the BM emf index manager, can not be- null
- qualifiedNameProvider- the qualified name provider, can not be- null
- modelEditingSupport- the model editing support, can not be- null
 
 
- 
 - 
Method Detail- 
addSelectionChangedListenerpublic void addSelectionChangedListener(ISelectionChangedListener listener) Adds selection changed listener.- Parameters:
- listener- the listener
 
 - 
collapseAllpublic void collapseAll() Collapses all nodes.
 - 
collapsepublic void collapse(List<TreeViewerItem> items) Collapses the given node subtrees.
 - 
createClientpublic void createClient() Creates section client.
 - 
disposepublic void dispose() - Overrides:
- disposein class- org.eclipse.swt.widgets.Widget
 
 - 
expandAllpublic void expandAll() Expands all nodes.
 - 
expandpublic void expand(List<TreeViewerItem> items) Expands the given node subtrees.
 - 
getFirstSelectedTopViewerItempublic TreeViewerItem getFirstSelectedTopViewerItem() Gets the first selected topTreeViewerItem.- Returns:
- the first selected top TreeViewerItemornullif no topTreeViewerItemwas selected
 
 - 
getSelectedTopViewerItemspublic List<TreeViewerItem> getSelectedTopViewerItems() Gets the selected topTreeViewerItem's.- Returns:
- the selected top viewer items, never null
 
 - 
getSelectedEditableViewerItemspublic List<TreeViewerItem> getSelectedEditableViewerItems() Returns the selected editableTreeViewerItem's.- Returns:
- the selected editable viewer items, never null
 
 - 
getSelectedViewerItemspublic List<TreeViewerItem> getSelectedViewerItems() Gets the selectedTreeViewerItem's.- Returns:
- the selected viewer items, never null
 
 - 
isFilterActionCheckedpublic boolean isFilterActionChecked() Checks if filter action checked.- Returns:
- true if is
 
 - 
isFilterByCurrentValueActionCheckedpublic boolean isFilterByCurrentValueActionChecked() Checks if filter by current value action checked.- Returns:
- true if is
 
 - 
refreshViewerAsyncAndUpdatesColumnspublic void refreshViewerAsyncAndUpdatesColumns() Refreshes viewer async and updates right columns.
 - 
refreshViewerItemAsyncpublic void refreshViewerItemAsync(TreeViewerItem item) Refreshes the viewer item asynchronously. Do not recreates right columns.- Parameters:
- item- the viewer item to refresh, cannot be- null
 
 - 
refreshViewerItemsAsyncpublic void refreshViewerItemsAsync(Collection<TreeViewerItem> items) Refreshes the viewer items asynchronously. Do not recreates right columns.- Parameters:
- items- the viewer items to refresh, cannot be- null
 
 - 
setRightsDenotationOptionpublic void setRightsDenotationOption(RightsDenotationOption rightsDenotationOption) Sets the rights denotation option and updates right columns.- Parameters:
- rightsDenotationOption- the rights denotation option, cannot be- null
 
 - 
setFocuspublic boolean setFocus() - Overrides:
- setFocusin class- org.eclipse.swt.widgets.Composite
 
 - 
setSetFilterActionCheckedpublic void setSetFilterActionChecked(boolean checked) Sets the checked status of the 'SetFilter' action.- Parameters:
- checked- the new checked status
 
 - 
setfilterByCurrentValueActionCheckedpublic void setfilterByCurrentValueActionChecked(boolean checked) Sets the checked status of the 'FilterByCurrentValue' action.- Parameters:
- checked- the new checked status
 
 - 
setRightsToFilterBypublic void setRightsToFilterBy(Collection<Right> rightsToFilterBy) Sets the collection of rights to filter by.- Parameters:
- rightsToFilterBy- the collection of rights to filter by, cannot be- null
 
 - 
getRightsToFilterBypublic Collection<Right> getRightsToFilterBy() Retursn the collection of rights to filter by.- Returns:
- the collection of rights to filter by or nullif no filter was specified
 
 - 
resetRightsToFilterBypublic void resetRightsToFilterBy() Resets the rights to filter by.
 - 
setSetFilterByRightsActionCheckedpublic void setSetFilterByRightsActionChecked(boolean checked) Sets the checked status of the 'SetFilterByRights' action.- Parameters:
- checked- the new checked status
 
 - 
addViewerTopItemsAsyncpublic void addViewerTopItemsAsync(Collection<TreeViewerItem> items) Addes the viewer top items asynchronously. Recreates right columns if necessary.- Parameters:
- items- the viewer top items to add, cannot be- null
 
 - 
removeViewerTopItemsAsyncpublic void removeViewerTopItemsAsync(Collection<TreeViewerItem> items) Removes the viewer top items asynchronously. Recreates right columns if necessary.- Parameters:
- items- the viewer top items to remove, cannot be- null
 
 - 
createToolbarprotected void createToolbar() Creates toolbar.
 - 
createViewerContextMenuprotected org.eclipse.swt.widgets.Menu createViewerContextMenu() Creates the viewer context menu.- Returns:
- the context menu, can not be null
 
 - 
isThreeStateRightsCheckboxCellEditorprotected boolean isThreeStateRightsCheckboxCellEditor() Determines whether the checkbook of the rights cell editor can make two or three states.- Returns:
- trueif the checkbook of the rights cell editor can make three states and- falseotherwise
 
 - 
beforeViewerInizializedprotected void beforeViewerInizialized() Called before the viewer content was created and the viewer initialization was finished.
 - 
afterViewerInizializedprotected void afterViewerInizialized() Called after the viewer content was created and the viewer initialization was finished.
 - 
setEnabledActionsprotected void setEnabledActions() Sets actions enablement after selection was changed.
 - 
createViewerRightColumnsprotected void createViewerRightColumns() Creates viewer right columns.
 - 
createViewerRightColumnsprotected void createViewerRightColumns(List<TreeViewerItem> items) Creates viewer right columns.- Parameters:
- items- the tree viewer items right columns are created for, can not be- null
 
 - 
deleteViewerRightColumnsprotected void deleteViewerRightColumns() Deletes viewer right columns.
 
- 
 
-