Skip to main content

Switch active navigator

To switch active navigator, set the ActiveNavigator property of the IEditorPage object.

The value of ActiveNavigator is as follows:

  • Model navigator: "Model"
  • Product line navigator: "ProductLine"
  • Configuration management navigator: "Scm"
  • Project navigator: "Project"
  • Profile navigator: "Profile"
  • Custom navigator: "Custom.{Custom navigator Id}"
Supplementary information

Even if multiple custom navigators are set, you can display any custom navigator by specifying the corresponding Id. For example, if you have registered two custom navigators and set their Ids to "Error" and "Search", you can display the "Search" custom navigator by setting IEditorPage.ActiveNavigator to "Custom.Search".

public void ActivateModelNavigator(ICommandContext c, ICommandParams p) 
{
IEditorPage editorPage = c.App.Window.EditorPage;

//Activate the model navigator
editorPage.ActiveNavigator = "Model";
}