diff --git a/packages/sirius-web/frontend/sirius-web-application/src/index.ts b/packages/sirius-web/frontend/sirius-web-application/src/index.ts index 2b2f1129cc..406d9421a2 100644 --- a/packages/sirius-web/frontend/sirius-web-application/src/index.ts +++ b/packages/sirius-web/frontend/sirius-web-application/src/index.ts @@ -30,7 +30,9 @@ export { export { type NavigationBarIconProps, type NavigationBarMenuProps } from './navigationBar/NavigationBar.types'; export { navigationBarIconExtensionPoint, + navigationBarLeftContributionExtensionPoint, navigationBarMenuExtensionPoint, + navigationBarRightContributionExtensionPoint, } from './navigationBar/NavigationBarExtensionPoints'; export { routerExtensionPoint } from './router/RouterExtensionPoints'; export { projectActionButtonMenuItemExtensionPoint } from './views/project-browser/list-projects-area/ProjectActionButtonExtensionPoints'; diff --git a/packages/sirius-web/frontend/sirius-web-application/src/navigationBar/NavigationBar.tsx b/packages/sirius-web/frontend/sirius-web-application/src/navigationBar/NavigationBar.tsx index 1ed4cca5b9..6fdbc6ef56 100644 --- a/packages/sirius-web/frontend/sirius-web-application/src/navigationBar/NavigationBar.tsx +++ b/packages/sirius-web/frontend/sirius-web-application/src/navigationBar/NavigationBar.tsx @@ -10,7 +10,7 @@ * Contributors: * Obeo - initial API and implementation *******************************************************************************/ -import { useComponent } from '@eclipse-sirius/sirius-components-core'; +import { useComponent, useComponents } from '@eclipse-sirius/sirius-components-core'; import AppBar from '@material-ui/core/AppBar'; import IconButton from '@material-ui/core/IconButton'; import Link from '@material-ui/core/Link'; @@ -19,7 +19,12 @@ import Tooltip from '@material-ui/core/Tooltip'; import { emphasize, makeStyles } from '@material-ui/core/styles'; import { Link as RouterLink } from 'react-router-dom'; import { NavigationBarProps } from './NavigationBar.types'; -import { navigationBarIconExtensionPoint, navigationBarMenuExtensionPoint } from './NavigationBarExtensionPoints'; +import { + navigationBarIconExtensionPoint, + navigationBarLeftContributionExtensionPoint, + navigationBarMenuExtensionPoint, + navigationBarRightContributionExtensionPoint, +} from './NavigationBarExtensionPoints'; const useNavigationBarStyles = makeStyles((theme) => ({ navbar: { @@ -64,6 +69,8 @@ export const NavigationBar = ({ children }: NavigationBarProps) => { const { Component: Icon } = useComponent(navigationBarIconExtensionPoint); const { Component: Menu } = useComponent(navigationBarMenuExtensionPoint); + const leftContributions = useComponents(navigationBarLeftContributionExtensionPoint); + const rightContributions = useComponents(navigationBarRightContributionExtensionPoint); return (