def _add_view(self, window, view):

        # If no 'relative_to' is specified then the view is positioned
        # relative to the editor area.
        if len(view.relative_to) > 0:
            relative_to = window.get_view_by_id(view.relative_to)

        else:
            relative_to = None

        # Add the view to the window.
        window.add_view(
            view, view.position, relative_to, (view.width, view.height)
        )

        return

#### EOF ######################################################################
Determine what the field link should be for the given field, object pair
dataset/ETHPy150Open enthought/pyface/pyface/workbench/perspective.py/Perspective._add_view--crossover with--dataset/ETHPy150Open nyaruka/smartmin/smartmin/templatetags/smartmin.py/get_field_link