Skip to content

Oxygen plugin: allow display and selection of more than one entity type per entity #16

@philgooch

Description

@philgooch

The search results return only a single entity type per entity - there may be more than one entity type associated with a given entity.

Probably a relatively small change to LookupController.java around line 712

Something like this code might be used, although I'm not sure how to get this to display in the table as
model.addRow(data); causes this to be ignored, it seems.

            if (etList != null) {
                JComboBox comboBox = new JComboBox();
                for (EntityType et : etList) {
                    comboBox.addItem(et.getName()); 
                }
                TableColumn etCol = table.getColumnModel().getColumn(ENTITY_TYPE_COLUMN);
                etCol.setCellEditor(new DefaultCellEditor(comboBox));
                DefaultTableCellRenderer renderer = new DefaultTableCellRenderer();
                renderer.setToolTipText("Click for combo box");
                etCol.setCellRenderer(renderer);
            }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions