Class MainSection
- 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.eventhandlers.ui.sections.MainSection
-
- All Implemented Interfaces:
org.eclipse.swt.graphics.Drawable
public class MainSection extends org.eclipse.ui.forms.widgets.Section
Main section of "All Events Handlers" editor. Contains toolbar, search bar and viewers sections.
-
-
Field Summary
Fields Modifier and Type Field Description static String
TOOLBAR_ID
-
Fields inherited from class org.eclipse.ui.forms.widgets.ExpandableComposite
CLIENT_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 Summary
Constructors Constructor Description MainSection(org.eclipse.swt.widgets.Composite parent, org.eclipse.ui.forms.IManagedForm managedForm, org.eclipse.ui.IWorkbenchPartSite site, IBslModuleContextDefService contextDefService, org.eclipse.xtext.scoping.IGlobalScopeProvider globalScopeProvider, IV8ProjectManager projectManager, IBslOwnerComputerService bslOwnerComputerService, org.eclipse.xtext.naming.IQualifiedNameProvider qualifiedNameProvider, ScriptVariant scriptVariant, Configuration configuration)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
disableExpandFiler()
Disables expand filter.void
dispose()
void
enableExpandFilter()
Enables expand filter.EventHandlersFilter
getEventHandlersFilter()
Returns event handlers filter.TreeViewer
getEventHandlersTreeViewer()
Returns tree viewer of event handlers sub section.ExpandFilter
getExpandFilter()
Returns expand filter.ISelection
getSelection()
Returns section selection.boolean
isShowOverrides()
Returnstrue
if overrides should be shown.void
refreshExpandFilter()
Refreshes expand filter viewers.void
refreshSubSections()
Refreshes sub sections.void
setShowOverrides(boolean showOverrides)
Set's if overrides should be shown.-
Methods inherited from class org.eclipse.ui.forms.widgets.Section
getDescription, 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.ExpandableComposite
addExpansionListener, 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.Canvas
drawBackground, getCaret, getIME, scroll, setCaret, setIME
-
Methods inherited from class org.eclipse.swt.widgets.Composite
changed, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayoutDeferred, setTabList
-
Methods inherited from class org.eclipse.swt.widgets.Scrollable
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar
-
Methods inherited from class org.eclipse.swt.widgets.Control
addControlListener, 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.Widget
addDisposeListener, addListener, checkWidget, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString
-
-
-
-
Field Detail
-
TOOLBAR_ID
public static final String TOOLBAR_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MainSection
public MainSection(org.eclipse.swt.widgets.Composite parent, org.eclipse.ui.forms.IManagedForm managedForm, org.eclipse.ui.IWorkbenchPartSite site, IBslModuleContextDefService contextDefService, org.eclipse.xtext.scoping.IGlobalScopeProvider globalScopeProvider, IV8ProjectManager projectManager, IBslOwnerComputerService bslOwnerComputerService, org.eclipse.xtext.naming.IQualifiedNameProvider qualifiedNameProvider, ScriptVariant scriptVariant, Configuration configuration)
Constructor- Parameters:
parent
- - parent composite. Can't benull
.managedForm
- - managed form. Can't benull
.site
- - editor site. Can't benull
.contextDefService
- - bsl module context def service. Can't benull
.globalScopeProvider
- - global scope provider. Can't benull
.projectManager
- - project manager. Can't benull
.bslOwnerComputerService
- - bsl owner computer service. Can't benull
.qualifiedNameProvider
- - qualified name provider. Can't benull
.scriptVariant
- - configuration script variant. Can't benull
.configuration
- - editor input configuration. Can't benull
.
-
-
Method Detail
-
dispose
public void dispose()
- Overrides:
dispose
in classorg.eclipse.swt.widgets.Widget
-
getEventHandlersTreeViewer
public TreeViewer getEventHandlersTreeViewer()
Returns tree viewer of event handlers sub section.- Returns:
- tree viewer of event handlers sub section. Can't return
null
.
-
refreshSubSections
public void refreshSubSections()
Refreshes sub sections.
-
getEventHandlersFilter
public EventHandlersFilter getEventHandlersFilter()
Returns event handlers filter.- Returns:
- event handlers filter. Can't return
null
.
-
getExpandFilter
public ExpandFilter getExpandFilter()
Returns expand filter.- Returns:
- the expandFilter. Can't return
null
.
-
refreshExpandFilter
public void refreshExpandFilter()
Refreshes expand filter viewers.
-
disableExpandFiler
public void disableExpandFiler()
Disables expand filter.
-
enableExpandFilter
public void enableExpandFilter()
Enables expand filter.
-
getSelection
public ISelection getSelection()
Returns section selection.- Returns:
- the selection. Can't return
null
.
-
isShowOverrides
public boolean isShowOverrides()
Returnstrue
if overrides should be shown.- Returns:
true
if overrides should be shown.
-
setShowOverrides
public void setShowOverrides(boolean showOverrides)
Set's if overrides should be shown.- Parameters:
showOverrides
- -true
if overrides should be shown.
-
-