@Override
public boolean leavingPage() {
if (getState() instanceof EndConnectionState) {
// set some context for the connection state
EndConnectionState state = (EndConnectionState) getState();
Collection<IService> services = page.getServices();
state.setServices(services);
if (page instanceof AbstractUDIGImportPage) {
AbstractUDIGImportPage importPage = (AbstractUDIGImportPage) page;
Collection<URL> resourceIDs = importPage.getResourceIDs();
state.setSelectedResources(resourceIDs);
}
}
if (page instanceof AbstractUDIGImportPage) {
AbstractUDIGImportPage importPage = (AbstractUDIGImportPage) page;