@Override public boolean canFinish() { LayerSourceDescriptor selected = (LayerSourceDescriptor) list.getSelectedValue(); if (selected == null) { return false; } return layerSourceMap.get(selected).canFinish(getContext()); }
@Override public boolean hasNextPage() { LayerSourceDescriptor selected = (LayerSourceDescriptor) list.getSelectedValue(); if (selected == null) { return false; } return layerSourceMap.get(selected).hasFirstPage(); }
@Override public boolean performFinish() { LayerSourceDescriptor selected = (LayerSourceDescriptor) list.getSelectedValue(); if (selected == null) { return false; } return layerSourceMap.get(selected).performFinish(getContext()); }
@Override public AbstractLayerSourceAssistantPage getNextPage() { LayerSourceDescriptor selected = (LayerSourceDescriptor) list.getSelectedValue(); if (selected == null) { return null; } LayerSource layerSource = layerSourceMap.get(selected); LayerSourcePageContext pageContext = getContext(); pageContext.setLayerSource(layerSource); return layerSource.getFirstPage(pageContext); }
@Override public void performCancel() { LayerSourcePageContext context = getContext(); LayerSource layerSource = context.getLayerSource(); if (layerSource != null) { layerSource.cancel(context); } } }
for (LayerSourceDescriptor lsd : descriptorSet) { LayerSource lsc = layerSourceMap.get(lsd); if (lsc.isApplicable(context)) { descriptorList.add(lsd);