/** Binds {@link IUndoContext} to {@link UndoContext} in adaptable scope of {@link IDomain}. */ protected void bindIUndoContext() { binder() .bind(IUndoContext.class) .to(UndoContext.class) .in(AdaptableScopes.typed(IDomain.class)); }
/** Binds {@link ViewportModel} in adaptable scope of {@link IViewer}. */ protected void bindViewportModel() { binder().bind(ViewportModel.class).in(AdaptableScopes.typed(IViewer.class)); }
/** * Binds {@link IOperationHistory} to {@link DefaultOperationHistory} in adaptable scope of {@link * IDomain}. */ protected void bindIOperationHistory() { binder() .bind(IOperationHistory.class) .to(DefaultOperationHistory.class) .in(AdaptableScopes.typed(IDomain.class)); }