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 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 Details

    • MdPropertySheetPage

      public MdPropertySheetPage()
  • Method Details

    • setDefaultFocus

      public void setDefaultFocus()
      Description copied from interface: WorkbenchUtils.IWithDefaultFocus
      Sets default focus.
      Specified by:
      setDefaultFocus in interface WorkbenchUtils.IWithDefaultFocus
    • dispose

      public void dispose()
      Description copied from class: PropertySheetPage
      Disposes off the FormToolkit and PropertyPaletteModel created in PropertySheetPage.createControl(Composite). Stops listening to changes of preferences related to property palette.
      Specified by:
      dispose in interface org.eclipse.ui.part.IPage
      Overrides:
      dispose in class PropertySheetPage
    • 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 interface org.eclipse.ui.part.IPage
      Overrides:
      setActionBars in class PropertySheetPage
    • 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 interface org.eclipse.jface.util.IPropertyChangeListener
      Overrides:
      propertyChange in class PropertySheetPage
    • 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 class PropertySheetPage
      Parameters:
      part - - the workbench part containing the selection. Cannot be null.
      selection - - original selection reported by Property Palette. Cannot be null.
      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 class PropertySheetPage
      Returns:
      palette model. Cannot return null.
    • createFormToolkit

      protected org.eclipse.ui.forms.widgets.FormToolkit createFormToolkit()
      Description copied from class: PropertySheetPage
      Creates and returns FormToolkit used to create controls.
      Overrides:
      createFormToolkit in class PropertySheetPage
      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 class PropertySheetPage
    • 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 class PropertySheetPage
      Parameters:
      composite - - composite to create content. Cannot be null.
    • registerServiceConsumers

      protected void registerServiceConsumers(IScene scene)
      Description copied from class: PropertySheetPage
      Registers service consumers at given scene.
      Overrides:
      registerServiceConsumers in class PropertySheetPage
      Parameters:
      scene - - scene to register consumers. Cannot be null.
    • processSelectionChanged

      protected boolean processSelectionChanged(ISelection selection)
      Description copied from class: PropertySheetPage
      Processes selection changed event.
      Overrides:
      processSelectionChanged in class PropertySheetPage
      Parameters:
      selection - - new selection. Cannot be null.
      Returns:
      true if specified selection can be displayed on property sheet, false in otherwise.
    • 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 class PropertySheetPage
      Parameters:
      viewSite - - undo redo view site. Cannot be null.
      Returns:
      created undo redo action group. Can return null.
    • initializeEngine

      protected void initializeEngine(IEngine engine)
      Overrides:
      initializeEngine in class PropertySheetPage
    • 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 class PropertySheetPage
      Returns:
      a newly created composite, never null.
    • initializePreferenceListeners

      protected void initializePreferenceListeners()
      Description copied from class: PropertySheetPage
      Initializes property page preference listeners.
      Overrides:
      initializePreferenceListeners in class PropertySheetPage