Package com._1c.g5.v8.dt.dcs.ui
Class EditorPageBase
- 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.EditorPageBase
-
- All Implemented Interfaces:
EditorPage
,IDcsEnvironmentProvider
,IDcsListener
,org.eclipse.swt.graphics.Drawable
- Direct Known Subclasses:
CalculatedFields
,DataSets
,Links
,NestedSchemas
,Parameters
,Resources
,Settings
,Templates
public abstract class EditorPageBase extends org.eclipse.swt.widgets.Composite implements EditorPage, IDcsListener, IDcsEnvironmentProvider
Базовый класс страницы редактора скд
-
-
Field Summary
Fields Modifier and Type Field Description protected DataCompositionSchemaControlContext
context
protected Set<IDcsListener>
listeners
protected DataCompositionSchema
schema
protected IV8Project
v8project
-
Constructor Summary
Constructors Constructor Description EditorPageBase(DataCompositionSchemaControlContext context, org.eclipse.swt.widgets.Composite parent, int style)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(IDcsListener listener)
void
addModelChangedListener(IDcsModelChangedListener listener)
Adds the specified DCS model changed listener.void
dispose()
int
getAlias()
Получить текущий вариант встроенного языкаIBmModel
getBmModel()
Returns the BM model.DataCompositionSchemaControlContext
getContext()
Gets actualDataCompositionSchemaControlContext
Class<? extends org.eclipse.ui.IEditorActionBarContributor>
getContributorClass()
Get editor page contributor's classIEditingContext
getCoreEditingContext()
Gets editing context.String
getCurrentLanguageCode()
Get current language codeIBmEditingContext
getEditingContext()
Returns the BM editing context.org.eclipse.ui.IEditorPart
getEmbeddedEditor()
Get embedded editor for the pageDataCompositionSchema
getSchema()
Получить схемуIV8Project
getV8project()
Get V8 projectVersion
getVersion()
Get runtime versionvoid
notify(DcsEvent event)
Сообщить о событииvoid
removeModelChangedNotifier(IDcsModelChangedListener listener)
Removes the specified DCS model changed listener.-
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
-
-
-
-
Field Detail
-
schema
protected DataCompositionSchema schema
-
context
protected DataCompositionSchemaControlContext context
-
listeners
protected Set<IDcsListener> listeners
-
v8project
protected IV8Project v8project
-
-
Constructor Detail
-
EditorPageBase
public EditorPageBase(DataCompositionSchemaControlContext context, org.eclipse.swt.widgets.Composite parent, int style)
Constructor- Parameters:
context
- contains data for creating editor, integrating editor with other Data composition editors, cannot benull
parent
- parent composite for creating editor, cannot benull
style
- editor SWT style
-
-
Method Detail
-
getEditingContext
public IBmEditingContext getEditingContext()
Description copied from interface:IDcsEnvironmentProvider
Returns the BM editing context.- Specified by:
getEditingContext
in interfaceIDcsEnvironmentProvider
- Returns:
- the BM editing context, never
null
.
-
getBmModel
public IBmModel getBmModel()
Description copied from interface:IDcsEnvironmentProvider
Returns the BM model.- Specified by:
getBmModel
in interfaceIDcsEnvironmentProvider
- Returns:
- the BM model, never
null
.
-
getCoreEditingContext
public IEditingContext getCoreEditingContext()
Gets editing context.- Returns:
- a non-null editing context if the editor is initialized. If the editor is not initialized the result is not specified.
-
addModelChangedListener
public void addModelChangedListener(IDcsModelChangedListener listener)
Description copied from interface:EditorPage
Adds the specified DCS model changed listener.- Specified by:
addModelChangedListener
in interfaceEditorPage
- Parameters:
listener
- the listener, cannot benull
.
-
removeModelChangedNotifier
public void removeModelChangedNotifier(IDcsModelChangedListener listener)
Description copied from interface:EditorPage
Removes the specified DCS model changed listener.- Specified by:
removeModelChangedNotifier
in interfaceEditorPage
- Parameters:
listener
- the listener, cannot benull
.
-
dispose
public void dispose()
- Overrides:
dispose
in classorg.eclipse.swt.widgets.Widget
-
getContext
public DataCompositionSchemaControlContext getContext()
Description copied from interface:EditorPage
Gets actualDataCompositionSchemaControlContext
- Specified by:
getContext
in interfaceEditorPage
- Returns:
- actual
DataCompositionSchemaControlContext
, nevernull
-
getSchema
public DataCompositionSchema getSchema()
Description copied from interface:EditorPage
Получить схему- Specified by:
getSchema
in interfaceEditorPage
- Returns:
- схема
-
notify
public void notify(DcsEvent event)
Description copied from interface:IDcsListener
Сообщить о событии- Specified by:
notify
in interfaceIDcsListener
- Parameters:
event
- событие
-
addListener
public void addListener(IDcsListener listener)
-
getAlias
public int getAlias()
Description copied from interface:EditorPage
Получить текущий вариант встроенного языка- Specified by:
getAlias
in interfaceEditorPage
- Returns:
- текущий вариант
-
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
-
getContributorClass
public Class<? extends org.eclipse.ui.IEditorActionBarContributor> getContributorClass()
Description copied from interface:EditorPage
Get editor page contributor's class- Specified by:
getContributorClass
in interfaceEditorPage
- Returns:
- contributor's
Class
instance for the exact page,null
in case of missing contributor.
-
getEmbeddedEditor
public org.eclipse.ui.IEditorPart getEmbeddedEditor()
Description copied from interface:EditorPage
Get embedded editor for the page- Specified by:
getEmbeddedEditor
in interfaceEditorPage
- Returns:
- embedded editor if exists,
null
otherwise
-
-