Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FileNavigatorContribution

Hierarchy

Implements

  • FrontendApplicationContribution
  • TabBarToolbarContribution

Index

Constructors

Properties

clipboardService: ClipboardService
commandRegistry: CommandRegistry
contextKeyService: NavigatorContextKeyService
fileNavigatorFilter: FileNavigatorFilter
fileNavigatorPreferences: FileNavigatorPreferences
menuRegistry: MenuModelRegistry
navigatorDiff: NavigatorDiff
openerService: OpenerService
preferenceService: PreferenceService
selectionService: SelectionService
tabbarToolbarRegistry: TabBarToolbarRegistry
workspaceCommandContribution: WorkspaceCommandContribution
workspacePreferences: WorkspacePreferences
workspaceService: WorkspaceService

Accessors

  • get editorWidgets(): NavigatableWidget[]

Methods

  • collapseFileNavigatorTree(): Promise<void>
  • doInit(): Promise<void>
  • getSelectedFileNodes(): FileStatNode[]
  • init(): void
  • initializeLayout(app: FrontendApplication): Promise<void>
  • onCurrentWidgetChangedHandler(): void
  • onDidCreateNewResource(event: DidCreateNewResourceEvent): Promise<void>
  • refreshWorkspace(): Promise<void>
  • registerCommands(registry: CommandRegistry): void
  • registerKeybindings(registry: KeybindingRegistry): void
  • registerMenus(registry: MenuModelRegistry): void
  • registerMoreToolbarItem(item: Mutable<TabBarToolbarItem>): void
  • registerToolbarItems(toolbarRegistry: TabBarToolbarRegistry): Promise<void>
  • selectFileNode(uri?: URI): Promise<boolean>
  • selectWidgetFileNode(widget: undefined | Widget): Promise<boolean>
  • Reveals and selects node in the file navigator to which given widget is related. Does nothing if given widget undefined or doesn't have related resource.

    Parameters

    • widget: undefined | Widget

      widget file resource of which should be revealed and selected

    Returns Promise<boolean>

  • withOpenEditorsWidget<T>(widget: Widget, cb: ((navigator: OpenEditorsWidget) => T)): false | T
  • withWidget<T>(widget?: undefined | Widget, cb: ((navigator: FileNavigatorWidget) => T)): false | T