/**
* Setup the mode of column creation: nodes table or edges table.
* @param mode Mode
*/
public void setup(Mode mode) {
AttributeController ac = Lookup.getDefault().lookup(AttributeController.class);
//Set description text for the mode of column creation:
switch (mode) {
case NODES_TABLE:
descriptionLabel.setText(NbBundle.getMessage(AddColumnUI.class, "AddColumnUI.descriptionLabel.text.nodes"));
table = ac.getModel().getNodeTable();
break;
case EDGES_TABLE:
descriptionLabel.setText(NbBundle.getMessage(AddColumnUI.class, "AddColumnUI.descriptionLabel.text.edges"));
table = ac.getModel().getEdgeTable();
break;
}
for (AttributeType type : AttributeType.values()) {
typeComboBox.addItem(type);