private final JPanel panel;
public TextTargetPageUi(EntityExplorerSupport explorer, TextStructureFactory<T> structureFactory,
EditorPanel editorPanel, String caption) {
documentDisplayer = new EditorPanelService(explorer, editorPanel);
documentSelector = createDocumentSelector(documentDisplayer.getProjectExplorer());
this.structureFactory = structureFactory;
factoryPanel = createFactoryPanel(caption);
panel = new JPanel(new BorderLayout());
rebuildLayout(false);