locatableClass, new FileBasedLocationFilter());
page.setNewEntityVisitor(new Receiver<T>() {
@Override
public void handle(T object) {
Locatable locatable = (Locatable) object;
locatable.setAllowedLocationTypes(DataLocationType.getFileBasedTypes());
}
});
String mainCaption = String.format("Select a File %s", (locatableType == EntityType.Source ? "Source" : "Target"));
page.setMainCaption(mainCaption);
String subCaption = String.format("Select the location of the %s file that will be used in this connect operation.", (locatableType == EntityType.Source ? "source" : "target"));