public MeasureMetaData createMeasureForNode(AvailableField selectedField) { MeasureMetaData meta = new MeasureMetaData( selectedField.getName(), "", selectedField.getDisplayName(), workspaceHelper.getLocale()); // $NON-NLS-1$ ColumnBackedNode node = createColumnBackedNode(selectedField, ModelerPerspective.ANALYSIS); meta.setLogicalColumn(node.getLogicalColumn()); return meta; }
public FieldMetaData createFieldForParentWithNode( CategoryMetaData parent, AvailableField selectedField) { FieldMetaData field = new FieldMetaData( parent, selectedField.getName(), "", selectedField.getDisplayName(), workspaceHelper.getLocale()); // $NON-NLS-1$ ColumnBackedNode node = createColumnBackedNode(selectedField, ModelerPerspective.REPORTING); field.setLogicalColumn(node.getLogicalColumn()); field.setFieldTypeDesc(node.getLogicalColumn().getDataType().getName()); return field; }