- Overview
- Getting Started
- Project Goals
- theia FAQ
- Using the theia IDE
- Getting Started
- Installing VS Code Extensions
- Using AI Features
- theia Coder (AI assistant)
- Using the dynamic Toolbar
- Data Usage & Telemetry
- Download
- Adopting the theia Platform
- Build your own IDE/Tool
- Extending the theia IDE
- Extensions and Plugins
- Authoring theia Extensions
- Authoring VS Code Extensions
- Consuming theia fixes without upgrading
- Platform Concepts & APIs
- Services and Contributions
- Architecture Overview
- Commands/Menus/Keybindings
- Widgets
- Preferences
- theia AI
- Label Provider
- Message Service
- Property View
- Tree Widget
- Events
- Frontend Application Contributions
- Backend Application Contributions
- Communication via JSON-RPC
- Tasks
- Internationalization
- Language Support
- Dynamic Toolbar
- Breadcrumbs
- Enhanced Tab Bar Preview
- Contribution Filter
- Advanced Tips
Dynamic Toolbar
Eclipse theia provides an optional and fully dynamic toolbar to be included in your custom IDE or tool. Please also see the documentation of the toolbar from a user point of view.
To enable the toolbar, simply include the theia extension "@theia/toolbar" into your theia-based product (also see the documentation on composing theia applications).
The theia toolbar defines some default commands that are displayed even before the user can configure the toolbar to their preferences. These defaults are defined in a ToolbarDefaultsFactory. See here for the default ToolbarDefaultsFactory that is shipped within the toolbar extension. To define your own default commands to the toolbar, create a custom implementation of ToolbarDefaultsFactory and rebind you own factory in your extension module (see following code example).
if (isBound(ToolbarDefaultsFactory)) {
rebind(ToolbarDefaultsFactory).toService(MyCustomToolbarDefaultsFactory);
} else {
bind(ToolbarDefaultsFactory).toService(MyCustomToolbarDefaultsFactory);
}