#NEWLINE# def on_activation( self ) : #NEWLINE# #INDENT# if ( self . ilastik . project is None ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# ovs = self . ilastik . _activeImage . module [ self . __class__ . moduleName ] . getOverlayRefs ( ) #NEWLINE# if ( len ( ovs ) == 0 ) : #NEWLINE# #INDENT# raw = overlayWidget . ilastik . _activeImage . overlayMgr [ 'Raw Data' ] #NEWLINE# if ( raw is not None ) : #NEWLINE# #INDENT# ovs . append ( raw . getRef ( ) ) #NEWLINE# #UNINDENT# #UNINDENT# self . ilastik . labelWidget . _history . volumeEditor = self . ilastik . labelWidget #NEWLINE# overlayWidget = OverlayWidget ( self . ilastik . labelWidget , self . ilastik . project . dataMgr ) #NEWLINE# self . ilastik . labelWidget . setOverlayWidget ( overlayWidget ) #NEWLINE# self . ilastik . labelWidget . setLabelWidget ( ve . DummyLabelWidget ( ) ) #NEWLINE# self . btnUnsupervisedOptions . setEnabled ( True )