Martin Grigorov
added a comment - 13/Mar/17 21:26 Implemented IPageManager#removePage(IManageablePage) in 8.x.
It is not possible to do it in 7.x because adding new methods to interfaces is an API break.
It is possible to add the method only to the (abstract) classes but then one will have to do things like:
if (pageManager instanceof AbstractPageManager) {
((AbstractPageManager) pageManager).removePage(page);
}
else if (pageManager instanceof PageManagerDecorator) {
((PageManagerDecorator) pageManager).removePage(page);
}
else if (pageManager instanceof IMockPageManager) {
((IMockPageManager) pageManager).removePage(page);
}
but as you can see it is not looking good at all.