Compile Time Changes

class LeadTimeColumn

As of 16.5, a new interface for lead time has been added to core Part. As a result, a new lead time column has been created in cm/core/init/leadTimeColumn.cm. Extensions who have their own Lead Time column should migrate to the core version to avoid duplication.

Developers can migrate by:

  • Preferred option:
    • If applicable, remove registry of a custom Lead Time Column
    • Implement leadTime() in Part to get accurate value for core Lead Time column
  • Secondary option:
    • If custom lead time column exists...
      • Remove registry of a custom Lead Time Column
      • Utilize overridePartColumns() on Part to return custom lead time column in place of core column
/**
 * Lead Time Column for Parts
 */
public class LeadTimeColumn extends BasicPartColumn {

    /**
     * Constructor.
     */
    public constructor() {
		super("coreLeadTime");
    }
    

    /**
     * Initial Visibility.
     */
    public symbol[] initialVisibility() {
		return [#none];
    }


    /**
     * Return property value for part.
     */
    public Object value(Part part, Space space) {
        return part.leadTime();
    }
}