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 of
Specific logic:
PropertySheetPage 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected org.eclipse.ui.forms.widgets.FormToolkitCreates and returnsFormToolkitused to create controls.protected voidcreateInternalControls(org.eclipse.swt.widgets.Composite parent) Creates internal controlsprotected org.eclipse.swt.widgets.CompositecreateRootComposite(org.eclipse.swt.widgets.Composite parent) Creates a root composite.protected voidcreateTopCompositeContent(org.eclipse.swt.widgets.Composite composite) Creates controls which will be on top of property page.voiddispose()Disposes off theFormToolkitandPropertyPaletteModelcreated inPropertySheetPage.createControl(Composite).protected MdPropertyPaletteModelReturns palette model.protected ISelectiongetSelectionForPropertyPage(org.eclipse.ui.IWorkbenchPart part, ISelection selection) Obtains a selection suitable for use by the Property Palette.protected voidinitializeEngine(IEngine engine) protected voidInitializes property page preference listeners.protected org.eclipse.ui.operations.UndoRedoActionGroupinitUndoRedoActionGroup(org.eclipse.ui.IViewSite viewSite) Inits undo redo action group which will be used to fill undo/redo action bars.protected booleanprocessSelectionChanged(ISelection selection) Processes selection changed event.voidpropertyChange(org.eclipse.jface.util.PropertyChangeEvent event) Adapts itself to changes in preferencesprotected voidregisterServiceConsumers(IScene scene) Registers service consumers at given scene.voidsetActionBars(org.eclipse.ui.IActionBars actionBars) Adds toggle buttons for alphabetical and categorial display modes.voidSets default focus.Methods inherited from class com._1c.g5.properties.ui.PropertySheetPage
createControl, createScene, getControl, getCurrentSelection, getPaletteComponent, getRootComposite, getScene, getSelectionPart, getSite, getToolkit, init, isDisposed, selectionChanged, setFocus, suppressFocusRestoration, updateSelection
-
Constructor Details
-
MdPropertySheetPage
public MdPropertySheetPage()
-
-
Method Details
-
setDefaultFocus
public void setDefaultFocus()Description copied from interface:WorkbenchUtils.IWithDefaultFocusSets default focus.- Specified by:
setDefaultFocusin interfaceWorkbenchUtils.IWithDefaultFocus
-
dispose
public void dispose()Description copied from class:PropertySheetPageDisposes off theFormToolkitandPropertyPaletteModelcreated inPropertySheetPage.createControl(Composite). Stops listening to changes of preferences related to property palette.- Specified by:
disposein interfaceorg.eclipse.ui.part.IPage- Overrides:
disposein classPropertySheetPage
-
setActionBars
public void setActionBars(org.eclipse.ui.IActionBars actionBars) Description copied from class:PropertySheetPageAdds 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:
setActionBarsin interfaceorg.eclipse.ui.part.IPage- Overrides:
setActionBarsin classPropertySheetPage
-
propertyChange
public void propertyChange(org.eclipse.jface.util.PropertyChangeEvent event) Description copied from class:PropertySheetPageAdapts itself to changes in preferences- Specified by:
propertyChangein interfaceorg.eclipse.jface.util.IPropertyChangeListener- Overrides:
propertyChangein classPropertySheetPage
-
getSelectionForPropertyPage
protected ISelection getSelectionForPropertyPage(org.eclipse.ui.IWorkbenchPart part, ISelection selection) Description copied from class:PropertySheetPageObtains a selection suitable for use by the Property Palette.- Overrides:
getSelectionForPropertyPagein 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
Description copied from class:PropertySheetPageReturns palette model.- Overrides:
getPaletteModelin classPropertySheetPage- Returns:
- palette model. Cannot return
null.
-
createFormToolkit
protected org.eclipse.ui.forms.widgets.FormToolkit createFormToolkit()Description copied from class:PropertySheetPageCreates and returnsFormToolkitused to create controls.- Overrides:
createFormToolkitin classPropertySheetPage- Returns:
- created form tookit.
-
createInternalControls
protected void createInternalControls(org.eclipse.swt.widgets.Composite parent) Description copied from class:PropertySheetPageCreates internal controls- Overrides:
createInternalControlsin classPropertySheetPage
-
createTopCompositeContent
protected void createTopCompositeContent(org.eclipse.swt.widgets.Composite composite) Description copied from class:PropertySheetPageCreates controls which will be on top of property page.- Overrides:
createTopCompositeContentin classPropertySheetPage- Parameters:
composite- - composite to create content. Cannot benull.
-
registerServiceConsumers
Description copied from class:PropertySheetPageRegisters service consumers at given scene.- Overrides:
registerServiceConsumersin classPropertySheetPage- Parameters:
scene- - scene to register consumers. Cannot benull.
-
processSelectionChanged
Description copied from class:PropertySheetPageProcesses selection changed event.- Overrides:
processSelectionChangedin classPropertySheetPage- Parameters:
selection- - new selection. Cannot benull.- Returns:
trueif specified selection can be displayed on property sheet,falsein otherwise.
-
initUndoRedoActionGroup
protected org.eclipse.ui.operations.UndoRedoActionGroup initUndoRedoActionGroup(org.eclipse.ui.IViewSite viewSite) Description copied from class:PropertySheetPageInits undo redo action group which will be used to fill undo/redo action bars.- Overrides:
initUndoRedoActionGroupin classPropertySheetPage- Parameters:
viewSite- - undo redo view site. Cannot benull.- Returns:
- created undo redo action group. Can return
null.
-
initializeEngine
- Overrides:
initializeEnginein classPropertySheetPage
-
createRootComposite
protected org.eclipse.swt.widgets.Composite createRootComposite(org.eclipse.swt.widgets.Composite parent) Description copied from class:PropertySheetPageCreates a root composite.- Overrides:
createRootCompositein classPropertySheetPage- Returns:
- a newly created composite, never
null.
-
initializePreferenceListeners
protected void initializePreferenceListeners()Description copied from class:PropertySheetPageInitializes property page preference listeners.- Overrides:
initializePreferenceListenersin classPropertySheetPage
-