use of org.gephi.datalab.plugin.manipulators.columns.CopyDataToOtherColumn in project gephi by gephi.
the class CopyDataToOtherColumnUI method setup.
@Override
public void setup(AttributeColumnsManipulator m, GraphModel graphModel, Table table, Column column, DialogControls dialogControls) {
this.manipulator = (CopyDataToOtherColumn) m;
sourceColumnLabel.setText(NbBundle.getMessage(CopyDataToOtherColumnUI.class, "CopyDataToOtherColumnUI.sourceColumnLabel.text", column.getTitle()));
AttributeColumnsController ac = Lookup.getDefault().lookup(AttributeColumnsController.class);
ArrayList<Column> availableColumns = new ArrayList<>();
for (Column c : table) {
if (ac.canChangeColumnData(c) && c != column) {
availableColumns.add(c);
columnsComboBox.addItem(c.getTitle());
}
}
columns = availableColumns.toArray(new Column[0]);
}
Aggregations