@theia/secondary-window 1.53.0-next.55 → 1.53.0-next.64

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.
package/README.md CHANGED
@@ -1,35 +1,35 @@
1
- <div align='center'>
2
-
3
- <br />
4
-
5
- <img src='https://raw.githubusercontent.com/eclipse-theia/theia/master/logo/theia.svg?sanitize=true' alt='theia-ext-logo' width='100px' />
6
-
7
- <h2>ECLIPSE THEIA - SECONDARY WINDOW EXTENSION</h2>
8
-
9
- <hr />
10
-
11
- </div>
12
-
13
- ## Description
14
-
15
- The `@theia/secondary-window` extension contributes UI integration that allows moving widgets to secondary windows.
16
-
17
- ### Limitations
18
-
19
- - **The extension is currently only suitable for use in browser applications** because there are some unresolved issues with *Electron*.
20
- - Currently, only webview widgets can be moved to secondary windows.
21
-
22
- ## Additional Information
23
-
24
- - [Theia - GitHub](https://github.com/eclipse-theia/theia)
25
- - [Theia - Website](https://theia-ide.org/)
26
-
27
- ## License
28
-
29
- - [Eclipse Public License 2.0](http://www.eclipse.org/legal/epl-2.0/)
30
- - [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
31
-
32
- ## Trademark
33
-
34
- "Theia" is a trademark of the Eclipse Foundation
35
- <https://www.eclipse.org/theia>
1
+ <div align='center'>
2
+
3
+ <br />
4
+
5
+ <img src='https://raw.githubusercontent.com/eclipse-theia/theia/master/logo/theia.svg?sanitize=true' alt='theia-ext-logo' width='100px' />
6
+
7
+ <h2>ECLIPSE THEIA - SECONDARY WINDOW EXTENSION</h2>
8
+
9
+ <hr />
10
+
11
+ </div>
12
+
13
+ ## Description
14
+
15
+ The `@theia/secondary-window` extension contributes UI integration that allows moving widgets to secondary windows.
16
+
17
+ ### Limitations
18
+
19
+ - **The extension is currently only suitable for use in browser applications** because there are some unresolved issues with *Electron*.
20
+ - Currently, only webview widgets can be moved to secondary windows.
21
+
22
+ ## Additional Information
23
+
24
+ - [Theia - GitHub](https://github.com/eclipse-theia/theia)
25
+ - [Theia - Website](https://theia-ide.org/)
26
+
27
+ ## License
28
+
29
+ - [Eclipse Public License 2.0](http://www.eclipse.org/legal/epl-2.0/)
30
+ - [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
31
+
32
+ ## Trademark
33
+
34
+ "Theia" is a trademark of the Eclipse Foundation
35
+ <https://www.eclipse.org/theia>
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@theia/secondary-window",
3
- "version": "1.53.0-next.55+d1a989a68c",
3
+ "version": "1.53.0-next.64+23b351d26",
4
4
  "description": "Theia - Secondary Window Extension",
5
5
  "dependencies": {
6
- "@theia/core": "1.53.0-next.55+d1a989a68c",
6
+ "@theia/core": "1.53.0-next.64+23b351d26",
7
7
  "tslib": "^2.6.2"
8
8
  },
9
9
  "publishConfig": {
@@ -41,5 +41,5 @@
41
41
  "devDependencies": {
42
42
  "@theia/ext-scripts": "1.53.0"
43
43
  },
44
- "gitHead": "d1a989a68c1b5ec1f9098e9126653c6346844769"
44
+ "gitHead": "23b351d26346a2b5d6aca3ee81fba59c056132f7"
45
45
  }
@@ -1,50 +1,50 @@
1
- // *****************************************************************************
2
- // Copyright (C) 2022 STMicroelectronics, Ericsson, ARM, EclipseSource 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 { inject, injectable } from '@theia/core/shared/inversify';
18
- import { CommandRegistry, CommandContribution, Command } from '@theia/core/lib/common/command';
19
- import { codicon, ExtractableWidget } from '@theia/core/lib/browser/widgets';
20
- import { TabBarToolbarContribution, TabBarToolbarRegistry } from '@theia/core/lib/browser/shell/tab-bar-toolbar';
21
- import { SecondaryWindowHandler } from '@theia/core/lib/browser/secondary-window-handler';
22
-
23
- export const EXTRACT_WIDGET = Command.toLocalizedCommand({
24
- id: 'extract-widget',
25
- label: 'Move View to Secondary Window'
26
- }, 'theia/secondary-window/extract-widget');
27
-
28
- /** Contributes the widget extraction command and registers it in the toolbar of extractable widgets. */
29
- @injectable()
30
- export class SecondaryWindowContribution implements CommandContribution, TabBarToolbarContribution {
31
-
32
- @inject(SecondaryWindowHandler)
33
- protected readonly secondaryWindowHandler: SecondaryWindowHandler;
34
-
35
- registerCommands(commands: CommandRegistry): void {
36
- commands.registerCommand(EXTRACT_WIDGET, {
37
- execute: async widget => this.secondaryWindowHandler.moveWidgetToSecondaryWindow(widget),
38
- isVisible: widget => ExtractableWidget.is(widget),
39
- isEnabled: widget => ExtractableWidget.is(widget)
40
- });
41
- }
42
-
43
- registerToolbarItems(registry: TabBarToolbarRegistry): void {
44
- registry.registerItem({
45
- id: EXTRACT_WIDGET.id,
46
- command: EXTRACT_WIDGET.id,
47
- icon: codicon('window'),
48
- });
49
- }
50
- }
1
+ // *****************************************************************************
2
+ // Copyright (C) 2022 STMicroelectronics, Ericsson, ARM, EclipseSource 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 { inject, injectable } from '@theia/core/shared/inversify';
18
+ import { CommandRegistry, CommandContribution, Command } from '@theia/core/lib/common/command';
19
+ import { codicon, ExtractableWidget } from '@theia/core/lib/browser/widgets';
20
+ import { TabBarToolbarContribution, TabBarToolbarRegistry } from '@theia/core/lib/browser/shell/tab-bar-toolbar';
21
+ import { SecondaryWindowHandler } from '@theia/core/lib/browser/secondary-window-handler';
22
+
23
+ export const EXTRACT_WIDGET = Command.toLocalizedCommand({
24
+ id: 'extract-widget',
25
+ label: 'Move View to Secondary Window'
26
+ }, 'theia/secondary-window/extract-widget');
27
+
28
+ /** Contributes the widget extraction command and registers it in the toolbar of extractable widgets. */
29
+ @injectable()
30
+ export class SecondaryWindowContribution implements CommandContribution, TabBarToolbarContribution {
31
+
32
+ @inject(SecondaryWindowHandler)
33
+ protected readonly secondaryWindowHandler: SecondaryWindowHandler;
34
+
35
+ registerCommands(commands: CommandRegistry): void {
36
+ commands.registerCommand(EXTRACT_WIDGET, {
37
+ execute: async widget => this.secondaryWindowHandler.moveWidgetToSecondaryWindow(widget),
38
+ isVisible: widget => ExtractableWidget.is(widget),
39
+ isEnabled: widget => ExtractableWidget.is(widget)
40
+ });
41
+ }
42
+
43
+ registerToolbarItems(registry: TabBarToolbarRegistry): void {
44
+ registry.registerItem({
45
+ id: EXTRACT_WIDGET.id,
46
+ command: EXTRACT_WIDGET.id,
47
+ icon: codicon('window'),
48
+ });
49
+ }
50
+ }
@@ -1,27 +1,27 @@
1
- // *****************************************************************************
2
- // Copyright (C) 2022 STMicroelectronics, Ericsson, ARM, EclipseSource 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 { ContainerModule } from '@theia/core/shared/inversify';
18
- import { SecondaryWindowContribution } from './secondary-window-frontend-contribution';
19
- import { CommandContribution } from '@theia/core/lib/common/command';
20
- import { TabBarToolbarContribution } from '@theia/core/lib/browser/shell/tab-bar-toolbar';
21
-
22
- export default new ContainerModule(bind => {
23
- bind(SecondaryWindowContribution).toSelf().inSingletonScope();
24
- bind(CommandContribution).toService(SecondaryWindowContribution);
25
- bind(TabBarToolbarContribution).toService(SecondaryWindowContribution);
26
- });
27
-
1
+ // *****************************************************************************
2
+ // Copyright (C) 2022 STMicroelectronics, Ericsson, ARM, EclipseSource 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 { ContainerModule } from '@theia/core/shared/inversify';
18
+ import { SecondaryWindowContribution } from './secondary-window-frontend-contribution';
19
+ import { CommandContribution } from '@theia/core/lib/common/command';
20
+ import { TabBarToolbarContribution } from '@theia/core/lib/browser/shell/tab-bar-toolbar';
21
+
22
+ export default new ContainerModule(bind => {
23
+ bind(SecondaryWindowContribution).toSelf().inSingletonScope();
24
+ bind(CommandContribution).toService(SecondaryWindowContribution);
25
+ bind(TabBarToolbarContribution).toService(SecondaryWindowContribution);
26
+ });
27
+
@@ -1,19 +1,19 @@
1
- // *****************************************************************************
2
- // Copyright (C) 2022 STMicroelectronics, Ericsson, ARM, EclipseSource 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
- describe('secondary-window package', () => {
18
- it('supports code coverage statistics', () => true);
19
- });
1
+ // *****************************************************************************
2
+ // Copyright (C) 2022 STMicroelectronics, Ericsson, ARM, EclipseSource 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
+ describe('secondary-window package', () => {
18
+ it('supports code coverage statistics', () => true);
19
+ });