@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
package/README.md
CHANGED
|
@@ -1,71 +1,71 @@
|
|
|
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 - MEMORY-INSPECTOR EXTENSION</h2>
|
|
8
|
-
|
|
9
|
-
<hr />
|
|
10
|
-
|
|
11
|
-
</div>
|
|
12
|
-
|
|
13
|
-
## Description
|
|
14
|
-
|
|
15
|
-
This extension contributes a set of widgets for viewing memory in different ways.
|
|
16
|
-
|
|
17
|
-
## Requirements
|
|
18
|
-
|
|
19
|
-
This extension must be used in conjunction with a Debug Adapter that implements a `ReadMemoryRequest` handler or alternative custom request that returns memory data.
|
|
20
|
-
It has been tested against the [CDT-GDB Adapter](https://github.com/eclipse-cdt/cdt-gdb-adapter) used as the backend for the
|
|
21
|
-
[CDT-GDB VSCode](https://github.com/eclipse-cdt/cdt-gdb-vscode) plugin. This repository is configured to download that plugin as part of its build routine.
|
|
22
|
-
If you intend to use this extension with a different debug adapter, you may need to implement a custom
|
|
23
|
-
[`MemoryProvider`](./src/browser/memory-provider/memory-provider-service.ts) to handle any peculiarities of the requests and responses used by your adapter.
|
|
24
|
-
|
|
25
|
-
## Widgets
|
|
26
|
-
|
|
27
|
-
### Memory Widget
|
|
28
|
-
|
|
29
|
-
The basic [`MemoryWidget` class](./src/browser/memory-widget/memory-widget.ts) is a wrapper around two functional widgets, a `MemoryOptionsWidget` and
|
|
30
|
-
a`MemoryTableWidget`. The [`MemoryOptionsWidget`](./src/browser/memory-widget/memory-options-widget.tsx) is responsible for configuring the display
|
|
31
|
-
and fetching memory, and the [`MemoryTableWidget`](./src/browser/memory-widget/memory-table-widget.tsx) renders the memory according to the options
|
|
32
|
-
specified by the user in the `MemoryOptionsWidget`. The basic combination of these three classes offers variable highlighting, ascii display, and
|
|
33
|
-
dynamic updating in response to events from the debug session, as well as the option to lock the view to ignore changes from the session.
|
|
34
|
-
|
|
35
|
-
### Diff Widget
|
|
36
|
-
|
|
37
|
-
The [`MemoryDiffWidget`](./src/browser/diff-widget/memory-diff-widget-types.ts) is an elaboration of the `MemoryWidget` type that allows side-by-side
|
|
38
|
-
comparison of the contents of two `MemoryWidgets`.
|
|
39
|
-
|
|
40
|
-
### Register Widget
|
|
41
|
-
|
|
42
|
-
The [`RegisterWidget`](./src/browser/register-widget/register-widget-types.ts) offers functionality to view and
|
|
43
|
-
manipulate those values when using a debug adapter that reports register contents.
|
|
44
|
-
|
|
45
|
-
### Editable Widget
|
|
46
|
-
|
|
47
|
-
The [`MemoryEditableTableWidget`](./src/browser/editable-widget/memory-editable-table-widget.tsx) adds UI functionality to allow users to modify values in
|
|
48
|
-
the table display and send them to a backend that supports that operation.
|
|
49
|
-
|
|
50
|
-
## Using the Widgets
|
|
51
|
-
|
|
52
|
-
The widgets are created by the [`MemoryWidgetManager`](./src/browser/utils/memory-widget-manager.ts), and modifying the `createNewMemoryWidget()`
|
|
53
|
-
method of that service allows you to change what kind of widget is instantiated and under what circumstances. The widgets get memory through the
|
|
54
|
-
[`MemoryProviderService`](./src/browser/memory-provider/memory-provider-service.ts), which delegates to implementations `MemoryProvider` interface
|
|
55
|
-
that are bound as `MemoryProvider` contributions.
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
## Additional Information
|
|
59
|
-
|
|
60
|
-
- [API documentation for `@theia/getting-started`](https://eclipse-theia.github.io/theia/docs/next/modules/getting_started.html)
|
|
61
|
-
- [Theia - GitHub](https://github.com/eclipse-theia/theia)
|
|
62
|
-
- [Theia - Website](https://theia-ide.org/)
|
|
63
|
-
|
|
64
|
-
## License
|
|
65
|
-
|
|
66
|
-
- [Eclipse Public License 2.0](http://www.eclipse.org/legal/epl-2.0/)
|
|
67
|
-
- [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
|
|
68
|
-
|
|
69
|
-
## Trademark
|
|
70
|
-
"Theia" is a trademark of the Eclipse Foundation
|
|
71
|
-
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 - MEMORY-INSPECTOR EXTENSION</h2>
|
|
8
|
+
|
|
9
|
+
<hr />
|
|
10
|
+
|
|
11
|
+
</div>
|
|
12
|
+
|
|
13
|
+
## Description
|
|
14
|
+
|
|
15
|
+
This extension contributes a set of widgets for viewing memory in different ways.
|
|
16
|
+
|
|
17
|
+
## Requirements
|
|
18
|
+
|
|
19
|
+
This extension must be used in conjunction with a Debug Adapter that implements a `ReadMemoryRequest` handler or alternative custom request that returns memory data.
|
|
20
|
+
It has been tested against the [CDT-GDB Adapter](https://github.com/eclipse-cdt/cdt-gdb-adapter) used as the backend for the
|
|
21
|
+
[CDT-GDB VSCode](https://github.com/eclipse-cdt/cdt-gdb-vscode) plugin. This repository is configured to download that plugin as part of its build routine.
|
|
22
|
+
If you intend to use this extension with a different debug adapter, you may need to implement a custom
|
|
23
|
+
[`MemoryProvider`](./src/browser/memory-provider/memory-provider-service.ts) to handle any peculiarities of the requests and responses used by your adapter.
|
|
24
|
+
|
|
25
|
+
## Widgets
|
|
26
|
+
|
|
27
|
+
### Memory Widget
|
|
28
|
+
|
|
29
|
+
The basic [`MemoryWidget` class](./src/browser/memory-widget/memory-widget.ts) is a wrapper around two functional widgets, a `MemoryOptionsWidget` and
|
|
30
|
+
a`MemoryTableWidget`. The [`MemoryOptionsWidget`](./src/browser/memory-widget/memory-options-widget.tsx) is responsible for configuring the display
|
|
31
|
+
and fetching memory, and the [`MemoryTableWidget`](./src/browser/memory-widget/memory-table-widget.tsx) renders the memory according to the options
|
|
32
|
+
specified by the user in the `MemoryOptionsWidget`. The basic combination of these three classes offers variable highlighting, ascii display, and
|
|
33
|
+
dynamic updating in response to events from the debug session, as well as the option to lock the view to ignore changes from the session.
|
|
34
|
+
|
|
35
|
+
### Diff Widget
|
|
36
|
+
|
|
37
|
+
The [`MemoryDiffWidget`](./src/browser/diff-widget/memory-diff-widget-types.ts) is an elaboration of the `MemoryWidget` type that allows side-by-side
|
|
38
|
+
comparison of the contents of two `MemoryWidgets`.
|
|
39
|
+
|
|
40
|
+
### Register Widget
|
|
41
|
+
|
|
42
|
+
The [`RegisterWidget`](./src/browser/register-widget/register-widget-types.ts) offers functionality to view and
|
|
43
|
+
manipulate those values when using a debug adapter that reports register contents.
|
|
44
|
+
|
|
45
|
+
### Editable Widget
|
|
46
|
+
|
|
47
|
+
The [`MemoryEditableTableWidget`](./src/browser/editable-widget/memory-editable-table-widget.tsx) adds UI functionality to allow users to modify values in
|
|
48
|
+
the table display and send them to a backend that supports that operation.
|
|
49
|
+
|
|
50
|
+
## Using the Widgets
|
|
51
|
+
|
|
52
|
+
The widgets are created by the [`MemoryWidgetManager`](./src/browser/utils/memory-widget-manager.ts), and modifying the `createNewMemoryWidget()`
|
|
53
|
+
method of that service allows you to change what kind of widget is instantiated and under what circumstances. The widgets get memory through the
|
|
54
|
+
[`MemoryProviderService`](./src/browser/memory-provider/memory-provider-service.ts), which delegates to implementations `MemoryProvider` interface
|
|
55
|
+
that are bound as `MemoryProvider` contributions.
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
## Additional Information
|
|
59
|
+
|
|
60
|
+
- [API documentation for `@theia/getting-started`](https://eclipse-theia.github.io/theia/docs/next/modules/getting_started.html)
|
|
61
|
+
- [Theia - GitHub](https://github.com/eclipse-theia/theia)
|
|
62
|
+
- [Theia - Website](https://theia-ide.org/)
|
|
63
|
+
|
|
64
|
+
## License
|
|
65
|
+
|
|
66
|
+
- [Eclipse Public License 2.0](http://www.eclipse.org/legal/epl-2.0/)
|
|
67
|
+
- [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
|
|
68
|
+
|
|
69
|
+
## Trademark
|
|
70
|
+
"Theia" is a trademark of the Eclipse Foundation
|
|
71
|
+
https://www.eclipse.org/theia
|
|
@@ -1,37 +1,37 @@
|
|
|
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
|
-
/// <reference types="react" />
|
|
17
|
-
import * as React from '@theia/core/shared/react';
|
|
18
|
-
import { ThemeType } from '@theia/core/lib/common/theme';
|
|
19
|
-
import { MemoryOptionsWidget } from '../memory-widget/memory-options-widget';
|
|
20
|
-
import { Interfaces, MemoryDiffWidgetData } from '../utils/memory-widget-utils';
|
|
21
|
-
export interface DiffMemoryOptions extends Interfaces.MemoryOptions {
|
|
22
|
-
beforeOffset: number;
|
|
23
|
-
afterOffset: number;
|
|
24
|
-
}
|
|
25
|
-
export declare class MemoryDiffOptionsWidget extends MemoryOptionsWidget {
|
|
26
|
-
protected memoryWidgetOptions: MemoryDiffWidgetData;
|
|
27
|
-
protected themeType: ThemeType;
|
|
28
|
-
get options(): DiffMemoryOptions;
|
|
29
|
-
updateDiffData(newDiffData: Partial<MemoryDiffWidgetData>): void;
|
|
30
|
-
protected init(): void;
|
|
31
|
-
protected acceptFocus(): void;
|
|
32
|
-
protected renderMemoryLocationGroup(): React.ReactNode;
|
|
33
|
-
protected getObligatoryColumnIds(): string[];
|
|
34
|
-
protected doRefresh: (event: React.KeyboardEvent<HTMLInputElement> | React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
35
|
-
storeState(): DiffMemoryOptions;
|
|
36
|
-
}
|
|
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
|
+
/// <reference types="react" />
|
|
17
|
+
import * as React from '@theia/core/shared/react';
|
|
18
|
+
import { ThemeType } from '@theia/core/lib/common/theme';
|
|
19
|
+
import { MemoryOptionsWidget } from '../memory-widget/memory-options-widget';
|
|
20
|
+
import { Interfaces, MemoryDiffWidgetData } from '../utils/memory-widget-utils';
|
|
21
|
+
export interface DiffMemoryOptions extends Interfaces.MemoryOptions {
|
|
22
|
+
beforeOffset: number;
|
|
23
|
+
afterOffset: number;
|
|
24
|
+
}
|
|
25
|
+
export declare class MemoryDiffOptionsWidget extends MemoryOptionsWidget {
|
|
26
|
+
protected memoryWidgetOptions: MemoryDiffWidgetData;
|
|
27
|
+
protected themeType: ThemeType;
|
|
28
|
+
get options(): DiffMemoryOptions;
|
|
29
|
+
updateDiffData(newDiffData: Partial<MemoryDiffWidgetData>): void;
|
|
30
|
+
protected init(): void;
|
|
31
|
+
protected acceptFocus(): void;
|
|
32
|
+
protected renderMemoryLocationGroup(): React.ReactNode;
|
|
33
|
+
protected getObligatoryColumnIds(): string[];
|
|
34
|
+
protected doRefresh: (event: React.KeyboardEvent<HTMLInputElement> | React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
35
|
+
storeState(): DiffMemoryOptions;
|
|
36
|
+
}
|
|
37
37
|
//# sourceMappingURL=memory-diff-options-widget.d.ts.map
|
|
@@ -1,133 +1,133 @@
|
|
|
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 MemoryDiffOptionsWidget_1;
|
|
27
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.MemoryDiffOptionsWidget = void 0;
|
|
29
|
-
const browser_1 = require("@theia/core/lib/browser");
|
|
30
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
31
|
-
const React = require("@theia/core/shared/react");
|
|
32
|
-
const memory_options_widget_1 = require("../memory-widget/memory-options-widget");
|
|
33
|
-
const memory_widget_components_1 = require("../utils/memory-widget-components");
|
|
34
|
-
const memory_widget_utils_1 = require("../utils/memory-widget-utils");
|
|
35
|
-
const memory_diff_widget_types_1 = require("./memory-diff-widget-types");
|
|
36
|
-
const nls_1 = require("@theia/core/lib/common/nls");
|
|
37
|
-
let MemoryDiffOptionsWidget = MemoryDiffOptionsWidget_1 = class MemoryDiffOptionsWidget extends memory_options_widget_1.MemoryOptionsWidget {
|
|
38
|
-
constructor() {
|
|
39
|
-
super(...arguments);
|
|
40
|
-
this.doRefresh = (event) => {
|
|
41
|
-
var _a;
|
|
42
|
-
if ('key' in event && ((_a = browser_1.KeyCode.createKeyCode(event.nativeEvent).key) === null || _a === void 0 ? void 0 : _a.keyCode) !== browser_1.Key.ENTER.keyCode) {
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
this.fireDidChangeOptions();
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
get options() {
|
|
49
|
-
return this.storeState();
|
|
50
|
-
}
|
|
51
|
-
updateDiffData(newDiffData) {
|
|
52
|
-
this.memoryWidgetOptions = { ...this.memoryWidgetOptions, ...newDiffData };
|
|
53
|
-
this.init();
|
|
54
|
-
}
|
|
55
|
-
init() {
|
|
56
|
-
this.addClass(memory_options_widget_1.MemoryOptionsWidget.ID);
|
|
57
|
-
this.addClass('diff-options-widget');
|
|
58
|
-
const { identifier, beforeBytes, afterBytes } = this.memoryWidgetOptions;
|
|
59
|
-
this.id = `${MemoryDiffOptionsWidget_1.ID}-${identifier}`;
|
|
60
|
-
this.title.label = nls_1.nls.localize('theia/memory-inspector/diff/label', 'Diff: {0}', identifier);
|
|
61
|
-
this.title.caption = this.title.label;
|
|
62
|
-
this.title.iconClass = this.iconClass;
|
|
63
|
-
this.title.closable = true;
|
|
64
|
-
this.toDispose.push(this.onOptionsChanged(() => this.update()));
|
|
65
|
-
beforeBytes.label = memory_diff_widget_types_1.DiffLabels.Before;
|
|
66
|
-
afterBytes.label = memory_diff_widget_types_1.DiffLabels.After;
|
|
67
|
-
this.columnsDisplayed = {
|
|
68
|
-
beforeAddress: {
|
|
69
|
-
label: nls_1.nls.localizeByDefault('Address'),
|
|
70
|
-
doRender: true
|
|
71
|
-
},
|
|
72
|
-
beforeData: {
|
|
73
|
-
label: this.memoryWidgetOptions.titles[0],
|
|
74
|
-
doRender: true
|
|
75
|
-
},
|
|
76
|
-
afterAddress: {
|
|
77
|
-
label: nls_1.nls.localizeByDefault('Address'),
|
|
78
|
-
doRender: true
|
|
79
|
-
},
|
|
80
|
-
afterData: {
|
|
81
|
-
label: this.memoryWidgetOptions.titles[1],
|
|
82
|
-
doRender: true
|
|
83
|
-
},
|
|
84
|
-
variables: {
|
|
85
|
-
label: nls_1.nls.localizeByDefault('Variables'),
|
|
86
|
-
doRender: false
|
|
87
|
-
},
|
|
88
|
-
ascii: {
|
|
89
|
-
label: nls_1.nls.localize('theia/memory-inspector/ascii', 'ASCII'),
|
|
90
|
-
doRender: false
|
|
91
|
-
},
|
|
92
|
-
};
|
|
93
|
-
this.update();
|
|
94
|
-
}
|
|
95
|
-
acceptFocus() {
|
|
96
|
-
const settingsCog = this.node.querySelector('.toggle-settings-click-zone');
|
|
97
|
-
settingsCog === null || settingsCog === void 0 ? void 0 : settingsCog.focus();
|
|
98
|
-
}
|
|
99
|
-
renderMemoryLocationGroup() {
|
|
100
|
-
const { titles: [beforeTitle, afterTitle] } = this.memoryWidgetOptions;
|
|
101
|
-
return (React.createElement("div", { className: 't-mv-group view-group' },
|
|
102
|
-
React.createElement(memory_widget_components_1.MWInput, { id: memory_options_widget_1.LOCATION_OFFSET_FIELD_ID, label: nls_1.nls.localize('theia/memory-inspector/diff-widget/offset-label', '{0} Offset', beforeTitle), title: nls_1.nls.localize('theia/memory-inspector/diff-widget/offset-title', 'Bytes to offset the memory from {0}', beforeTitle), defaultValue: '0', passRef: this.assignOffsetRef, onChange: memory_widget_utils_1.Utils.validateNumericalInputs, onKeyDown: this.doRefresh }),
|
|
103
|
-
React.createElement(memory_widget_components_1.MWInput, { id: memory_options_widget_1.LENGTH_FIELD_ID, label: nls_1.nls.localize('theia/memory-inspector/diff-widget/offset-label', '{0} Offset', afterTitle), title: nls_1.nls.localize('theia/memory-inspector/diff-widget/offset-title', 'Bytes to offset the memory from {0}', afterTitle), defaultValue: '0', passRef: this.assignReadLengthRef, onChange: memory_widget_utils_1.Utils.validateNumericalInputs, onKeyDown: this.doRefresh }),
|
|
104
|
-
React.createElement("button", { type: 'button', className: 'theia-button main view-group-go-button', title: nls_1.nls.localizeByDefault('Go'), onClick: this.doRefresh }, nls_1.nls.localizeByDefault('Go'))));
|
|
105
|
-
}
|
|
106
|
-
getObligatoryColumnIds() {
|
|
107
|
-
return ['beforeAddress', 'beforeData', 'afterAddress', 'afterData'];
|
|
108
|
-
}
|
|
109
|
-
storeState() {
|
|
110
|
-
var _a, _b, _c, _d;
|
|
111
|
-
return {
|
|
112
|
-
...super.storeState(),
|
|
113
|
-
// prefix a 0. It'll do nothing if it's a number, but if it's an empty string or garbage, it'll make parseInt return 0.
|
|
114
|
-
beforeOffset: parseInt(`0${(_b = (_a = this.offsetField) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : 0}`),
|
|
115
|
-
afterOffset: parseInt(`0${(_d = (_c = this.readLengthField) === null || _c === void 0 ? void 0 : _c.value) !== null && _d !== void 0 ? _d : 0}`),
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
};
|
|
119
|
-
__decorate([
|
|
120
|
-
(0, inversify_1.inject)(memory_widget_utils_1.MemoryDiffWidgetData),
|
|
121
|
-
__metadata("design:type", Object)
|
|
122
|
-
], MemoryDiffOptionsWidget.prototype, "memoryWidgetOptions", void 0);
|
|
123
|
-
__decorate([
|
|
124
|
-
(0, inversify_1.postConstruct)(),
|
|
125
|
-
__metadata("design:type", Function),
|
|
126
|
-
__metadata("design:paramtypes", []),
|
|
127
|
-
__metadata("design:returntype", void 0)
|
|
128
|
-
], MemoryDiffOptionsWidget.prototype, "init", null);
|
|
129
|
-
MemoryDiffOptionsWidget = MemoryDiffOptionsWidget_1 = __decorate([
|
|
130
|
-
(0, inversify_1.injectable)()
|
|
131
|
-
], MemoryDiffOptionsWidget);
|
|
132
|
-
exports.MemoryDiffOptionsWidget = MemoryDiffOptionsWidget;
|
|
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 MemoryDiffOptionsWidget_1;
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.MemoryDiffOptionsWidget = void 0;
|
|
29
|
+
const browser_1 = require("@theia/core/lib/browser");
|
|
30
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
31
|
+
const React = require("@theia/core/shared/react");
|
|
32
|
+
const memory_options_widget_1 = require("../memory-widget/memory-options-widget");
|
|
33
|
+
const memory_widget_components_1 = require("../utils/memory-widget-components");
|
|
34
|
+
const memory_widget_utils_1 = require("../utils/memory-widget-utils");
|
|
35
|
+
const memory_diff_widget_types_1 = require("./memory-diff-widget-types");
|
|
36
|
+
const nls_1 = require("@theia/core/lib/common/nls");
|
|
37
|
+
let MemoryDiffOptionsWidget = MemoryDiffOptionsWidget_1 = class MemoryDiffOptionsWidget extends memory_options_widget_1.MemoryOptionsWidget {
|
|
38
|
+
constructor() {
|
|
39
|
+
super(...arguments);
|
|
40
|
+
this.doRefresh = (event) => {
|
|
41
|
+
var _a;
|
|
42
|
+
if ('key' in event && ((_a = browser_1.KeyCode.createKeyCode(event.nativeEvent).key) === null || _a === void 0 ? void 0 : _a.keyCode) !== browser_1.Key.ENTER.keyCode) {
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
this.fireDidChangeOptions();
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
get options() {
|
|
49
|
+
return this.storeState();
|
|
50
|
+
}
|
|
51
|
+
updateDiffData(newDiffData) {
|
|
52
|
+
this.memoryWidgetOptions = { ...this.memoryWidgetOptions, ...newDiffData };
|
|
53
|
+
this.init();
|
|
54
|
+
}
|
|
55
|
+
init() {
|
|
56
|
+
this.addClass(memory_options_widget_1.MemoryOptionsWidget.ID);
|
|
57
|
+
this.addClass('diff-options-widget');
|
|
58
|
+
const { identifier, beforeBytes, afterBytes } = this.memoryWidgetOptions;
|
|
59
|
+
this.id = `${MemoryDiffOptionsWidget_1.ID}-${identifier}`;
|
|
60
|
+
this.title.label = nls_1.nls.localize('theia/memory-inspector/diff/label', 'Diff: {0}', identifier);
|
|
61
|
+
this.title.caption = this.title.label;
|
|
62
|
+
this.title.iconClass = this.iconClass;
|
|
63
|
+
this.title.closable = true;
|
|
64
|
+
this.toDispose.push(this.onOptionsChanged(() => this.update()));
|
|
65
|
+
beforeBytes.label = memory_diff_widget_types_1.DiffLabels.Before;
|
|
66
|
+
afterBytes.label = memory_diff_widget_types_1.DiffLabels.After;
|
|
67
|
+
this.columnsDisplayed = {
|
|
68
|
+
beforeAddress: {
|
|
69
|
+
label: nls_1.nls.localizeByDefault('Address'),
|
|
70
|
+
doRender: true
|
|
71
|
+
},
|
|
72
|
+
beforeData: {
|
|
73
|
+
label: this.memoryWidgetOptions.titles[0],
|
|
74
|
+
doRender: true
|
|
75
|
+
},
|
|
76
|
+
afterAddress: {
|
|
77
|
+
label: nls_1.nls.localizeByDefault('Address'),
|
|
78
|
+
doRender: true
|
|
79
|
+
},
|
|
80
|
+
afterData: {
|
|
81
|
+
label: this.memoryWidgetOptions.titles[1],
|
|
82
|
+
doRender: true
|
|
83
|
+
},
|
|
84
|
+
variables: {
|
|
85
|
+
label: nls_1.nls.localizeByDefault('Variables'),
|
|
86
|
+
doRender: false
|
|
87
|
+
},
|
|
88
|
+
ascii: {
|
|
89
|
+
label: nls_1.nls.localize('theia/memory-inspector/ascii', 'ASCII'),
|
|
90
|
+
doRender: false
|
|
91
|
+
},
|
|
92
|
+
};
|
|
93
|
+
this.update();
|
|
94
|
+
}
|
|
95
|
+
acceptFocus() {
|
|
96
|
+
const settingsCog = this.node.querySelector('.toggle-settings-click-zone');
|
|
97
|
+
settingsCog === null || settingsCog === void 0 ? void 0 : settingsCog.focus();
|
|
98
|
+
}
|
|
99
|
+
renderMemoryLocationGroup() {
|
|
100
|
+
const { titles: [beforeTitle, afterTitle] } = this.memoryWidgetOptions;
|
|
101
|
+
return (React.createElement("div", { className: 't-mv-group view-group' },
|
|
102
|
+
React.createElement(memory_widget_components_1.MWInput, { id: memory_options_widget_1.LOCATION_OFFSET_FIELD_ID, label: nls_1.nls.localize('theia/memory-inspector/diff-widget/offset-label', '{0} Offset', beforeTitle), title: nls_1.nls.localize('theia/memory-inspector/diff-widget/offset-title', 'Bytes to offset the memory from {0}', beforeTitle), defaultValue: '0', passRef: this.assignOffsetRef, onChange: memory_widget_utils_1.Utils.validateNumericalInputs, onKeyDown: this.doRefresh }),
|
|
103
|
+
React.createElement(memory_widget_components_1.MWInput, { id: memory_options_widget_1.LENGTH_FIELD_ID, label: nls_1.nls.localize('theia/memory-inspector/diff-widget/offset-label', '{0} Offset', afterTitle), title: nls_1.nls.localize('theia/memory-inspector/diff-widget/offset-title', 'Bytes to offset the memory from {0}', afterTitle), defaultValue: '0', passRef: this.assignReadLengthRef, onChange: memory_widget_utils_1.Utils.validateNumericalInputs, onKeyDown: this.doRefresh }),
|
|
104
|
+
React.createElement("button", { type: 'button', className: 'theia-button main view-group-go-button', title: nls_1.nls.localizeByDefault('Go'), onClick: this.doRefresh }, nls_1.nls.localizeByDefault('Go'))));
|
|
105
|
+
}
|
|
106
|
+
getObligatoryColumnIds() {
|
|
107
|
+
return ['beforeAddress', 'beforeData', 'afterAddress', 'afterData'];
|
|
108
|
+
}
|
|
109
|
+
storeState() {
|
|
110
|
+
var _a, _b, _c, _d;
|
|
111
|
+
return {
|
|
112
|
+
...super.storeState(),
|
|
113
|
+
// prefix a 0. It'll do nothing if it's a number, but if it's an empty string or garbage, it'll make parseInt return 0.
|
|
114
|
+
beforeOffset: parseInt(`0${(_b = (_a = this.offsetField) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : 0}`),
|
|
115
|
+
afterOffset: parseInt(`0${(_d = (_c = this.readLengthField) === null || _c === void 0 ? void 0 : _c.value) !== null && _d !== void 0 ? _d : 0}`),
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, inversify_1.inject)(memory_widget_utils_1.MemoryDiffWidgetData),
|
|
121
|
+
__metadata("design:type", Object)
|
|
122
|
+
], MemoryDiffOptionsWidget.prototype, "memoryWidgetOptions", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, inversify_1.postConstruct)(),
|
|
125
|
+
__metadata("design:type", Function),
|
|
126
|
+
__metadata("design:paramtypes", []),
|
|
127
|
+
__metadata("design:returntype", void 0)
|
|
128
|
+
], MemoryDiffOptionsWidget.prototype, "init", null);
|
|
129
|
+
MemoryDiffOptionsWidget = MemoryDiffOptionsWidget_1 = __decorate([
|
|
130
|
+
(0, inversify_1.injectable)()
|
|
131
|
+
], MemoryDiffOptionsWidget);
|
|
132
|
+
exports.MemoryDiffOptionsWidget = MemoryDiffOptionsWidget;
|
|
133
133
|
//# sourceMappingURL=memory-diff-options-widget.js.map
|
|
@@ -1,51 +1,51 @@
|
|
|
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
|
-
/// <reference types="react" />
|
|
17
|
-
import { Message, ReactWidget } from '@theia/core/lib/browser';
|
|
18
|
-
import * as React from '@theia/core/shared/react';
|
|
19
|
-
import * as Long from 'long';
|
|
20
|
-
import { MemoryWidget } from '../memory-widget/memory-widget';
|
|
21
|
-
import { MemoryWidgetManager } from '../utils/memory-widget-manager';
|
|
22
|
-
import { Interfaces } from '../utils/memory-widget-utils';
|
|
23
|
-
import { VariableRange } from '../utils/memory-widget-variable-utils';
|
|
24
|
-
export interface DiffMemory {
|
|
25
|
-
beforeAddress: Long;
|
|
26
|
-
beforeBytes: Interfaces.LabeledUint8Array;
|
|
27
|
-
beforeVariables: VariableRange[];
|
|
28
|
-
afterAddress: Long;
|
|
29
|
-
afterBytes: Interfaces.LabeledUint8Array;
|
|
30
|
-
afterVariables: VariableRange[];
|
|
31
|
-
}
|
|
32
|
-
export declare class MemoryDiffSelectWidget extends ReactWidget {
|
|
33
|
-
static DIFF_SELECT_CLASS: string;
|
|
34
|
-
protected beforeWidgetLabel: string;
|
|
35
|
-
protected afterWidgetLabel: string;
|
|
36
|
-
protected labelToWidgetMap: Map<string, MemoryWidget<import("../memory-widget/memory-options-widget").MemoryOptionsWidget, import("../memory-widget/memory-table-widget").MemoryTableWidget>>;
|
|
37
|
-
protected readonly memoryWidgetManager: MemoryWidgetManager;
|
|
38
|
-
protected init(): void;
|
|
39
|
-
onActivateRequest(msg: Message): void;
|
|
40
|
-
protected assignBaseValue: (e: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
41
|
-
protected assignLaterValue: (e: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
42
|
-
render(): React.ReactNode;
|
|
43
|
-
protected diffIfEnter: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
44
|
-
protected updateWidgetMap(): void;
|
|
45
|
-
protected getBeforeLabel(optionLabels?: string[]): string;
|
|
46
|
-
protected getAfterLabel(optionLabels: string[], beforeWidgetLabel?: string): string;
|
|
47
|
-
protected diff: () => void;
|
|
48
|
-
protected doDiff(): void;
|
|
49
|
-
protected getMemoryArrays(beforeWidget: MemoryWidget, afterWidget: MemoryWidget): DiffMemory;
|
|
50
|
-
}
|
|
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
|
+
/// <reference types="react" />
|
|
17
|
+
import { Message, ReactWidget } from '@theia/core/lib/browser';
|
|
18
|
+
import * as React from '@theia/core/shared/react';
|
|
19
|
+
import * as Long from 'long';
|
|
20
|
+
import { MemoryWidget } from '../memory-widget/memory-widget';
|
|
21
|
+
import { MemoryWidgetManager } from '../utils/memory-widget-manager';
|
|
22
|
+
import { Interfaces } from '../utils/memory-widget-utils';
|
|
23
|
+
import { VariableRange } from '../utils/memory-widget-variable-utils';
|
|
24
|
+
export interface DiffMemory {
|
|
25
|
+
beforeAddress: Long;
|
|
26
|
+
beforeBytes: Interfaces.LabeledUint8Array;
|
|
27
|
+
beforeVariables: VariableRange[];
|
|
28
|
+
afterAddress: Long;
|
|
29
|
+
afterBytes: Interfaces.LabeledUint8Array;
|
|
30
|
+
afterVariables: VariableRange[];
|
|
31
|
+
}
|
|
32
|
+
export declare class MemoryDiffSelectWidget extends ReactWidget {
|
|
33
|
+
static DIFF_SELECT_CLASS: string;
|
|
34
|
+
protected beforeWidgetLabel: string;
|
|
35
|
+
protected afterWidgetLabel: string;
|
|
36
|
+
protected labelToWidgetMap: Map<string, MemoryWidget<import("../memory-widget/memory-options-widget").MemoryOptionsWidget, import("../memory-widget/memory-table-widget").MemoryTableWidget>>;
|
|
37
|
+
protected readonly memoryWidgetManager: MemoryWidgetManager;
|
|
38
|
+
protected init(): void;
|
|
39
|
+
onActivateRequest(msg: Message): void;
|
|
40
|
+
protected assignBaseValue: (e: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
41
|
+
protected assignLaterValue: (e: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
42
|
+
render(): React.ReactNode;
|
|
43
|
+
protected diffIfEnter: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
44
|
+
protected updateWidgetMap(): void;
|
|
45
|
+
protected getBeforeLabel(optionLabels?: string[]): string;
|
|
46
|
+
protected getAfterLabel(optionLabels: string[], beforeWidgetLabel?: string): string;
|
|
47
|
+
protected diff: () => void;
|
|
48
|
+
protected doDiff(): void;
|
|
49
|
+
protected getMemoryArrays(beforeWidget: MemoryWidget, afterWidget: MemoryWidget): DiffMemory;
|
|
50
|
+
}
|
|
51
51
|
//# sourceMappingURL=memory-diff-select-widget.d.ts.map
|