@theia/toolbar 1.53.0-next.4 → 1.53.0-next.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,58 +1,58 @@
1
- // *****************************************************************************
2
- // Copyright (C) 2022 Ericsson and others.
3
- //
4
- // This program and the accompanying materials are made available under the
5
- // terms of the Eclipse Public License v. 2.0 which is available at
6
- // http://www.eclipse.org/legal/epl-2.0.
7
- //
8
- // This Source Code may also be made available under the following Secondary
9
- // Licenses when the conditions for such availability set forth in the Eclipse
10
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
- // with the GNU Classpath Exception which is available at
12
- // https://www.gnu.org/software/classpath/license.html.
13
- //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
- // *****************************************************************************
16
-
17
- import { nls } from '@theia/core';
18
- import { DeflatedToolbarTree, ToolbarAlignment } from './toolbar-interfaces';
19
-
20
- // This file specifies the default layout of the toolbar. This binding should be overridden for extenders.
21
- // Both Toolbar Command Items and Toolbar Contributions can be specified here.
22
- export const ToolbarDefaultsFactory = Symbol('ToolbarDefaultsFactory');
23
- export const ToolbarDefaults: () => DeflatedToolbarTree = () => ({
24
- items: {
25
- [ToolbarAlignment.LEFT]: [
26
- [
27
- {
28
- id: 'textEditor.commands.go.back',
29
- command: 'textEditor.commands.go.back',
30
- icon: 'codicon codicon-arrow-left',
31
- },
32
- {
33
- id: 'textEditor.commands.go.forward',
34
- command: 'textEditor.commands.go.forward',
35
- icon: 'codicon codicon-arrow-right',
36
- },
37
- ],
38
- [
39
- {
40
- id: 'workbench.action.splitEditorRight',
41
- command: 'workbench.action.splitEditorRight',
42
- icon: 'codicon codicon-split-horizontal',
43
- },
44
- ],
45
- ],
46
- [ToolbarAlignment.CENTER]: [[]],
47
- [ToolbarAlignment.RIGHT]: [
48
- [
49
- {
50
- id: 'workbench.action.showCommands',
51
- command: 'workbench.action.showCommands',
52
- icon: 'codicon codicon-terminal',
53
- tooltip: nls.localizeByDefault('Command Palette'),
54
- },
55
- ]
56
- ]
57
- },
58
- });
1
+ // *****************************************************************************
2
+ // Copyright (C) 2022 Ericsson and others.
3
+ //
4
+ // This program and the accompanying materials are made available under the
5
+ // terms of the Eclipse Public License v. 2.0 which is available at
6
+ // http://www.eclipse.org/legal/epl-2.0.
7
+ //
8
+ // This Source Code may also be made available under the following Secondary
9
+ // Licenses when the conditions for such availability set forth in the Eclipse
10
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
+ // with the GNU Classpath Exception which is available at
12
+ // https://www.gnu.org/software/classpath/license.html.
13
+ //
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
+ // *****************************************************************************
16
+
17
+ import { nls } from '@theia/core';
18
+ import { DeflatedToolbarTree, ToolbarAlignment } from './toolbar-interfaces';
19
+
20
+ // This file specifies the default layout of the toolbar. This binding should be overridden for extenders.
21
+ // Both Toolbar Command Items and Toolbar Contributions can be specified here.
22
+ export const ToolbarDefaultsFactory = Symbol('ToolbarDefaultsFactory');
23
+ export const ToolbarDefaults: () => DeflatedToolbarTree = () => ({
24
+ items: {
25
+ [ToolbarAlignment.LEFT]: [
26
+ [
27
+ {
28
+ id: 'textEditor.commands.go.back',
29
+ command: 'textEditor.commands.go.back',
30
+ icon: 'codicon codicon-arrow-left',
31
+ },
32
+ {
33
+ id: 'textEditor.commands.go.forward',
34
+ command: 'textEditor.commands.go.forward',
35
+ icon: 'codicon codicon-arrow-right',
36
+ },
37
+ ],
38
+ [
39
+ {
40
+ id: 'workbench.action.splitEditorRight',
41
+ command: 'workbench.action.splitEditorRight',
42
+ icon: 'codicon codicon-split-horizontal',
43
+ },
44
+ ],
45
+ ],
46
+ [ToolbarAlignment.CENTER]: [[]],
47
+ [ToolbarAlignment.RIGHT]: [
48
+ [
49
+ {
50
+ id: 'workbench.action.showCommands',
51
+ command: 'workbench.action.showCommands',
52
+ icon: 'codicon codicon-terminal',
53
+ tooltip: nls.localizeByDefault('Command Palette'),
54
+ },
55
+ ]
56
+ ]
57
+ },
58
+ });
@@ -1,30 +1,30 @@
1
- // *****************************************************************************
2
- // Copyright (C) 2022 Ericsson and others.
3
- //
4
- // This program and the accompanying materials are made available under the
5
- // terms of the Eclipse Public License v. 2.0 which is available at
6
- // http://www.eclipse.org/legal/epl-2.0.
7
- //
8
- // This Source Code may also be made available under the following Secondary
9
- // Licenses when the conditions for such availability set forth in the Eclipse
10
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
- // with the GNU Classpath Exception which is available at
12
- // https://www.gnu.org/software/classpath/license.html.
13
- //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
- // *****************************************************************************
16
-
17
- import '../../src/browser/style/toolbar.css';
18
- import { ContainerModule, interfaces } from '@theia/core/shared/inversify';
19
- import { bindToolbarApplicationShell } from './application-shell-with-toolbar-override';
20
- import { bindToolbar } from './toolbar-command-contribution';
21
-
22
- export default new ContainerModule((
23
- bind: interfaces.Bind,
24
- unbind: interfaces.Unbind,
25
- _isBound: interfaces.IsBound,
26
- rebind: interfaces.Rebind,
27
- ) => {
28
- bindToolbarApplicationShell(bind, rebind, unbind);
29
- bindToolbar(bind);
30
- });
1
+ // *****************************************************************************
2
+ // Copyright (C) 2022 Ericsson and others.
3
+ //
4
+ // This program and the accompanying materials are made available under the
5
+ // terms of the Eclipse Public License v. 2.0 which is available at
6
+ // http://www.eclipse.org/legal/epl-2.0.
7
+ //
8
+ // This Source Code may also be made available under the following Secondary
9
+ // Licenses when the conditions for such availability set forth in the Eclipse
10
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
+ // with the GNU Classpath Exception which is available at
12
+ // https://www.gnu.org/software/classpath/license.html.
13
+ //
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
+ // *****************************************************************************
16
+
17
+ import '../../src/browser/style/toolbar.css';
18
+ import { ContainerModule, interfaces } from '@theia/core/shared/inversify';
19
+ import { bindToolbarApplicationShell } from './application-shell-with-toolbar-override';
20
+ import { bindToolbar } from './toolbar-command-contribution';
21
+
22
+ export default new ContainerModule((
23
+ bind: interfaces.Bind,
24
+ unbind: interfaces.Unbind,
25
+ _isBound: interfaces.IsBound,
26
+ rebind: interfaces.Rebind,
27
+ ) => {
28
+ bindToolbarApplicationShell(bind, rebind, unbind);
29
+ bindToolbar(bind);
30
+ });