import omni.ext
import omni.kit.menu.utils
from .legacy_help import HelpExtension
from .legacy_window import WindowExtension


class CommonMenuExtension(omni.ext.IExt):
    def on_startup(self, ext_id):
        self._legacy_help = HelpExtension()
        self._legacy_window = WindowExtension()

    def on_shutdown(self):
        del self._legacy_help
        del self._legacy_window
