in src/com/intellij/idea/plugin/hybris/toolwindow/system/bean/forms/BSMetaBeanView.java [105:161]
private void createUIComponents() {
myProperties = BSMetaPropertiesTable.getInstance(myProject);
myHints = BSMetaHintsTable.getInstance(myProject);
myImports = BSMetaImportsTable.getInstance(myProject);
myAnnotations = BSMetaAnnotationsTable.getInstance(myProject);
myPropertiesPane = ToolbarDecorator.createDecorator(myProperties)
.setRemoveAction(anActionButton -> Optional.ofNullable(myProperties.getCurrentItem())
.ifPresent(it -> BSPsiHelper.INSTANCE.delete(myProject, myMeta, it)))
.setRemoveActionUpdater(e -> Optional.ofNullable(myProperties.getCurrentItem())
.map(BSMetaClassifier::isCustom)
.orElse(false))
.disableUpDownActions()
.setPanelBorder(JBUI.Borders.empty())
.createPanel();
myHintsPane = ToolbarDecorator.createDecorator(myHints)
.setRemoveAction(anActionButton -> Optional.ofNullable(myHints.getCurrentItem())
.ifPresent(it -> BSPsiHelper.INSTANCE.delete(myProject, myMeta, it)))
.setRemoveActionUpdater(e -> Optional.ofNullable(myHints.getCurrentItem())
.map(BSMetaClassifier::isCustom)
.orElse(false))
.disableUpDownActions()
.setPanelBorder(JBUI.Borders.empty())
.createPanel();
myImportsPane = ToolbarDecorator.createDecorator(myImports)
.setRemoveAction(anActionButton -> Optional.ofNullable(myImports.getCurrentItem())
.ifPresent(it -> BSPsiHelper.INSTANCE.delete(myProject, myMeta, it)))
.setRemoveActionUpdater(e -> Optional.ofNullable(myImports.getCurrentItem())
.map(BSMetaClassifier::isCustom)
.orElse(false))
.disableUpDownActions()
.setPanelBorder(JBUI.Borders.empty())
.createPanel();
myAnnotationsPane = ToolbarDecorator.createDecorator(myAnnotations)
.setRemoveAction(anActionButton -> Optional.ofNullable(myAnnotations.getCurrentItem())
.ifPresent(it -> BSPsiHelper.INSTANCE.delete(myProject, myMeta, it)))
.setRemoveActionUpdater(e -> Optional.ofNullable(myAnnotations.getCurrentItem())
.map(BSMetaClassifier::isCustom)
.orElse(false))
.disableUpDownActions()
.setPanelBorder(JBUI.Borders.empty())
.createPanel();
myDetailsPane = new JBPanel();
myFlagsPane = new JBPanel();
myDetailsPane.setBorder(IdeBorderFactory.createTitledBorder("Details"));
myFlagsPane.setBorder(IdeBorderFactory.createTitledBorder("Flags"));
myPropertiesPane.setBorder(IdeBorderFactory.createTitledBorder("Properties"));
myHintsPane.setBorder(IdeBorderFactory.createTitledBorder("Hints"));
myImportsPane.setBorder(IdeBorderFactory.createTitledBorder("Imports"));
myAnnotationsPane.setBorder(IdeBorderFactory.createTitledBorder("Annotations"));
PopupHandler.installPopupMenu(myProperties, "BSView.ToolWindow.TablePopup", "BSView.ToolWindow.TablePopup");
PopupHandler.installPopupMenu(myHints, "BSView.ToolWindow.TablePopup", "BSView.ToolWindow.TablePopup");
PopupHandler.installPopupMenu(myImports, "BSView.ToolWindow.TablePopup", "BSView.ToolWindow.TablePopup");
PopupHandler.installPopupMenu(myAnnotations, "BSView.ToolWindow.TablePopup", "BSView.ToolWindow.TablePopup");
}