/** * Returns a list of the allowed siblings with their occurrence for a given {@link OverlayWidget} * <tt>overlayWidget</tt>. This implementation returns all allowed siblings according to this * overlay widget's parent's {@link * org.nsesa.editor.gwt.core.client.ui.overlay.document.OverlayWidget#getStructureIndicator()}. * * @param documentController the document controller * @param overlayWidget the overlay widget to get the allowed siblings for * @return the allowed siblings */ @Override public List<OverlayWidget> getAllowedSiblings( final DocumentController documentController, final OverlayWidget overlayWidget) { if (overlayWidget.getParentOverlayWidget() != null) { return getAllowedChildren(documentController, overlayWidget.getParentOverlayWidget()); } else { // probably dealing with a root node return new ArrayList<OverlayWidget>(); } }