def setupPlug( self, plugParent, direction, flags ) :

		GafferCortex.CompoundParameterHandler.setupPlug( self, plugParent, direction, flags )

		# add the class specification plugs now if they're not there.
		compoundPlug = self.plug()
		if "__className" not in compoundPlug :
			compoundPlug["__className"] = Gaffer.StringPlug( "__className", Gaffer.Plug.Direction.In, "", flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic )
			compoundPlug["__classVersion"] = Gaffer.IntPlug( "__classVersion", Gaffer.Plug.Direction.In, 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic )
			compoundPlug["__searchPathEnvVar"] = Gaffer.StringPlug( "__searchPathEnvVar", Gaffer.Plug.Direction.In, "", flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic )

		# store the current class
		c = self.parameter().getClass( True )
		compoundPlug["__className"].setValue( c[1] )
		compoundPlug["__classVersion"].setValue( c[2] )
		compoundPlug["__searchPathEnvVar"].setValue( c[3] )
dataset/ETHPy150Open ImageEngine/gaffer/python/GafferCortex/ClassParameterHandler.py/ClassParameterHandler.setupPlug/original