panels: introduce order

This commit is contained in:
isidor
2016-09-26 15:33:33 +02:00
parent 85faab64c9
commit 5c8a8348ff
5 changed files with 11 additions and 6 deletions
+2 -2
View File
@@ -18,8 +18,8 @@ export abstract class Panel extends Composite implements IPanel { }
* A panel descriptor is a leightweight descriptor of a panel in the workbench.
*/
export class PanelDescriptor extends CompositeDescriptor<Panel> {
constructor(moduleId: string, ctorName: string, id: string, name: string, cssClass?: string) {
super(moduleId, ctorName, id, name, cssClass);
constructor(moduleId: string, ctorName: string, id: string, name: string, cssClass?: string, order?: number) {
super(moduleId, ctorName, id, name, cssClass, order);
}
}
@@ -90,7 +90,8 @@ const openPanelKb: IKeybindings = {
'Repl',
debug.REPL_ID,
nls.localize({ comment: ['Debug is a noun in this context, not a verb.'], key: 'debugPanel' }, 'Debug Console'),
'repl'
'repl',
30
));
(<panel.PanelRegistry>platform.Registry.as(panel.Extensions.Panels)).setDefaultPanelId(debug.REPL_ID);
@@ -75,7 +75,9 @@ export function registerContributions(): void {
'MarkersPanel',
Constants.MARKERS_PANEL_ID,
Messages.MARKERS_PANEL_TITLE_NO_PROBLEMS,
'markersPanel'
'markersPanel',
10
));
let registry = <IWorkbenchActionRegistry>platform.Registry.as(ActionExtensions.WorkbenchActions);
@@ -38,7 +38,8 @@ ModesRegistry.registerLanguage({
'OutputPanel',
OUTPUT_PANEL_ID,
nls.localize('output', "Output"),
'output'
'output',
20
));
// register toggle output action globally
@@ -125,7 +125,8 @@ registerSingleton(ITerminalService, TerminalService);
'TerminalPanel',
TERMINAL_PANEL_ID,
nls.localize('terminal', "Terminal"),
'terminal'
'terminal',
40
));
// On mac cmd+` is reserved to cycle between windows, that's why the keybindings use WinCtrl