String template = document.getTemplateID();
templateCombo.setSelectedItem(template);
if (document instanceof Feed) {
Feed feed = (Feed) document;
if (feed.isUsePageStructure()) {
structureCombo.setSelectedIndex(0);
} else if (feed.isUseListStructure()) {
structureCombo.setSelectedIndex(1);
} else {
structureCombo.setSelectedIndex(2);
}
if (feed.getMaxAge() != -1) {
maxAgeCheck.setSelected(true);
maxAgeSpinner.setValue(new Integer(feed.getMaxAge()));
}
}
Pointer p = ctx.getPointer("schedule/*");
if (p != null) {