Add workbench part interface

Add common interface for view and editor