Package com._1c.g5.v8.dt.dcs.ui.settings
Class SettingsPartBase
- java.lang.Object
-
- org.eclipse.swt.widgets.Widget
-
- org.eclipse.swt.widgets.Control
-
- org.eclipse.swt.widgets.Scrollable
-
- org.eclipse.swt.widgets.Composite
-
- com._1c.g5.v8.dt.dcs.ui.settings.SettingsPartBase
-
- All Implemented Interfaces:
IDcsEnvironmentProvider
,IDcsListener
,ISettingsPart
,org.eclipse.swt.graphics.Drawable
- Direct Known Subclasses:
Output
,Parameters
,Structure
,UserFields
,Variants
public abstract class SettingsPartBase extends org.eclipse.swt.widgets.Composite implements ISettingsPart, IDcsEnvironmentProvider
Часть настроек
-
-
Field Summary
Fields Modifier and Type Field Description protected IBmModel
bmModel
protected IBmEditingContext
editingContext
protected IDcsSettingsProvider
settingsProvider
-
Constructor Summary
Constructors Constructor Description SettingsPartBase(IDcsSettingsProvider settingsProvider, IBmModel bmModel, IBmEditingContext editingContext, org.eclipse.swt.widgets.Composite parent, int style, boolean editable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addModelChangedListener(IDcsModelChangedListener listener)
Adds the specified DCS model changed listener.void
dispose()
IBmModel
getBmModel()
Returns the BM model.String
getCurrentLanguageCode()
Get current language codeIBmEditingContext
getEditingContext()
Returns BM editing contextCollectionParametersData
getParametersData()
Get parameters data objectObject
getSelectedNode()
Get selected node of main viewerList<Object>
getSelectedViewerNodes()
Get selected nodes of main viewerIV8Project
getV8project()
Get V8 projectVersion
getVersion()
Get runtime versionprotected boolean
isEditable()
Checks if part is editable.-
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, setLayout, 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, computeSize, dragDetect, dragDetect, forceFocus, 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, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, 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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com._1c.g5.v8.dt.dcs.ui.IDcsListener
notify
-
Methods inherited from interface com._1c.g5.v8.dt.dcs.ui.settings.ISettingsPart
getViewer
-
-
-
-
Field Detail
-
settingsProvider
protected IDcsSettingsProvider settingsProvider
-
editingContext
protected IBmEditingContext editingContext
-
bmModel
protected IBmModel bmModel
-
-
Constructor Detail
-
SettingsPartBase
public SettingsPartBase(IDcsSettingsProvider settingsProvider, IBmModel bmModel, IBmEditingContext editingContext, org.eclipse.swt.widgets.Composite parent, int style, boolean editable)
- Parameters:
settingsProvider
- настройкиeditingContext
- the BM editing contextparent
- родительstyle
- стильeditable
- the editable state,true
if this model is editable,false
otherwise
-
-
Method Detail
-
addModelChangedListener
public void addModelChangedListener(IDcsModelChangedListener listener)
Adds the specified DCS model changed listener.- Parameters:
listener
- the listener, cannot benull
.
-
getSelectedViewerNodes
public List<Object> getSelectedViewerNodes()
Description copied from interface:ISettingsPart
Get selected nodes of main viewer- Specified by:
getSelectedViewerNodes
in interfaceISettingsPart
- Returns:
- list of selected nodes, never null
-
getParametersData
public CollectionParametersData getParametersData()
Description copied from interface:ISettingsPart
Get parameters data object- Specified by:
getParametersData
in interfaceISettingsPart
- Returns:
- parameters data object, null if part is not parameters collection
-
dispose
public void dispose()
- Overrides:
dispose
in classorg.eclipse.swt.widgets.Widget
-
getV8project
public IV8Project getV8project()
Description copied from interface:IDcsEnvironmentProvider
Get V8 project- Specified by:
getV8project
in interfaceIDcsEnvironmentProvider
- Returns:
- the V8 project
-
getCurrentLanguageCode
public String getCurrentLanguageCode()
Description copied from interface:IDcsEnvironmentProvider
Get current language code- Specified by:
getCurrentLanguageCode
in interfaceIDcsEnvironmentProvider
- Returns:
- current language code
-
getVersion
public Version getVersion()
Description copied from interface:IDcsEnvironmentProvider
Get runtime version- Specified by:
getVersion
in interfaceIDcsEnvironmentProvider
- Returns:
- runtime version
-
getSelectedNode
public Object getSelectedNode()
Get selected node of main viewer- Returns:
- selected node, can be null
-
getEditingContext
public IBmEditingContext getEditingContext()
Returns BM editing context- Specified by:
getEditingContext
in interfaceIDcsEnvironmentProvider
- Returns:
- BM editing context
-
getBmModel
public IBmModel getBmModel()
Description copied from interface:IDcsEnvironmentProvider
Returns the BM model.- Specified by:
getBmModel
in interfaceIDcsEnvironmentProvider
- Returns:
- the BM model, never
null
.
-
isEditable
protected boolean isEditable()
Checks if part is editable.- Returns:
true
if part is editable,false
otherwise
-
-