@theia/memory-inspector 1.45.1 → 1.46.0-next.72
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 +71 -71
- package/lib/browser/diff-widget/memory-diff-options-widget.d.ts +36 -36
- package/lib/browser/diff-widget/memory-diff-options-widget.js +132 -132
- package/lib/browser/diff-widget/memory-diff-select-widget.d.ts +50 -50
- package/lib/browser/diff-widget/memory-diff-select-widget.js +137 -137
- package/lib/browser/diff-widget/memory-diff-table-widget.d.ts +77 -77
- package/lib/browser/diff-widget/memory-diff-table-widget.js +314 -314
- package/lib/browser/diff-widget/memory-diff-widget-types.d.ts +41 -41
- package/lib/browser/diff-widget/memory-diff-widget-types.js +23 -23
- package/lib/browser/editable-widget/memory-editable-table-widget.d.ts +64 -64
- package/lib/browser/editable-widget/memory-editable-table-widget.js +324 -324
- package/lib/browser/memory-inspector-frontend-contribution.d.ts +46 -46
- package/lib/browser/memory-inspector-frontend-contribution.js +291 -291
- package/lib/browser/memory-inspector-frontend-module.d.ts +21 -21
- package/lib/browser/memory-inspector-frontend-module.js +87 -87
- package/lib/browser/memory-provider/cdt-gdb-memory-provider.d.ts +35 -35
- package/lib/browser/memory-provider/cdt-gdb-memory-provider.js +136 -136
- package/lib/browser/memory-provider/memory-provider-service.d.ts +36 -36
- package/lib/browser/memory-provider/memory-provider-service.js +101 -101
- package/lib/browser/memory-provider/memory-provider.d.ts +65 -65
- package/lib/browser/memory-provider/memory-provider.js +96 -96
- package/lib/browser/memory-provider/memory-provider.spec.d.ts +16 -16
- package/lib/browser/memory-provider/memory-provider.spec.js +23 -23
- package/lib/browser/memory-widget/memory-options-widget.d.ts +136 -136
- package/lib/browser/memory-widget/memory-options-widget.js +564 -564
- package/lib/browser/memory-widget/memory-table-widget.d.ts +146 -146
- package/lib/browser/memory-widget/memory-table-widget.js +487 -487
- package/lib/browser/memory-widget/memory-widget.d.ts +33 -33
- package/lib/browser/memory-widget/memory-widget.js +112 -112
- package/lib/browser/register-widget/register-filter-service.d.ts +42 -42
- package/lib/browser/register-widget/register-filter-service.js +81 -81
- package/lib/browser/register-widget/register-options-widget.d.ts +81 -81
- package/lib/browser/register-widget/register-options-widget.js +338 -338
- package/lib/browser/register-widget/register-table-widget.d.ts +77 -77
- package/lib/browser/register-widget/register-table-widget.js +230 -230
- package/lib/browser/register-widget/register-widget-types.d.ts +29 -29
- package/lib/browser/register-widget/register-widget-types.js +35 -35
- package/lib/browser/utils/memory-commands.d.ts +27 -27
- package/lib/browser/utils/memory-commands.js +67 -67
- package/lib/browser/utils/memory-hover-renderer.d.ts +33 -33
- package/lib/browser/utils/memory-hover-renderer.js +111 -111
- package/lib/browser/utils/memory-recents.d.ts +27 -27
- package/lib/browser/utils/memory-recents.js +52 -52
- package/lib/browser/utils/memory-widget-components.d.ts +58 -58
- package/lib/browser/utils/memory-widget-components.js +69 -69
- package/lib/browser/utils/memory-widget-manager.d.ts +50 -50
- package/lib/browser/utils/memory-widget-manager.js +182 -182
- package/lib/browser/utils/memory-widget-utils.d.ts +113 -113
- package/lib/browser/utils/memory-widget-utils.js +42 -42
- package/lib/browser/utils/memory-widget-variable-utils.d.ts +57 -57
- package/lib/browser/utils/memory-widget-variable-utils.js +143 -143
- package/lib/browser/utils/multi-select-bar.d.ts +31 -31
- package/lib/browser/utils/multi-select-bar.js +34 -34
- package/lib/browser/wrapper-widgets/memory-dock-panel.d.ts +24 -24
- package/lib/browser/wrapper-widgets/memory-dock-panel.js +48 -48
- package/lib/browser/wrapper-widgets/memory-dockpanel-placeholder-widget.d.ts +23 -23
- package/lib/browser/wrapper-widgets/memory-dockpanel-placeholder-widget.js +57 -57
- package/lib/browser/wrapper-widgets/memory-layout-widget.d.ts +51 -51
- package/lib/browser/wrapper-widgets/memory-layout-widget.js +191 -191
- package/lib/common/util.d.ts +21 -21
- package/lib/common/util.js +30 -30
- package/lib/common/utils.spec.d.ts +16 -16
- package/lib/common/utils.spec.js +45 -45
- package/package.json +4 -4
- package/src/browser/diff-widget/memory-diff-options-widget.tsx +152 -152
- package/src/browser/diff-widget/memory-diff-select-widget.tsx +163 -163
- package/src/browser/diff-widget/memory-diff-table-widget.tsx +366 -366
- package/src/browser/diff-widget/memory-diff-widget-types.ts +45 -45
- package/src/browser/editable-widget/memory-editable-table-widget.tsx +359 -359
- package/src/browser/memory-inspector-frontend-contribution.ts +301 -301
- package/src/browser/memory-inspector-frontend-module.ts +118 -118
- package/src/browser/memory-provider/cdt-gdb-memory-provider.ts +132 -132
- package/src/browser/memory-provider/memory-provider-service.ts +86 -86
- package/src/browser/memory-provider/memory-provider.spec.ts +23 -23
- package/src/browser/memory-provider/memory-provider.ts +119 -119
- package/src/browser/memory-widget/memory-options-widget.tsx +738 -738
- package/src/browser/memory-widget/memory-table-widget.tsx +625 -625
- package/src/browser/memory-widget/memory-widget.ts +114 -114
- package/src/browser/register-widget/register-filter-service.ts +76 -76
- package/src/browser/register-widget/register-options-widget.tsx +393 -393
- package/src/browser/register-widget/register-table-widget.tsx +276 -276
- package/src/browser/register-widget/register-widget-types.ts +45 -45
- package/src/browser/register-widget/register-widget.css +34 -34
- package/src/browser/style/index.css +746 -746
- package/src/browser/style/memory-lock.svg +21 -21
- package/src/browser/style/memory-view.svg +20 -20
- package/src/browser/style/register-lock.svg +29 -29
- package/src/browser/style/register-view.svg +28 -28
- package/src/browser/utils/memory-commands.ts +76 -76
- package/src/browser/utils/memory-hover-renderer.ts +113 -113
- package/src/browser/utils/memory-recents.ts +58 -58
- package/src/browser/utils/memory-widget-components.tsx +193 -193
- package/src/browser/utils/memory-widget-manager.ts +179 -179
- package/src/browser/utils/memory-widget-utils.tsx +132 -132
- package/src/browser/utils/memory-widget-variable-utils.ts +170 -170
- package/src/browser/utils/multi-select-bar.css +61 -61
- package/src/browser/utils/multi-select-bar.tsx +75 -75
- package/src/browser/wrapper-widgets/memory-dock-panel.ts +51 -51
- package/src/browser/wrapper-widgets/memory-dockpanel-placeholder-widget.tsx +38 -38
- package/src/browser/wrapper-widgets/memory-layout-widget.tsx +167 -167
- package/src/common/util.ts +28 -28
- package/src/common/utils.spec.ts +52 -52
|
@@ -1,34 +1,34 @@
|
|
|
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-only 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(): void;
|
|
31
|
-
protected doInit(): Promise<void>;
|
|
32
|
-
protected onActivateRequest(): void;
|
|
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-only 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(): void;
|
|
31
|
+
protected doInit(): Promise<void>;
|
|
32
|
+
protected onActivateRequest(): void;
|
|
33
|
+
}
|
|
34
34
|
//# sourceMappingURL=memory-widget.d.ts.map
|
|
@@ -1,113 +1,113 @@
|
|
|
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-only 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
|
-
init() {
|
|
62
|
-
this.doInit();
|
|
63
|
-
}
|
|
64
|
-
async doInit() {
|
|
65
|
-
this.id = MemoryWidget_1.getIdentifier(this.memoryWidgetOptions.identifier.toString());
|
|
66
|
-
this.addClass(MemoryWidget_1.ID);
|
|
67
|
-
this.title.label = this.optionsWidget.title.label;
|
|
68
|
-
this.title.caption = this.optionsWidget.title.caption;
|
|
69
|
-
this.title.iconClass = this.optionsWidget.title.iconClass;
|
|
70
|
-
this.title.closable = this.optionsWidget.title.closable;
|
|
71
|
-
const layout = this.layout = new browser_1.PanelLayout();
|
|
72
|
-
layout.addWidget(this.optionsWidget);
|
|
73
|
-
layout.addWidget(this.tableWidget);
|
|
74
|
-
this.toDispose.pushAll([
|
|
75
|
-
this.layout,
|
|
76
|
-
this.optionsWidget,
|
|
77
|
-
this.tableWidget,
|
|
78
|
-
]);
|
|
79
|
-
this.optionsWidget.title.changed.connect(title => {
|
|
80
|
-
this.title.label = title.label;
|
|
81
|
-
this.title.caption = title.caption;
|
|
82
|
-
this.title.iconClass = title.iconClass;
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
onActivateRequest() {
|
|
86
|
-
this.optionsWidget.activate();
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
MemoryWidget.ID = 'memory-view-wrapper';
|
|
90
|
-
MemoryWidget.LABEL = core_1.nls.localize('theia/memory-inspector/memoryTitle', 'Memory');
|
|
91
|
-
__decorate([
|
|
92
|
-
(0, inversify_1.inject)(memory_widget_utils_1.MemoryWidgetOptions),
|
|
93
|
-
__metadata("design:type", Object)
|
|
94
|
-
], MemoryWidget.prototype, "memoryWidgetOptions", void 0);
|
|
95
|
-
__decorate([
|
|
96
|
-
(0, inversify_1.inject)(memory_options_widget_1.MemoryOptionsWidget),
|
|
97
|
-
__metadata("design:type", Object)
|
|
98
|
-
], MemoryWidget.prototype, "optionsWidget", void 0);
|
|
99
|
-
__decorate([
|
|
100
|
-
(0, inversify_1.inject)(memory_table_widget_1.MemoryTableWidget),
|
|
101
|
-
__metadata("design:type", Object)
|
|
102
|
-
], MemoryWidget.prototype, "tableWidget", void 0);
|
|
103
|
-
__decorate([
|
|
104
|
-
(0, inversify_1.postConstruct)(),
|
|
105
|
-
__metadata("design:type", Function),
|
|
106
|
-
__metadata("design:paramtypes", []),
|
|
107
|
-
__metadata("design:returntype", void 0)
|
|
108
|
-
], MemoryWidget.prototype, "init", null);
|
|
109
|
-
MemoryWidget = MemoryWidget_1 = __decorate([
|
|
110
|
-
(0, inversify_1.injectable)()
|
|
111
|
-
], MemoryWidget);
|
|
112
|
-
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-only 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
|
+
init() {
|
|
62
|
+
this.doInit();
|
|
63
|
+
}
|
|
64
|
+
async doInit() {
|
|
65
|
+
this.id = MemoryWidget_1.getIdentifier(this.memoryWidgetOptions.identifier.toString());
|
|
66
|
+
this.addClass(MemoryWidget_1.ID);
|
|
67
|
+
this.title.label = this.optionsWidget.title.label;
|
|
68
|
+
this.title.caption = this.optionsWidget.title.caption;
|
|
69
|
+
this.title.iconClass = this.optionsWidget.title.iconClass;
|
|
70
|
+
this.title.closable = this.optionsWidget.title.closable;
|
|
71
|
+
const layout = this.layout = new browser_1.PanelLayout();
|
|
72
|
+
layout.addWidget(this.optionsWidget);
|
|
73
|
+
layout.addWidget(this.tableWidget);
|
|
74
|
+
this.toDispose.pushAll([
|
|
75
|
+
this.layout,
|
|
76
|
+
this.optionsWidget,
|
|
77
|
+
this.tableWidget,
|
|
78
|
+
]);
|
|
79
|
+
this.optionsWidget.title.changed.connect(title => {
|
|
80
|
+
this.title.label = title.label;
|
|
81
|
+
this.title.caption = title.caption;
|
|
82
|
+
this.title.iconClass = title.iconClass;
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
onActivateRequest() {
|
|
86
|
+
this.optionsWidget.activate();
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
MemoryWidget.ID = 'memory-view-wrapper';
|
|
90
|
+
MemoryWidget.LABEL = core_1.nls.localize('theia/memory-inspector/memoryTitle', 'Memory');
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, inversify_1.inject)(memory_widget_utils_1.MemoryWidgetOptions),
|
|
93
|
+
__metadata("design:type", Object)
|
|
94
|
+
], MemoryWidget.prototype, "memoryWidgetOptions", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, inversify_1.inject)(memory_options_widget_1.MemoryOptionsWidget),
|
|
97
|
+
__metadata("design:type", Object)
|
|
98
|
+
], MemoryWidget.prototype, "optionsWidget", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, inversify_1.inject)(memory_table_widget_1.MemoryTableWidget),
|
|
101
|
+
__metadata("design:type", Object)
|
|
102
|
+
], MemoryWidget.prototype, "tableWidget", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, inversify_1.postConstruct)(),
|
|
105
|
+
__metadata("design:type", Function),
|
|
106
|
+
__metadata("design:paramtypes", []),
|
|
107
|
+
__metadata("design:returntype", void 0)
|
|
108
|
+
], MemoryWidget.prototype, "init", null);
|
|
109
|
+
MemoryWidget = MemoryWidget_1 = __decorate([
|
|
110
|
+
(0, inversify_1.injectable)()
|
|
111
|
+
], MemoryWidget);
|
|
112
|
+
exports.MemoryWidget = MemoryWidget;
|
|
113
113
|
//# 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-only 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(): 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-only 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(): 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,82 +1,82 @@
|
|
|
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-only 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
|
-
}
|
|
54
|
-
setFilter(filterLabel) {
|
|
55
|
-
if (this.filters.has(filterLabel)) {
|
|
56
|
-
this.currentFilter = filterLabel;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
shouldDisplayRegister(registerName) {
|
|
60
|
-
const currentFilter = this.filters.get(this.currentFilter);
|
|
61
|
-
return !currentFilter || currentFilter.has(registerName);
|
|
62
|
-
}
|
|
63
|
-
currentFilterRegisters() {
|
|
64
|
-
const currentFilterRegisters = this.filters.get(this.currentFilter);
|
|
65
|
-
return currentFilterRegisters ? Array.from(currentFilterRegisters) : [];
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
__decorate([
|
|
69
|
-
(0, inversify_1.inject)(exports.RegisterFilterServiceOptions),
|
|
70
|
-
__metadata("design:type", Object)
|
|
71
|
-
], RegisterFilterServiceImpl.prototype, "options", void 0);
|
|
72
|
-
__decorate([
|
|
73
|
-
(0, inversify_1.postConstruct)(),
|
|
74
|
-
__metadata("design:type", Function),
|
|
75
|
-
__metadata("design:paramtypes", []),
|
|
76
|
-
__metadata("design:returntype", void 0)
|
|
77
|
-
], RegisterFilterServiceImpl.prototype, "init", null);
|
|
78
|
-
RegisterFilterServiceImpl = __decorate([
|
|
79
|
-
(0, inversify_1.injectable)()
|
|
80
|
-
], RegisterFilterServiceImpl);
|
|
81
|
-
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-only 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
|
+
}
|
|
54
|
+
setFilter(filterLabel) {
|
|
55
|
+
if (this.filters.has(filterLabel)) {
|
|
56
|
+
this.currentFilter = filterLabel;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
shouldDisplayRegister(registerName) {
|
|
60
|
+
const currentFilter = this.filters.get(this.currentFilter);
|
|
61
|
+
return !currentFilter || currentFilter.has(registerName);
|
|
62
|
+
}
|
|
63
|
+
currentFilterRegisters() {
|
|
64
|
+
const currentFilterRegisters = this.filters.get(this.currentFilter);
|
|
65
|
+
return currentFilterRegisters ? Array.from(currentFilterRegisters) : [];
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, inversify_1.inject)(exports.RegisterFilterServiceOptions),
|
|
70
|
+
__metadata("design:type", Object)
|
|
71
|
+
], RegisterFilterServiceImpl.prototype, "options", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, inversify_1.postConstruct)(),
|
|
74
|
+
__metadata("design:type", Function),
|
|
75
|
+
__metadata("design:paramtypes", []),
|
|
76
|
+
__metadata("design:returntype", void 0)
|
|
77
|
+
], RegisterFilterServiceImpl.prototype, "init", null);
|
|
78
|
+
RegisterFilterServiceImpl = __decorate([
|
|
79
|
+
(0, inversify_1.injectable)()
|
|
80
|
+
], RegisterFilterServiceImpl);
|
|
81
|
+
exports.RegisterFilterServiceImpl = RegisterFilterServiceImpl;
|
|
82
82
|
//# sourceMappingURL=register-filter-service.js.map
|