Skip to main content

WorkingSetView

Import :

const WorkingSetView = brackets.getModule("project/WorkingSetView")

refresh()

Refreshes all Pane View List Views

Kind: global function

syncSelectionIndicator()

Synchronizes the selection indicator for all views

Kind: global function

createWorkingSetViewForPane($container, paneId)

Creates a new WorkingSetView object for the specified pane

Kind: global function

ParamTypeDescription
$containerjQuerythe WorkingSetView's DOM parent node
paneIdstringthe id of the pane the view is being created for

addIconProvider(callback, [priority])

Adds an icon provider. The callback is invoked before each working set item is created, and can return content to prepend to the item if it supports the icon.

Kind: global function

ParamTypeDefaultDescription
callbackfunctionReturn a string representing the HTML, a jQuery object or DOM node, or undefined. If undefined, nothing is prepended to the list item and the default or an available icon will be used.
[priority]number0optional priority. 0 being lowest. The icons with the highest priority wins if there are multiple callback providers attached. icon providers of the same priority first valid response wins.

addClassProvider(callback, [priority])

Adds a CSS class provider, invoked before each working set item is created or updated. When called to update an existing item, all previously applied classes have been cleared.

Kind: global function

ParamTypeDefaultDescription
callbackfunctionReturn a string containing space-separated CSS class(es) to add, or undefined to leave CSS unchanged.
[priority]number0optional priority. 0 being lowest. The class with the highest priority wins if there are multiple callback classes attached. class providers of the same priority will be appended.

getContext()

Gets the filesystem object for the current context in the working set.

Kind: global function