Class DefaultTreeMasterDetailCustomization

    • Constructor Detail

      • DefaultTreeMasterDetailCustomization

        public DefaultTreeMasterDetailCustomization()
        Default constructor.
    • Method Detail

      • getInitialTreeWidth

        public int getInitialTreeWidth()
        Description copied from interface: TreeWidthProvider
        Returns the initial width for the composite displaying the tree.
        Specified by:
        getInitialTreeWidth in interface TreeWidthProvider
        Returns:
        the width in pixel
      • createDetailComposite

        public org.eclipse.swt.widgets.Composite createDetailComposite​(org.eclipse.swt.widgets.Composite parent)
        Description copied from interface: DetailCompositeBuilder
        Called to create the detail composite on the right.
        Specified by:
        createDetailComposite in interface DetailCompositeBuilder
        Parameters:
        parent - the parent composite
        Returns:
        the detail composite
      • getViewModelServices

        public ViewModelService[] getViewModelServices​(VView view,
                                                       org.eclipse.emf.ecore.EObject eObject)
        Description copied from interface: ViewModelServiceProvider
        Returns newly created view model services which will be used when the given view for the given object is rendered.
        Specified by:
        getViewModelServices in interface ViewModelServiceProvider
        Parameters:
        view - the view to be rendered
        eObject - the object to be rendered
        Returns:
        the services
      • setDetailComposite

        public void setDetailComposite​(DetailCompositeBuilder detailComposite)
        Sets the detail composite builder.
        Parameters:
        detailComposite - the builder
      • setInitialTreeWidth

        public void setInitialTreeWidth​(TreeWidthProvider width)
        Sets the tree width provider.
        Parameters:
        width - the provider
      • setViewModelServices

        public void setViewModelServices​(ViewModelServiceProvider viewServiceProvider)
        Sets the view model services provider.
        Parameters:
        viewServiceProvider - the provider