in src/com/intellij/idea/plugin/hybris/toolwindow/system/type/forms/TSMetaItemView.java [142:196]
private void createUIComponents() {
myAttributes = TSMetaItemAttributesTable.getInstance(myProject);
myCustomProperties = TSMetaItemCustomPropertiesTable.getInstance(myProject);
myIndexes = TSMetaItemIndexesTable.getInstance(myProject);
myRelations = TSMetaRelationElementsTable.getInstance(myProject);
myDetailsPane = new JBPanel();
myDeploymentPane = new JBPanel();
myFlagsPane = new JBPanel();
myAttributesPane = ToolbarDecorator.createDecorator(myAttributes)
.setRemoveAction(anActionButton -> Optional.ofNullable(myAttributes.getCurrentItem())
.ifPresent(it -> TSPsiHelper.INSTANCE.delete(myProject, myMeta, it)))
.setRemoveActionUpdater(e -> Optional.ofNullable(myAttributes.getCurrentItem())
.map(TSMetaClassifier::isCustom)
.orElse(false))
.disableUpDownActions()
.setPanelBorder(JBUI.Borders.empty())
.createPanel();
myCustomPropertiesPane = ToolbarDecorator.createDecorator(myCustomProperties)
.setRemoveAction(anActionButton -> Optional.ofNullable(myCustomProperties.getCurrentItem())
.ifPresent(it -> TSPsiHelper.INSTANCE.delete(myProject, myMeta, it)))
.setRemoveActionUpdater(e -> Optional.ofNullable(myCustomProperties.getCurrentItem())
.map(TSMetaClassifier::isCustom)
.orElse(false))
.disableUpDownActions()
.setPanelBorder(JBUI.Borders.empty())
.createPanel();
myIndexesPane = ToolbarDecorator.createDecorator(myIndexes)
.setRemoveAction(anActionButton -> Optional.ofNullable(myIndexes.getCurrentItem())
.ifPresent(it -> TSPsiHelper.INSTANCE.delete(myProject, myMeta, it)))
.setRemoveActionUpdater(e -> Optional.ofNullable(myIndexes.getCurrentItem())
.map(TSMetaClassifier::isCustom)
.orElse(false))
.disableUpDownActions()
.setPanelBorder(JBUI.Borders.empty())
.createPanel();
myRelationsPane = ToolbarDecorator.createDecorator(myRelations)
.disableUpDownActions()
.disableRemoveAction()
.setPanelBorder(JBUI.Borders.empty())
.createPanel();
myDetailsPane.setBorder(IdeBorderFactory.createTitledBorder("Details"));
myDeploymentPane.setBorder(IdeBorderFactory.createTitledBorder("Deployment"));
myFlagsPane.setBorder(IdeBorderFactory.createTitledBorder("Flags"));
myAttributesPane.setBorder(IdeBorderFactory.createTitledBorder("Attributes"));
myCustomPropertiesPane.setBorder(IdeBorderFactory.createTitledBorder("Custom Properties"));
myIndexesPane.setBorder(IdeBorderFactory.createTitledBorder("Indexes"));
myRelationsPane.setBorder(IdeBorderFactory.createTitledBorder("Relations"));
PopupHandler.installPopupMenu(myAttributes, "TSView.ToolWindow.TablePopup", "TSView.ToolWindow.TablePopup");
PopupHandler.installPopupMenu(myCustomProperties, "TSView.ToolWindow.TablePopup", "TSView.ToolWindow.TablePopup");
PopupHandler.installPopupMenu(myIndexes, "TSView.ToolWindow.TablePopup", "TSView.ToolWindow.TablePopup");
PopupHandler.installPopupMenu(myRelations, "TSView.ToolWindow.TablePopup", "TSView.ToolWindow.TablePopup");
}