Class MdPropertySheetPage
- java.lang.Object
-
- com._1c.g5.properties.ui.PropertySheetPage
-
- com._1c.g5.v8.dt.md.ui.properties.MdPropertySheetPage
-
- All Implemented Interfaces:
WorkbenchUtils.IWithDefaultFocus
,EventListener
,org.eclipse.jface.util.IPropertyChangeListener
,org.eclipse.ui.ISelectionListener
,org.eclipse.ui.part.IPage
,org.eclipse.ui.part.IPageBookViewPage
,org.eclipse.ui.views.properties.IPropertySheetPage
public class MdPropertySheetPage extends PropertySheetPage implements WorkbenchUtils.IWithDefaultFocus
Implementation ofPropertySheetPage
containing EDT specitific logic.
Specific logic:- Contains selection picker
- Has v8 specific renderers
- Supports granular editors undo context
- Listens for initialization service (shows only when services are one).
-
-
Constructor Summary
Constructors Constructor Description MdPropertySheetPage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.ui.forms.widgets.FormToolkit
createFormToolkit()
Creates and returnsFormToolkit
used to create controls.protected void
createInternalControls(org.eclipse.swt.widgets.Composite parent)
Creates internal controlsprotected org.eclipse.swt.widgets.Composite
createRootComposite(org.eclipse.swt.widgets.Composite parent)
Creates a root composite.protected void
createTopCompositeContent(org.eclipse.swt.widgets.Composite composite)
Creates controls which will be on top of property page.void
dispose()
Disposes off theFormToolkit
andPropertyPaletteModel
created inPropertySheetPage.createControl(Composite)
.protected MdPropertyPaletteModel
getPaletteModel()
Returns palette model.protected ISelection
getSelectionForPropertyPage(org.eclipse.ui.IWorkbenchPart part, ISelection selection)
Obtains a selection suitable for use by the Property Palette.protected void
initializeEngine(IEngine engine)
protected void
initializePreferenceListeners()
Initializes property page preference listeners.protected org.eclipse.ui.operations.UndoRedoActionGroup
initUndoRedoActionGroup(org.eclipse.ui.IViewSite viewSite)
Inits undo redo action group which will be used to fill undo/redo action bars.protected void
processSelectionChanged(ISelection selection)
Processes selection changed event.void
propertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
Adapts itself to changes in preferencesprotected void
registerServiceConsumers(IScene scene)
Registers service consumers at given scene.void
setActionBars(org.eclipse.ui.IActionBars actionBars)
Adds toggle buttons for alphabetical and categorial display modes.void
setDefaultFocus()
Sets default focus.-
Methods inherited from class com._1c.g5.properties.ui.PropertySheetPage
createControl, createScene, getControl, getCurrentSelection, getPaletteComponent, getRootComposite, getScene, getSelectionPart, getSite, getToolkit, increaseBoundPartCount, init, isDisposed, selectionChanged, setFocus, suppressFocusRestoration, updateSelection
-
-
-
-
Method Detail
-
setDefaultFocus
public void setDefaultFocus()
Description copied from interface:WorkbenchUtils.IWithDefaultFocus
Sets default focus.- Specified by:
setDefaultFocus
in interfaceWorkbenchUtils.IWithDefaultFocus
-
dispose
public void dispose()
Description copied from class:PropertySheetPage
Disposes off theFormToolkit
andPropertyPaletteModel
created inPropertySheetPage.createControl(Composite)
. Stops listening to changes of preferences related to property palette.- Specified by:
dispose
in interfaceorg.eclipse.ui.part.IPage
- Overrides:
dispose
in classPropertySheetPage
-
setActionBars
public void setActionBars(org.eclipse.ui.IActionBars actionBars)
Description copied from class:PropertySheetPage
Adds toggle buttons for alphabetical and categorial display modes. Also adds a menu checkbox-like item to display either a human readable caption or an internal name for each field.- Specified by:
setActionBars
in interfaceorg.eclipse.ui.part.IPage
- Overrides:
setActionBars
in classPropertySheetPage
-
propertyChange
public void propertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
Description copied from class:PropertySheetPage
Adapts itself to changes in preferences- Specified by:
propertyChange
in interfaceorg.eclipse.jface.util.IPropertyChangeListener
- Overrides:
propertyChange
in classPropertySheetPage
-
getSelectionForPropertyPage
protected ISelection getSelectionForPropertyPage(org.eclipse.ui.IWorkbenchPart part, ISelection selection)
Description copied from class:PropertySheetPage
Obtains a selection suitable for use by the Property Palette.- Overrides:
getSelectionForPropertyPage
in classPropertySheetPage
- Parameters:
part
- - the workbench part containing the selection. Cannot benull
.selection
- - original selection reported by Property Palette. Cannot benull
.- Returns:
- a selection suitable for use by the Property Palette. Cannot return
null
.
-
getPaletteModel
protected MdPropertyPaletteModel getPaletteModel()
Description copied from class:PropertySheetPage
Returns palette model.- Overrides:
getPaletteModel
in classPropertySheetPage
- Returns:
- palette model. Cannot return
null
.
-
createFormToolkit
protected org.eclipse.ui.forms.widgets.FormToolkit createFormToolkit()
Description copied from class:PropertySheetPage
Creates and returnsFormToolkit
used to create controls.- Overrides:
createFormToolkit
in classPropertySheetPage
- Returns:
- created form tookit.
-
createInternalControls
protected void createInternalControls(org.eclipse.swt.widgets.Composite parent)
Description copied from class:PropertySheetPage
Creates internal controls- Overrides:
createInternalControls
in classPropertySheetPage
-
createTopCompositeContent
protected void createTopCompositeContent(org.eclipse.swt.widgets.Composite composite)
Description copied from class:PropertySheetPage
Creates controls which will be on top of property page.- Overrides:
createTopCompositeContent
in classPropertySheetPage
- Parameters:
composite
- - composite to create content. Cannot benull
.
-
registerServiceConsumers
protected void registerServiceConsumers(IScene scene)
Description copied from class:PropertySheetPage
Registers service consumers at given scene.- Overrides:
registerServiceConsumers
in classPropertySheetPage
- Parameters:
scene
- - scene to register consumers. Cannot benull
.
-
processSelectionChanged
protected void processSelectionChanged(ISelection selection)
Description copied from class:PropertySheetPage
Processes selection changed event.- Overrides:
processSelectionChanged
in classPropertySheetPage
- Parameters:
selection
- - new selection. Cannot benull
.
-
initUndoRedoActionGroup
protected org.eclipse.ui.operations.UndoRedoActionGroup initUndoRedoActionGroup(org.eclipse.ui.IViewSite viewSite)
Description copied from class:PropertySheetPage
Inits undo redo action group which will be used to fill undo/redo action bars.- Overrides:
initUndoRedoActionGroup
in classPropertySheetPage
- Parameters:
viewSite
- - undo redo view site. Cannot benull
.- Returns:
- created undo redo action group. Can return
null
.
-
initializeEngine
protected void initializeEngine(IEngine engine)
- Overrides:
initializeEngine
in classPropertySheetPage
-
createRootComposite
protected org.eclipse.swt.widgets.Composite createRootComposite(org.eclipse.swt.widgets.Composite parent)
Description copied from class:PropertySheetPage
Creates a root composite.- Overrides:
createRootComposite
in classPropertySheetPage
- Returns:
- a newly created composite, never
null
.
-
initializePreferenceListeners
protected void initializePreferenceListeners()
Description copied from class:PropertySheetPage
Initializes property page preference listeners.- Overrides:
initializePreferenceListeners
in classPropertySheetPage
-
-