Search in sources :

Example 1 with FactSetKeyActor

use of pcgen.output.actor.FactSetKeyActor in project pcgen by PCGen.

the class FactSetDefinition method activateOutput.

/**
	 * @see pcgen.cdom.content.ContentDefinition#activateOutput(DataSetID)
	 */
@Override
protected void activateOutput(DataSetID dsID) {
    FactSetKeyActor<F> fca = new FactSetKeyActor<>(getFactSetKey());
    CDOMWrapperInfoFacet wiFacet = FacetLibrary.getFacet(CDOMWrapperInfoFacet.class);
    if (!wiFacet.set(dsID, getUsableLocation(), factSetName.toLowerCase(), fca)) {
        Logging.errorPrint(getUsableLocation().getSimpleName() + " output " + factSetName.toLowerCase() + " already exists, ignoring Visibility to EXPORT for FACTSET: " + factSetName);
    }
}
Also used : CDOMWrapperInfoFacet(pcgen.cdom.facet.CDOMWrapperInfoFacet) FactSetKeyActor(pcgen.output.actor.FactSetKeyActor)

Aggregations

CDOMWrapperInfoFacet (pcgen.cdom.facet.CDOMWrapperInfoFacet)1 FactSetKeyActor (pcgen.output.actor.FactSetKeyActor)1