@theia/memory-inspector 1.34.3 → 1.34.4

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.
Files changed (103) hide show
  1. package/LICENSE +641 -641
  2. package/README.md +71 -71
  3. package/lib/browser/diff-widget/memory-diff-options-widget.d.ts +36 -36
  4. package/lib/browser/diff-widget/memory-diff-options-widget.js +129 -129
  5. package/lib/browser/diff-widget/memory-diff-select-widget.d.ts +50 -50
  6. package/lib/browser/diff-widget/memory-diff-select-widget.js +137 -137
  7. package/lib/browser/diff-widget/memory-diff-table-widget.d.ts +77 -77
  8. package/lib/browser/diff-widget/memory-diff-table-widget.js +314 -314
  9. package/lib/browser/diff-widget/memory-diff-widget-types.d.ts +41 -41
  10. package/lib/browser/diff-widget/memory-diff-widget-types.js +23 -23
  11. package/lib/browser/editable-widget/memory-editable-table-widget.d.ts +64 -64
  12. package/lib/browser/editable-widget/memory-editable-table-widget.js +329 -329
  13. package/lib/browser/memory-inspector-frontend-contribution.d.ts +46 -46
  14. package/lib/browser/memory-inspector-frontend-contribution.js +291 -291
  15. package/lib/browser/memory-inspector-frontend-module.d.ts +21 -21
  16. package/lib/browser/memory-inspector-frontend-module.js +87 -87
  17. package/lib/browser/memory-provider/cdt-gdb-memory-provider.d.ts +35 -35
  18. package/lib/browser/memory-provider/cdt-gdb-memory-provider.js +136 -136
  19. package/lib/browser/memory-provider/memory-provider-service.d.ts +36 -36
  20. package/lib/browser/memory-provider/memory-provider-service.js +101 -101
  21. package/lib/browser/memory-provider/memory-provider.d.ts +65 -65
  22. package/lib/browser/memory-provider/memory-provider.js +96 -96
  23. package/lib/browser/memory-provider/memory-provider.spec.d.ts +16 -16
  24. package/lib/browser/memory-provider/memory-provider.spec.js +23 -23
  25. package/lib/browser/memory-widget/memory-options-widget.d.ts +136 -136
  26. package/lib/browser/memory-widget/memory-options-widget.js +561 -561
  27. package/lib/browser/memory-widget/memory-table-widget.d.ts +145 -145
  28. package/lib/browser/memory-widget/memory-table-widget.js +484 -484
  29. package/lib/browser/memory-widget/memory-widget.d.ts +32 -32
  30. package/lib/browser/memory-widget/memory-widget.js +109 -109
  31. package/lib/browser/register-widget/register-filter-service.d.ts +42 -42
  32. package/lib/browser/register-widget/register-filter-service.js +82 -82
  33. package/lib/browser/register-widget/register-options-widget.d.ts +81 -81
  34. package/lib/browser/register-widget/register-options-widget.js +343 -343
  35. package/lib/browser/register-widget/register-table-widget.d.ts +77 -77
  36. package/lib/browser/register-widget/register-table-widget.js +236 -236
  37. package/lib/browser/register-widget/register-widget-types.d.ts +29 -29
  38. package/lib/browser/register-widget/register-widget-types.js +35 -35
  39. package/lib/browser/utils/memory-commands.d.ts +27 -27
  40. package/lib/browser/utils/memory-commands.js +67 -67
  41. package/lib/browser/utils/memory-hover-renderer.d.ts +33 -33
  42. package/lib/browser/utils/memory-hover-renderer.js +111 -111
  43. package/lib/browser/utils/memory-recents.d.ts +27 -27
  44. package/lib/browser/utils/memory-recents.js +52 -52
  45. package/lib/browser/utils/memory-widget-components.d.ts +58 -58
  46. package/lib/browser/utils/memory-widget-components.js +69 -69
  47. package/lib/browser/utils/memory-widget-manager.d.ts +50 -50
  48. package/lib/browser/utils/memory-widget-manager.js +182 -182
  49. package/lib/browser/utils/memory-widget-utils.d.ts +113 -113
  50. package/lib/browser/utils/memory-widget-utils.js +42 -42
  51. package/lib/browser/utils/memory-widget-variable-utils.d.ts +57 -57
  52. package/lib/browser/utils/memory-widget-variable-utils.js +143 -143
  53. package/lib/browser/utils/multi-select-bar.d.ts +31 -31
  54. package/lib/browser/utils/multi-select-bar.js +34 -34
  55. package/lib/browser/wrapper-widgets/memory-dock-panel.d.ts +24 -24
  56. package/lib/browser/wrapper-widgets/memory-dock-panel.js +48 -48
  57. package/lib/browser/wrapper-widgets/memory-dockpanel-placeholder-widget.d.ts +23 -23
  58. package/lib/browser/wrapper-widgets/memory-dockpanel-placeholder-widget.js +57 -57
  59. package/lib/browser/wrapper-widgets/memory-layout-widget.d.ts +50 -50
  60. package/lib/browser/wrapper-widgets/memory-layout-widget.js +188 -188
  61. package/lib/common/util.d.ts +21 -21
  62. package/lib/common/util.js +30 -30
  63. package/lib/common/utils.spec.d.ts +16 -16
  64. package/lib/common/utils.spec.js +45 -45
  65. package/package.json +4 -4
  66. package/src/browser/diff-widget/memory-diff-options-widget.tsx +152 -152
  67. package/src/browser/diff-widget/memory-diff-select-widget.tsx +163 -163
  68. package/src/browser/diff-widget/memory-diff-table-widget.tsx +366 -366
  69. package/src/browser/diff-widget/memory-diff-widget-types.ts +45 -45
  70. package/src/browser/editable-widget/memory-editable-table-widget.tsx +360 -360
  71. package/src/browser/memory-inspector-frontend-contribution.ts +301 -301
  72. package/src/browser/memory-inspector-frontend-module.ts +118 -118
  73. package/src/browser/memory-provider/cdt-gdb-memory-provider.ts +132 -132
  74. package/src/browser/memory-provider/memory-provider-service.ts +86 -86
  75. package/src/browser/memory-provider/memory-provider.spec.ts +23 -23
  76. package/src/browser/memory-provider/memory-provider.ts +119 -119
  77. package/src/browser/memory-widget/memory-options-widget.tsx +738 -738
  78. package/src/browser/memory-widget/memory-table-widget.tsx +621 -621
  79. package/src/browser/memory-widget/memory-widget.ts +110 -110
  80. package/src/browser/register-widget/register-filter-service.ts +77 -77
  81. package/src/browser/register-widget/register-options-widget.tsx +393 -393
  82. package/src/browser/register-widget/register-table-widget.tsx +277 -277
  83. package/src/browser/register-widget/register-widget-types.ts +45 -45
  84. package/src/browser/register-widget/register-widget.css +34 -34
  85. package/src/browser/style/index.css +750 -750
  86. package/src/browser/style/memory-lock.svg +21 -21
  87. package/src/browser/style/memory-view.svg +20 -20
  88. package/src/browser/style/register-lock.svg +29 -29
  89. package/src/browser/style/register-view.svg +28 -28
  90. package/src/browser/utils/memory-commands.ts +76 -76
  91. package/src/browser/utils/memory-hover-renderer.ts +113 -113
  92. package/src/browser/utils/memory-recents.ts +58 -58
  93. package/src/browser/utils/memory-widget-components.tsx +193 -193
  94. package/src/browser/utils/memory-widget-manager.ts +179 -179
  95. package/src/browser/utils/memory-widget-utils.tsx +132 -132
  96. package/src/browser/utils/memory-widget-variable-utils.ts +170 -170
  97. package/src/browser/utils/multi-select-bar.css +62 -62
  98. package/src/browser/utils/multi-select-bar.tsx +75 -75
  99. package/src/browser/wrapper-widgets/memory-dock-panel.ts +51 -51
  100. package/src/browser/wrapper-widgets/memory-dockpanel-placeholder-widget.tsx +38 -38
  101. package/src/browser/wrapper-widgets/memory-layout-widget.tsx +163 -163
  102. package/src/common/util.ts +28 -28
  103. package/src/common/utils.spec.ts +52 -52
@@ -1,33 +1,33 @@
1
- /********************************************************************************
2
- * Copyright (C) 2021 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 WITH Classpath-exception-2.0
15
- ********************************************************************************/
16
- import { BaseWidget } from '@theia/core/lib/browser';
17
- import { interfaces } from '@theia/core/shared/inversify';
18
- import { MemoryWidgetOptions } from '../utils/memory-widget-utils';
19
- import { MemoryOptionsWidget } from './memory-options-widget';
20
- import { MemoryTableWidget } from './memory-table-widget';
21
- export declare class MemoryWidget<O extends MemoryOptionsWidget = MemoryOptionsWidget, T extends MemoryTableWidget = MemoryTableWidget> extends BaseWidget {
22
- static readonly ID = "memory-view-wrapper";
23
- static readonly LABEL: string;
24
- protected readonly memoryWidgetOptions: MemoryWidgetOptions;
25
- readonly optionsWidget: O;
26
- readonly tableWidget: T;
27
- static createWidget<Options extends MemoryOptionsWidget = MemoryOptionsWidget, Table extends MemoryTableWidget = MemoryTableWidget>(parent: interfaces.Container, optionsWidget: interfaces.ServiceIdentifier<Options>, tableWidget: interfaces.ServiceIdentifier<Table>, optionSymbol?: interfaces.ServiceIdentifier<MemoryWidgetOptions>, options?: MemoryWidgetOptions): MemoryWidget<Options, Table>;
28
- static createContainer(parent: interfaces.Container, optionsWidget: interfaces.ServiceIdentifier<MemoryOptionsWidget>, tableWidget: interfaces.ServiceIdentifier<MemoryTableWidget>, optionSymbol?: interfaces.ServiceIdentifier<MemoryWidgetOptions | undefined>, options?: MemoryWidgetOptions): interfaces.Container;
29
- static getIdentifier(optionsWidgetID: string): string;
30
- protected init(): Promise<void>;
31
- protected onActivateRequest(): void;
32
- }
1
+ /********************************************************************************
2
+ * Copyright (C) 2021 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 WITH Classpath-exception-2.0
15
+ ********************************************************************************/
16
+ import { BaseWidget } from '@theia/core/lib/browser';
17
+ import { interfaces } from '@theia/core/shared/inversify';
18
+ import { MemoryWidgetOptions } from '../utils/memory-widget-utils';
19
+ import { MemoryOptionsWidget } from './memory-options-widget';
20
+ import { MemoryTableWidget } from './memory-table-widget';
21
+ export declare class MemoryWidget<O extends MemoryOptionsWidget = MemoryOptionsWidget, T extends MemoryTableWidget = MemoryTableWidget> extends BaseWidget {
22
+ static readonly ID = "memory-view-wrapper";
23
+ static readonly LABEL: string;
24
+ protected readonly memoryWidgetOptions: MemoryWidgetOptions;
25
+ readonly optionsWidget: O;
26
+ readonly tableWidget: T;
27
+ static createWidget<Options extends MemoryOptionsWidget = MemoryOptionsWidget, Table extends MemoryTableWidget = MemoryTableWidget>(parent: interfaces.Container, optionsWidget: interfaces.ServiceIdentifier<Options>, tableWidget: interfaces.ServiceIdentifier<Table>, optionSymbol?: interfaces.ServiceIdentifier<MemoryWidgetOptions>, options?: MemoryWidgetOptions): MemoryWidget<Options, Table>;
28
+ static createContainer(parent: interfaces.Container, optionsWidget: interfaces.ServiceIdentifier<MemoryOptionsWidget>, tableWidget: interfaces.ServiceIdentifier<MemoryTableWidget>, optionSymbol?: interfaces.ServiceIdentifier<MemoryWidgetOptions | undefined>, options?: MemoryWidgetOptions): interfaces.Container;
29
+ static getIdentifier(optionsWidgetID: string): string;
30
+ protected init(): Promise<void>;
31
+ protected onActivateRequest(): void;
32
+ }
33
33
  //# sourceMappingURL=memory-widget.d.ts.map
@@ -1,110 +1,110 @@
1
- "use strict";
2
- /********************************************************************************
3
- * Copyright (C) 2021 Ericsson and others.
4
- *
5
- * This program and the accompanying materials are made available under the
6
- * terms of the Eclipse Public License v. 2.0 which is available at
7
- * http://www.eclipse.org/legal/epl-2.0.
8
- *
9
- * This Source Code may also be made available under the following Secondary
10
- * Licenses when the conditions for such availability set forth in the Eclipse
11
- * Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- * with the GNU Classpath Exception which is available at
13
- * https://www.gnu.org/software/classpath/license.html.
14
- *
15
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
- ********************************************************************************/
17
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
18
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
21
- return c > 3 && r && Object.defineProperty(target, key, r), r;
22
- };
23
- var __metadata = (this && this.__metadata) || function (k, v) {
24
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
25
- };
26
- var MemoryWidget_1;
27
- Object.defineProperty(exports, "__esModule", { value: true });
28
- exports.MemoryWidget = void 0;
29
- const core_1 = require("@theia/core");
30
- const browser_1 = require("@theia/core/lib/browser");
31
- const inversify_1 = require("@theia/core/shared/inversify");
32
- const memory_widget_utils_1 = require("../utils/memory-widget-utils");
33
- const memory_options_widget_1 = require("./memory-options-widget");
34
- const memory_table_widget_1 = require("./memory-table-widget");
35
- let MemoryWidget = MemoryWidget_1 = class MemoryWidget extends browser_1.BaseWidget {
36
- static createWidget(parent, optionsWidget, tableWidget, optionSymbol = memory_widget_utils_1.MemoryWidgetOptions, options) {
37
- const child = MemoryWidget_1.createContainer(parent, optionsWidget, tableWidget, optionSymbol, options);
38
- return child.get(MemoryWidget_1);
39
- }
40
- static createContainer(parent, optionsWidget, tableWidget, optionSymbol = memory_widget_utils_1.MemoryWidgetOptions, options) {
41
- const child = new inversify_1.Container({ defaultScope: 'Singleton' });
42
- child.parent = parent;
43
- child.bind(optionsWidget).toSelf();
44
- child.bind(tableWidget).toSelf();
45
- child.bind(memory_widget_utils_1.MemoryWidgetOptions).toConstantValue(options);
46
- if (optionsWidget !== memory_options_widget_1.MemoryOptionsWidget) {
47
- child.bind(memory_options_widget_1.MemoryOptionsWidget).toService(optionsWidget);
48
- }
49
- if (tableWidget !== memory_table_widget_1.MemoryTableWidget) {
50
- child.bind(memory_table_widget_1.MemoryTableWidget).toService(tableWidget);
51
- }
52
- if (optionSymbol !== memory_widget_utils_1.MemoryWidgetOptions) {
53
- child.bind(optionSymbol).toConstantValue(options);
54
- }
55
- child.bind(MemoryWidget_1).toSelf();
56
- return child;
57
- }
58
- static getIdentifier(optionsWidgetID) {
59
- return `${MemoryWidget_1.ID}-${optionsWidgetID}`;
60
- }
61
- async init() {
62
- this.id = MemoryWidget_1.getIdentifier(this.memoryWidgetOptions.identifier.toString());
63
- this.addClass(MemoryWidget_1.ID);
64
- this.title.label = this.optionsWidget.title.label;
65
- this.title.caption = this.optionsWidget.title.caption;
66
- this.title.iconClass = this.optionsWidget.title.iconClass;
67
- this.title.closable = this.optionsWidget.title.closable;
68
- const layout = this.layout = new browser_1.PanelLayout();
69
- layout.addWidget(this.optionsWidget);
70
- layout.addWidget(this.tableWidget);
71
- this.toDispose.pushAll([
72
- this.layout,
73
- this.optionsWidget,
74
- this.tableWidget,
75
- ]);
76
- this.optionsWidget.title.changed.connect(title => {
77
- this.title.label = title.label;
78
- this.title.caption = title.caption;
79
- this.title.iconClass = title.iconClass;
80
- });
81
- }
82
- onActivateRequest() {
83
- this.optionsWidget.activate();
84
- }
85
- };
86
- MemoryWidget.ID = 'memory-view-wrapper';
87
- MemoryWidget.LABEL = core_1.nls.localize('theia/memory-inspector/memoryTitle', 'Memory');
88
- __decorate([
89
- (0, inversify_1.inject)(memory_widget_utils_1.MemoryWidgetOptions),
90
- __metadata("design:type", Object)
91
- ], MemoryWidget.prototype, "memoryWidgetOptions", void 0);
92
- __decorate([
93
- (0, inversify_1.inject)(memory_options_widget_1.MemoryOptionsWidget),
94
- __metadata("design:type", Object)
95
- ], MemoryWidget.prototype, "optionsWidget", void 0);
96
- __decorate([
97
- (0, inversify_1.inject)(memory_table_widget_1.MemoryTableWidget),
98
- __metadata("design:type", Object)
99
- ], MemoryWidget.prototype, "tableWidget", void 0);
100
- __decorate([
101
- (0, inversify_1.postConstruct)(),
102
- __metadata("design:type", Function),
103
- __metadata("design:paramtypes", []),
104
- __metadata("design:returntype", Promise)
105
- ], MemoryWidget.prototype, "init", null);
106
- MemoryWidget = MemoryWidget_1 = __decorate([
107
- (0, inversify_1.injectable)()
108
- ], MemoryWidget);
109
- exports.MemoryWidget = MemoryWidget;
1
+ "use strict";
2
+ /********************************************************************************
3
+ * Copyright (C) 2021 Ericsson and others.
4
+ *
5
+ * This program and the accompanying materials are made available under the
6
+ * terms of the Eclipse Public License v. 2.0 which is available at
7
+ * http://www.eclipse.org/legal/epl-2.0.
8
+ *
9
+ * This Source Code may also be made available under the following Secondary
10
+ * Licenses when the conditions for such availability set forth in the Eclipse
11
+ * Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ * with the GNU Classpath Exception which is available at
13
+ * https://www.gnu.org/software/classpath/license.html.
14
+ *
15
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
+ ********************************************************************************/
17
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
18
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
21
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
22
+ };
23
+ var __metadata = (this && this.__metadata) || function (k, v) {
24
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
25
+ };
26
+ var MemoryWidget_1;
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.MemoryWidget = void 0;
29
+ const core_1 = require("@theia/core");
30
+ const browser_1 = require("@theia/core/lib/browser");
31
+ const inversify_1 = require("@theia/core/shared/inversify");
32
+ const memory_widget_utils_1 = require("../utils/memory-widget-utils");
33
+ const memory_options_widget_1 = require("./memory-options-widget");
34
+ const memory_table_widget_1 = require("./memory-table-widget");
35
+ let MemoryWidget = MemoryWidget_1 = class MemoryWidget extends browser_1.BaseWidget {
36
+ static createWidget(parent, optionsWidget, tableWidget, optionSymbol = memory_widget_utils_1.MemoryWidgetOptions, options) {
37
+ const child = MemoryWidget_1.createContainer(parent, optionsWidget, tableWidget, optionSymbol, options);
38
+ return child.get(MemoryWidget_1);
39
+ }
40
+ static createContainer(parent, optionsWidget, tableWidget, optionSymbol = memory_widget_utils_1.MemoryWidgetOptions, options) {
41
+ const child = new inversify_1.Container({ defaultScope: 'Singleton' });
42
+ child.parent = parent;
43
+ child.bind(optionsWidget).toSelf();
44
+ child.bind(tableWidget).toSelf();
45
+ child.bind(memory_widget_utils_1.MemoryWidgetOptions).toConstantValue(options);
46
+ if (optionsWidget !== memory_options_widget_1.MemoryOptionsWidget) {
47
+ child.bind(memory_options_widget_1.MemoryOptionsWidget).toService(optionsWidget);
48
+ }
49
+ if (tableWidget !== memory_table_widget_1.MemoryTableWidget) {
50
+ child.bind(memory_table_widget_1.MemoryTableWidget).toService(tableWidget);
51
+ }
52
+ if (optionSymbol !== memory_widget_utils_1.MemoryWidgetOptions) {
53
+ child.bind(optionSymbol).toConstantValue(options);
54
+ }
55
+ child.bind(MemoryWidget_1).toSelf();
56
+ return child;
57
+ }
58
+ static getIdentifier(optionsWidgetID) {
59
+ return `${MemoryWidget_1.ID}-${optionsWidgetID}`;
60
+ }
61
+ async init() {
62
+ this.id = MemoryWidget_1.getIdentifier(this.memoryWidgetOptions.identifier.toString());
63
+ this.addClass(MemoryWidget_1.ID);
64
+ this.title.label = this.optionsWidget.title.label;
65
+ this.title.caption = this.optionsWidget.title.caption;
66
+ this.title.iconClass = this.optionsWidget.title.iconClass;
67
+ this.title.closable = this.optionsWidget.title.closable;
68
+ const layout = this.layout = new browser_1.PanelLayout();
69
+ layout.addWidget(this.optionsWidget);
70
+ layout.addWidget(this.tableWidget);
71
+ this.toDispose.pushAll([
72
+ this.layout,
73
+ this.optionsWidget,
74
+ this.tableWidget,
75
+ ]);
76
+ this.optionsWidget.title.changed.connect(title => {
77
+ this.title.label = title.label;
78
+ this.title.caption = title.caption;
79
+ this.title.iconClass = title.iconClass;
80
+ });
81
+ }
82
+ onActivateRequest() {
83
+ this.optionsWidget.activate();
84
+ }
85
+ };
86
+ MemoryWidget.ID = 'memory-view-wrapper';
87
+ MemoryWidget.LABEL = core_1.nls.localize('theia/memory-inspector/memoryTitle', 'Memory');
88
+ __decorate([
89
+ (0, inversify_1.inject)(memory_widget_utils_1.MemoryWidgetOptions),
90
+ __metadata("design:type", Object)
91
+ ], MemoryWidget.prototype, "memoryWidgetOptions", void 0);
92
+ __decorate([
93
+ (0, inversify_1.inject)(memory_options_widget_1.MemoryOptionsWidget),
94
+ __metadata("design:type", Object)
95
+ ], MemoryWidget.prototype, "optionsWidget", void 0);
96
+ __decorate([
97
+ (0, inversify_1.inject)(memory_table_widget_1.MemoryTableWidget),
98
+ __metadata("design:type", Object)
99
+ ], MemoryWidget.prototype, "tableWidget", void 0);
100
+ __decorate([
101
+ (0, inversify_1.postConstruct)(),
102
+ __metadata("design:type", Function),
103
+ __metadata("design:paramtypes", []),
104
+ __metadata("design:returntype", Promise)
105
+ ], MemoryWidget.prototype, "init", null);
106
+ MemoryWidget = MemoryWidget_1 = __decorate([
107
+ (0, inversify_1.injectable)()
108
+ ], MemoryWidget);
109
+ exports.MemoryWidget = MemoryWidget;
110
110
  //# sourceMappingURL=memory-widget.js.map
@@ -1,43 +1,43 @@
1
- /********************************************************************************
2
- * Copyright (C) 2021 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 WITH Classpath-exception-2.0
15
- ********************************************************************************/
16
- export declare enum AllOrCustom {
17
- All = "All",
18
- Custom = "Custom"
19
- }
20
- export declare const RegisterFilterService: unique symbol;
21
- export interface RegisterFilterService {
22
- currentFilterLabel: string;
23
- filterLabels: string[];
24
- setFilter(filterLabel: string): void;
25
- shouldDisplayRegister(registerName: string): boolean;
26
- currentFilterRegisters(): string[];
27
- }
28
- export declare const RegisterFilterServiceOptions: unique symbol;
29
- export interface RegisterFilterServiceOptions {
30
- [key: string]: string[];
31
- }
32
- export declare class RegisterFilterServiceImpl implements RegisterFilterService {
33
- protected readonly options: RegisterFilterServiceOptions;
34
- protected filters: Map<string, Set<string> | undefined>;
35
- protected currentFilter: string;
36
- get filterLabels(): string[];
37
- get currentFilterLabel(): string;
38
- protected init(): Promise<void>;
39
- setFilter(filterLabel: string): void;
40
- shouldDisplayRegister(registerName: string): boolean;
41
- currentFilterRegisters(): string[];
42
- }
1
+ /********************************************************************************
2
+ * Copyright (C) 2021 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 WITH Classpath-exception-2.0
15
+ ********************************************************************************/
16
+ export declare enum AllOrCustom {
17
+ All = "All",
18
+ Custom = "Custom"
19
+ }
20
+ export declare const RegisterFilterService: unique symbol;
21
+ export interface RegisterFilterService {
22
+ currentFilterLabel: string;
23
+ filterLabels: string[];
24
+ setFilter(filterLabel: string): void;
25
+ shouldDisplayRegister(registerName: string): boolean;
26
+ currentFilterRegisters(): string[];
27
+ }
28
+ export declare const RegisterFilterServiceOptions: unique symbol;
29
+ export interface RegisterFilterServiceOptions {
30
+ [key: string]: string[];
31
+ }
32
+ export declare class RegisterFilterServiceImpl implements RegisterFilterService {
33
+ protected readonly options: RegisterFilterServiceOptions;
34
+ protected filters: Map<string, Set<string> | undefined>;
35
+ protected currentFilter: string;
36
+ get filterLabels(): string[];
37
+ get currentFilterLabel(): string;
38
+ protected init(): Promise<void>;
39
+ setFilter(filterLabel: string): void;
40
+ shouldDisplayRegister(registerName: string): boolean;
41
+ currentFilterRegisters(): string[];
42
+ }
43
43
  //# sourceMappingURL=register-filter-service.d.ts.map
@@ -1,83 +1,83 @@
1
- "use strict";
2
- /********************************************************************************
3
- * Copyright (C) 2021 Ericsson and others.
4
- *
5
- * This program and the accompanying materials are made available under the
6
- * terms of the Eclipse Public License v. 2.0 which is available at
7
- * http://www.eclipse.org/legal/epl-2.0.
8
- *
9
- * This Source Code may also be made available under the following Secondary
10
- * Licenses when the conditions for such availability set forth in the Eclipse
11
- * Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- * with the GNU Classpath Exception which is available at
13
- * https://www.gnu.org/software/classpath/license.html.
14
- *
15
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
- ********************************************************************************/
17
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
18
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
21
- return c > 3 && r && Object.defineProperty(target, key, r), r;
22
- };
23
- var __metadata = (this && this.__metadata) || function (k, v) {
24
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
25
- };
26
- Object.defineProperty(exports, "__esModule", { value: true });
27
- exports.RegisterFilterServiceImpl = exports.RegisterFilterServiceOptions = exports.RegisterFilterService = exports.AllOrCustom = void 0;
28
- const inversify_1 = require("@theia/core/shared/inversify");
29
- var AllOrCustom;
30
- (function (AllOrCustom) {
31
- AllOrCustom["All"] = "All";
32
- AllOrCustom["Custom"] = "Custom";
33
- })(AllOrCustom = exports.AllOrCustom || (exports.AllOrCustom = {}));
34
- exports.RegisterFilterService = Symbol('RegisterFilterService');
35
- exports.RegisterFilterServiceOptions = Symbol('RegisterFilterServiceOptions');
36
- let RegisterFilterServiceImpl = class RegisterFilterServiceImpl {
37
- constructor() {
38
- this.filters = new Map();
39
- this.currentFilter = AllOrCustom.All;
40
- }
41
- get filterLabels() {
42
- return [...this.filters.keys()];
43
- }
44
- get currentFilterLabel() {
45
- return this.currentFilter;
46
- }
47
- init() {
48
- this.filters.set(AllOrCustom.All, undefined);
49
- this.filters.set(AllOrCustom.Custom, new Set());
50
- for (const [key, values] of Object.entries(this.options)) {
51
- this.filters.set(key, new Set(values));
52
- }
53
- return Promise.resolve();
54
- }
55
- setFilter(filterLabel) {
56
- if (this.filters.has(filterLabel)) {
57
- this.currentFilter = filterLabel;
58
- }
59
- }
60
- shouldDisplayRegister(registerName) {
61
- const currentFilter = this.filters.get(this.currentFilter);
62
- return !currentFilter || currentFilter.has(registerName);
63
- }
64
- currentFilterRegisters() {
65
- const currentFilterRegisters = this.filters.get(this.currentFilter);
66
- return currentFilterRegisters ? Array.from(currentFilterRegisters) : [];
67
- }
68
- };
69
- __decorate([
70
- (0, inversify_1.inject)(exports.RegisterFilterServiceOptions),
71
- __metadata("design:type", Object)
72
- ], RegisterFilterServiceImpl.prototype, "options", void 0);
73
- __decorate([
74
- (0, inversify_1.postConstruct)(),
75
- __metadata("design:type", Function),
76
- __metadata("design:paramtypes", []),
77
- __metadata("design:returntype", Promise)
78
- ], RegisterFilterServiceImpl.prototype, "init", null);
79
- RegisterFilterServiceImpl = __decorate([
80
- (0, inversify_1.injectable)()
81
- ], RegisterFilterServiceImpl);
82
- exports.RegisterFilterServiceImpl = RegisterFilterServiceImpl;
1
+ "use strict";
2
+ /********************************************************************************
3
+ * Copyright (C) 2021 Ericsson and others.
4
+ *
5
+ * This program and the accompanying materials are made available under the
6
+ * terms of the Eclipse Public License v. 2.0 which is available at
7
+ * http://www.eclipse.org/legal/epl-2.0.
8
+ *
9
+ * This Source Code may also be made available under the following Secondary
10
+ * Licenses when the conditions for such availability set forth in the Eclipse
11
+ * Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ * with the GNU Classpath Exception which is available at
13
+ * https://www.gnu.org/software/classpath/license.html.
14
+ *
15
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
+ ********************************************************************************/
17
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
18
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
21
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
22
+ };
23
+ var __metadata = (this && this.__metadata) || function (k, v) {
24
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
25
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.RegisterFilterServiceImpl = exports.RegisterFilterServiceOptions = exports.RegisterFilterService = exports.AllOrCustom = void 0;
28
+ const inversify_1 = require("@theia/core/shared/inversify");
29
+ var AllOrCustom;
30
+ (function (AllOrCustom) {
31
+ AllOrCustom["All"] = "All";
32
+ AllOrCustom["Custom"] = "Custom";
33
+ })(AllOrCustom = exports.AllOrCustom || (exports.AllOrCustom = {}));
34
+ exports.RegisterFilterService = Symbol('RegisterFilterService');
35
+ exports.RegisterFilterServiceOptions = Symbol('RegisterFilterServiceOptions');
36
+ let RegisterFilterServiceImpl = class RegisterFilterServiceImpl {
37
+ constructor() {
38
+ this.filters = new Map();
39
+ this.currentFilter = AllOrCustom.All;
40
+ }
41
+ get filterLabels() {
42
+ return [...this.filters.keys()];
43
+ }
44
+ get currentFilterLabel() {
45
+ return this.currentFilter;
46
+ }
47
+ init() {
48
+ this.filters.set(AllOrCustom.All, undefined);
49
+ this.filters.set(AllOrCustom.Custom, new Set());
50
+ for (const [key, values] of Object.entries(this.options)) {
51
+ this.filters.set(key, new Set(values));
52
+ }
53
+ return Promise.resolve();
54
+ }
55
+ setFilter(filterLabel) {
56
+ if (this.filters.has(filterLabel)) {
57
+ this.currentFilter = filterLabel;
58
+ }
59
+ }
60
+ shouldDisplayRegister(registerName) {
61
+ const currentFilter = this.filters.get(this.currentFilter);
62
+ return !currentFilter || currentFilter.has(registerName);
63
+ }
64
+ currentFilterRegisters() {
65
+ const currentFilterRegisters = this.filters.get(this.currentFilter);
66
+ return currentFilterRegisters ? Array.from(currentFilterRegisters) : [];
67
+ }
68
+ };
69
+ __decorate([
70
+ (0, inversify_1.inject)(exports.RegisterFilterServiceOptions),
71
+ __metadata("design:type", Object)
72
+ ], RegisterFilterServiceImpl.prototype, "options", void 0);
73
+ __decorate([
74
+ (0, inversify_1.postConstruct)(),
75
+ __metadata("design:type", Function),
76
+ __metadata("design:paramtypes", []),
77
+ __metadata("design:returntype", Promise)
78
+ ], RegisterFilterServiceImpl.prototype, "init", null);
79
+ RegisterFilterServiceImpl = __decorate([
80
+ (0, inversify_1.injectable)()
81
+ ], RegisterFilterServiceImpl);
82
+ exports.RegisterFilterServiceImpl = RegisterFilterServiceImpl;
83
83
  //# sourceMappingURL=register-filter-service.js.map