@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.
Files changed (102) hide show
  1. package/README.md +71 -71
  2. package/lib/browser/diff-widget/memory-diff-options-widget.d.ts +36 -36
  3. package/lib/browser/diff-widget/memory-diff-options-widget.js +132 -132
  4. package/lib/browser/diff-widget/memory-diff-select-widget.d.ts +50 -50
  5. package/lib/browser/diff-widget/memory-diff-select-widget.js +137 -137
  6. package/lib/browser/diff-widget/memory-diff-table-widget.d.ts +77 -77
  7. package/lib/browser/diff-widget/memory-diff-table-widget.js +314 -314
  8. package/lib/browser/diff-widget/memory-diff-widget-types.d.ts +41 -41
  9. package/lib/browser/diff-widget/memory-diff-widget-types.js +23 -23
  10. package/lib/browser/editable-widget/memory-editable-table-widget.d.ts +64 -64
  11. package/lib/browser/editable-widget/memory-editable-table-widget.js +324 -324
  12. package/lib/browser/memory-inspector-frontend-contribution.d.ts +46 -46
  13. package/lib/browser/memory-inspector-frontend-contribution.js +291 -291
  14. package/lib/browser/memory-inspector-frontend-module.d.ts +21 -21
  15. package/lib/browser/memory-inspector-frontend-module.js +87 -87
  16. package/lib/browser/memory-provider/cdt-gdb-memory-provider.d.ts +35 -35
  17. package/lib/browser/memory-provider/cdt-gdb-memory-provider.js +136 -136
  18. package/lib/browser/memory-provider/memory-provider-service.d.ts +36 -36
  19. package/lib/browser/memory-provider/memory-provider-service.js +101 -101
  20. package/lib/browser/memory-provider/memory-provider.d.ts +65 -65
  21. package/lib/browser/memory-provider/memory-provider.js +96 -96
  22. package/lib/browser/memory-provider/memory-provider.spec.d.ts +16 -16
  23. package/lib/browser/memory-provider/memory-provider.spec.js +23 -23
  24. package/lib/browser/memory-widget/memory-options-widget.d.ts +136 -136
  25. package/lib/browser/memory-widget/memory-options-widget.js +564 -564
  26. package/lib/browser/memory-widget/memory-table-widget.d.ts +146 -146
  27. package/lib/browser/memory-widget/memory-table-widget.js +487 -487
  28. package/lib/browser/memory-widget/memory-widget.d.ts +33 -33
  29. package/lib/browser/memory-widget/memory-widget.js +112 -112
  30. package/lib/browser/register-widget/register-filter-service.d.ts +42 -42
  31. package/lib/browser/register-widget/register-filter-service.js +81 -81
  32. package/lib/browser/register-widget/register-options-widget.d.ts +81 -81
  33. package/lib/browser/register-widget/register-options-widget.js +338 -338
  34. package/lib/browser/register-widget/register-table-widget.d.ts +77 -77
  35. package/lib/browser/register-widget/register-table-widget.js +230 -230
  36. package/lib/browser/register-widget/register-widget-types.d.ts +29 -29
  37. package/lib/browser/register-widget/register-widget-types.js +35 -35
  38. package/lib/browser/utils/memory-commands.d.ts +27 -27
  39. package/lib/browser/utils/memory-commands.js +67 -67
  40. package/lib/browser/utils/memory-hover-renderer.d.ts +33 -33
  41. package/lib/browser/utils/memory-hover-renderer.js +111 -111
  42. package/lib/browser/utils/memory-recents.d.ts +27 -27
  43. package/lib/browser/utils/memory-recents.js +52 -52
  44. package/lib/browser/utils/memory-widget-components.d.ts +58 -58
  45. package/lib/browser/utils/memory-widget-components.js +69 -69
  46. package/lib/browser/utils/memory-widget-manager.d.ts +50 -50
  47. package/lib/browser/utils/memory-widget-manager.js +182 -182
  48. package/lib/browser/utils/memory-widget-utils.d.ts +113 -113
  49. package/lib/browser/utils/memory-widget-utils.js +42 -42
  50. package/lib/browser/utils/memory-widget-variable-utils.d.ts +57 -57
  51. package/lib/browser/utils/memory-widget-variable-utils.js +143 -143
  52. package/lib/browser/utils/multi-select-bar.d.ts +31 -31
  53. package/lib/browser/utils/multi-select-bar.js +34 -34
  54. package/lib/browser/wrapper-widgets/memory-dock-panel.d.ts +24 -24
  55. package/lib/browser/wrapper-widgets/memory-dock-panel.js +48 -48
  56. package/lib/browser/wrapper-widgets/memory-dockpanel-placeholder-widget.d.ts +23 -23
  57. package/lib/browser/wrapper-widgets/memory-dockpanel-placeholder-widget.js +57 -57
  58. package/lib/browser/wrapper-widgets/memory-layout-widget.d.ts +51 -51
  59. package/lib/browser/wrapper-widgets/memory-layout-widget.js +191 -191
  60. package/lib/common/util.d.ts +21 -21
  61. package/lib/common/util.js +30 -30
  62. package/lib/common/utils.spec.d.ts +16 -16
  63. package/lib/common/utils.spec.js +45 -45
  64. package/package.json +4 -4
  65. package/src/browser/diff-widget/memory-diff-options-widget.tsx +152 -152
  66. package/src/browser/diff-widget/memory-diff-select-widget.tsx +163 -163
  67. package/src/browser/diff-widget/memory-diff-table-widget.tsx +366 -366
  68. package/src/browser/diff-widget/memory-diff-widget-types.ts +45 -45
  69. package/src/browser/editable-widget/memory-editable-table-widget.tsx +359 -359
  70. package/src/browser/memory-inspector-frontend-contribution.ts +301 -301
  71. package/src/browser/memory-inspector-frontend-module.ts +118 -118
  72. package/src/browser/memory-provider/cdt-gdb-memory-provider.ts +132 -132
  73. package/src/browser/memory-provider/memory-provider-service.ts +86 -86
  74. package/src/browser/memory-provider/memory-provider.spec.ts +23 -23
  75. package/src/browser/memory-provider/memory-provider.ts +119 -119
  76. package/src/browser/memory-widget/memory-options-widget.tsx +738 -738
  77. package/src/browser/memory-widget/memory-table-widget.tsx +625 -625
  78. package/src/browser/memory-widget/memory-widget.ts +114 -114
  79. package/src/browser/register-widget/register-filter-service.ts +76 -76
  80. package/src/browser/register-widget/register-options-widget.tsx +393 -393
  81. package/src/browser/register-widget/register-table-widget.tsx +276 -276
  82. package/src/browser/register-widget/register-widget-types.ts +45 -45
  83. package/src/browser/register-widget/register-widget.css +34 -34
  84. package/src/browser/style/index.css +746 -746
  85. package/src/browser/style/memory-lock.svg +21 -21
  86. package/src/browser/style/memory-view.svg +20 -20
  87. package/src/browser/style/register-lock.svg +29 -29
  88. package/src/browser/style/register-view.svg +28 -28
  89. package/src/browser/utils/memory-commands.ts +76 -76
  90. package/src/browser/utils/memory-hover-renderer.ts +113 -113
  91. package/src/browser/utils/memory-recents.ts +58 -58
  92. package/src/browser/utils/memory-widget-components.tsx +193 -193
  93. package/src/browser/utils/memory-widget-manager.ts +179 -179
  94. package/src/browser/utils/memory-widget-utils.tsx +132 -132
  95. package/src/browser/utils/memory-widget-variable-utils.ts +170 -170
  96. package/src/browser/utils/multi-select-bar.css +61 -61
  97. package/src/browser/utils/multi-select-bar.tsx +75 -75
  98. package/src/browser/wrapper-widgets/memory-dock-panel.ts +51 -51
  99. package/src/browser/wrapper-widgets/memory-dockpanel-placeholder-widget.tsx +38 -38
  100. package/src/browser/wrapper-widgets/memory-layout-widget.tsx +167 -167
  101. package/src/common/util.ts +28 -28
  102. package/src/common/utils.spec.ts +52 -52
@@ -1,30 +1,30 @@
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 { interfaces } from '@theia/core/shared/inversify';
17
- import { MemoryOptionsWidget } from '../memory-widget/memory-options-widget';
18
- import { MemoryTableWidget } from '../memory-widget/memory-table-widget';
19
- import { MemoryWidget } from '../memory-widget/memory-widget';
20
- import { MemoryWidgetOptions } from '../utils/memory-widget-utils';
21
- import { RegisterOptionsWidget } from './register-options-widget';
22
- import { RegisterTableWidget } from './register-table-widget';
23
- export declare type RegisterWidget = MemoryWidget<RegisterOptionsWidget, RegisterTableWidget>;
24
- export declare namespace RegisterWidget {
25
- const ID = "register-view-options-widget";
26
- const LABEL: string;
27
- const is: (widget: MemoryWidget) => boolean;
28
- const createContainer: (parent: interfaces.Container, optionsWidget: interfaces.ServiceIdentifier<MemoryOptionsWidget>, tableWidget: interfaces.ServiceIdentifier<MemoryTableWidget>, optionSymbol?: interfaces.ServiceIdentifier<MemoryWidgetOptions | undefined>, options?: MemoryWidgetOptions | undefined) => interfaces.Container;
29
- }
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 { interfaces } from '@theia/core/shared/inversify';
17
+ import { MemoryOptionsWidget } from '../memory-widget/memory-options-widget';
18
+ import { MemoryTableWidget } from '../memory-widget/memory-table-widget';
19
+ import { MemoryWidget } from '../memory-widget/memory-widget';
20
+ import { MemoryWidgetOptions } from '../utils/memory-widget-utils';
21
+ import { RegisterOptionsWidget } from './register-options-widget';
22
+ import { RegisterTableWidget } from './register-table-widget';
23
+ export declare type RegisterWidget = MemoryWidget<RegisterOptionsWidget, RegisterTableWidget>;
24
+ export declare namespace RegisterWidget {
25
+ const ID = "register-view-options-widget";
26
+ const LABEL: string;
27
+ const is: (widget: MemoryWidget) => boolean;
28
+ const createContainer: (parent: interfaces.Container, optionsWidget: interfaces.ServiceIdentifier<MemoryOptionsWidget>, tableWidget: interfaces.ServiceIdentifier<MemoryTableWidget>, optionSymbol?: interfaces.ServiceIdentifier<MemoryWidgetOptions | undefined>, options?: MemoryWidgetOptions | undefined) => interfaces.Container;
29
+ }
30
30
  //# sourceMappingURL=register-widget-types.d.ts.map
@@ -1,36 +1,36 @@
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
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.RegisterWidget = void 0;
19
- const core_1 = require("@theia/core");
20
- const memory_widget_1 = require("../memory-widget/memory-widget");
21
- const memory_widget_utils_1 = require("../utils/memory-widget-utils");
22
- const register_filter_service_1 = require("./register-filter-service");
23
- const register_options_widget_1 = require("./register-options-widget");
24
- var RegisterWidget;
25
- (function (RegisterWidget) {
26
- RegisterWidget.ID = 'register-view-options-widget';
27
- RegisterWidget.LABEL = core_1.nls.localize('theia/memory-inspector/register', 'Register');
28
- RegisterWidget.is = (widget) => widget.optionsWidget instanceof register_options_widget_1.RegisterOptionsWidget;
29
- RegisterWidget.createContainer = (parent, optionsWidget, tableWidget, optionSymbol = memory_widget_utils_1.MemoryWidgetOptions, options) => {
30
- const child = memory_widget_1.MemoryWidget.createContainer(parent, optionsWidget, tableWidget, optionSymbol, options);
31
- child.bind(register_filter_service_1.RegisterFilterService).to(register_filter_service_1.RegisterFilterServiceImpl).inSingletonScope();
32
- child.bind(register_filter_service_1.RegisterFilterServiceOptions).toConstantValue({});
33
- return child;
34
- };
35
- })(RegisterWidget = exports.RegisterWidget || (exports.RegisterWidget = {}));
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
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.RegisterWidget = void 0;
19
+ const core_1 = require("@theia/core");
20
+ const memory_widget_1 = require("../memory-widget/memory-widget");
21
+ const memory_widget_utils_1 = require("../utils/memory-widget-utils");
22
+ const register_filter_service_1 = require("./register-filter-service");
23
+ const register_options_widget_1 = require("./register-options-widget");
24
+ var RegisterWidget;
25
+ (function (RegisterWidget) {
26
+ RegisterWidget.ID = 'register-view-options-widget';
27
+ RegisterWidget.LABEL = core_1.nls.localize('theia/memory-inspector/register', 'Register');
28
+ RegisterWidget.is = (widget) => widget.optionsWidget instanceof register_options_widget_1.RegisterOptionsWidget;
29
+ RegisterWidget.createContainer = (parent, optionsWidget, tableWidget, optionSymbol = memory_widget_utils_1.MemoryWidgetOptions, options) => {
30
+ const child = memory_widget_1.MemoryWidget.createContainer(parent, optionsWidget, tableWidget, optionSymbol, options);
31
+ child.bind(register_filter_service_1.RegisterFilterService).to(register_filter_service_1.RegisterFilterServiceImpl).inSingletonScope();
32
+ child.bind(register_filter_service_1.RegisterFilterServiceOptions).toConstantValue({});
33
+ return child;
34
+ };
35
+ })(RegisterWidget = exports.RegisterWidget || (exports.RegisterWidget = {}));
36
36
  //# sourceMappingURL=register-widget-types.js.map
@@ -1,28 +1,28 @@
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 { Command } from '@theia/core';
17
- export declare const MemoryCommand: Command;
18
- export declare const MemoryCategory: string;
19
- export declare const ViewVariableInMemoryCommand: Command;
20
- export declare const ViewVariableInRegisterViewCommand: Command;
21
- export declare const ResetModifiedCellCommand: Command;
22
- export declare const CreateNewMemoryViewCommand: Command;
23
- export declare const FollowPointerTableCommand: Command;
24
- export declare const FollowPointerDebugCommand: Command;
25
- export declare const CreateNewRegisterViewCommand: Command;
26
- export declare const RegisterSetVariableCommand: Command;
27
- export declare const ToggleDiffSelectWidgetVisibilityCommand: Command;
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 { Command } from '@theia/core';
17
+ export declare const MemoryCommand: Command;
18
+ export declare const MemoryCategory: string;
19
+ export declare const ViewVariableInMemoryCommand: Command;
20
+ export declare const ViewVariableInRegisterViewCommand: Command;
21
+ export declare const ResetModifiedCellCommand: Command;
22
+ export declare const CreateNewMemoryViewCommand: Command;
23
+ export declare const FollowPointerTableCommand: Command;
24
+ export declare const FollowPointerDebugCommand: Command;
25
+ export declare const CreateNewRegisterViewCommand: Command;
26
+ export declare const RegisterSetVariableCommand: Command;
27
+ export declare const ToggleDiffSelectWidgetVisibilityCommand: Command;
28
28
  //# sourceMappingURL=memory-commands.d.ts.map
@@ -1,68 +1,68 @@
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
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.ToggleDiffSelectWidgetVisibilityCommand = exports.RegisterSetVariableCommand = exports.CreateNewRegisterViewCommand = exports.FollowPointerDebugCommand = exports.FollowPointerTableCommand = exports.CreateNewMemoryViewCommand = exports.ResetModifiedCellCommand = exports.ViewVariableInRegisterViewCommand = exports.ViewVariableInMemoryCommand = exports.MemoryCategory = exports.MemoryCommand = void 0;
19
- const nls_1 = require("@theia/core/lib/common/nls");
20
- exports.MemoryCommand = { id: 'memory-inspector-command' };
21
- exports.MemoryCategory = nls_1.nls.localize('theia/memory-inspector/memoryCategory', 'Memory Inspector');
22
- exports.ViewVariableInMemoryCommand = {
23
- id: 'view-variable-in-memory',
24
- category: exports.MemoryCategory,
25
- label: nls_1.nls.localize('theia/memory-inspector/command/viewVariable', 'Show Variable in Memory Inspector'),
26
- };
27
- exports.ViewVariableInRegisterViewCommand = {
28
- id: 'view-variable-in-register-view',
29
- category: exports.MemoryCategory,
30
- label: nls_1.nls.localize('theia/memory-inspector/command/showRegister', 'Show Register in Memory Inspector'),
31
- };
32
- exports.ResetModifiedCellCommand = {
33
- id: 'reset-modified-cell',
34
- category: exports.MemoryCategory,
35
- label: nls_1.nls.localize('theia/memory-inspector/command/resetValue', 'Reset Value'),
36
- };
37
- exports.CreateNewMemoryViewCommand = {
38
- id: 'create-new-memory-view',
39
- category: exports.MemoryCategory,
40
- label: nls_1.nls.localize('theia/memory-inspector/command/createNewMemory', 'Create New Memory Inspector'),
41
- iconClass: 'memory-view-icon toolbar',
42
- };
43
- exports.FollowPointerTableCommand = {
44
- id: 'follow-pointer-table',
45
- category: exports.MemoryCategory,
46
- label: nls_1.nls.localize('theia/memory-inspector/command/followPointer', 'Follow Pointer'),
47
- };
48
- exports.FollowPointerDebugCommand = {
49
- id: 'follow-pointer-debug',
50
- category: exports.MemoryCategory,
51
- label: nls_1.nls.localize('theia/memory-inspector/command/followPointerMemory', 'Follow Pointer in Memory Inspector'),
52
- };
53
- exports.CreateNewRegisterViewCommand = {
54
- id: 'create-new-register-view',
55
- category: exports.MemoryCategory,
56
- label: nls_1.nls.localize('theia/memory-inspector/command/createNewRegisterView', 'Create New Register View'),
57
- iconClass: 'register-view-icon toolbar',
58
- };
59
- exports.RegisterSetVariableCommand = {
60
- id: 'register-set-variable-value',
61
- category: exports.MemoryCategory,
62
- label: nls_1.nls.localizeByDefault('Set Value')
63
- };
64
- exports.ToggleDiffSelectWidgetVisibilityCommand = {
65
- id: 'toggle-diff-select-visibility',
66
- iconClass: 'codicon codicon-git-compare',
67
- };
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
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.ToggleDiffSelectWidgetVisibilityCommand = exports.RegisterSetVariableCommand = exports.CreateNewRegisterViewCommand = exports.FollowPointerDebugCommand = exports.FollowPointerTableCommand = exports.CreateNewMemoryViewCommand = exports.ResetModifiedCellCommand = exports.ViewVariableInRegisterViewCommand = exports.ViewVariableInMemoryCommand = exports.MemoryCategory = exports.MemoryCommand = void 0;
19
+ const nls_1 = require("@theia/core/lib/common/nls");
20
+ exports.MemoryCommand = { id: 'memory-inspector-command' };
21
+ exports.MemoryCategory = nls_1.nls.localize('theia/memory-inspector/memoryCategory', 'Memory Inspector');
22
+ exports.ViewVariableInMemoryCommand = {
23
+ id: 'view-variable-in-memory',
24
+ category: exports.MemoryCategory,
25
+ label: nls_1.nls.localize('theia/memory-inspector/command/viewVariable', 'Show Variable in Memory Inspector'),
26
+ };
27
+ exports.ViewVariableInRegisterViewCommand = {
28
+ id: 'view-variable-in-register-view',
29
+ category: exports.MemoryCategory,
30
+ label: nls_1.nls.localize('theia/memory-inspector/command/showRegister', 'Show Register in Memory Inspector'),
31
+ };
32
+ exports.ResetModifiedCellCommand = {
33
+ id: 'reset-modified-cell',
34
+ category: exports.MemoryCategory,
35
+ label: nls_1.nls.localize('theia/memory-inspector/command/resetValue', 'Reset Value'),
36
+ };
37
+ exports.CreateNewMemoryViewCommand = {
38
+ id: 'create-new-memory-view',
39
+ category: exports.MemoryCategory,
40
+ label: nls_1.nls.localize('theia/memory-inspector/command/createNewMemory', 'Create New Memory Inspector'),
41
+ iconClass: 'memory-view-icon toolbar',
42
+ };
43
+ exports.FollowPointerTableCommand = {
44
+ id: 'follow-pointer-table',
45
+ category: exports.MemoryCategory,
46
+ label: nls_1.nls.localize('theia/memory-inspector/command/followPointer', 'Follow Pointer'),
47
+ };
48
+ exports.FollowPointerDebugCommand = {
49
+ id: 'follow-pointer-debug',
50
+ category: exports.MemoryCategory,
51
+ label: nls_1.nls.localize('theia/memory-inspector/command/followPointerMemory', 'Follow Pointer in Memory Inspector'),
52
+ };
53
+ exports.CreateNewRegisterViewCommand = {
54
+ id: 'create-new-register-view',
55
+ category: exports.MemoryCategory,
56
+ label: nls_1.nls.localize('theia/memory-inspector/command/createNewRegisterView', 'Create New Register View'),
57
+ iconClass: 'register-view-icon toolbar',
58
+ };
59
+ exports.RegisterSetVariableCommand = {
60
+ id: 'register-set-variable-value',
61
+ category: exports.MemoryCategory,
62
+ label: nls_1.nls.localizeByDefault('Set Value')
63
+ };
64
+ exports.ToggleDiffSelectWidgetVisibilityCommand = {
65
+ id: 'toggle-diff-select-visibility',
66
+ iconClass: 'codicon codicon-git-compare',
67
+ };
68
68
  //# sourceMappingURL=memory-commands.js.map
@@ -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 { Disposable } from '@theia/core';
17
- import { Anchor } from '@theia/core/lib/browser';
18
- export interface EasilyMappedObject {
19
- [key: string]: string | number;
20
- }
21
- export declare class MemoryHoverRendererService implements Disposable {
22
- protected readonly container: HTMLDivElement;
23
- protected isShown: boolean;
24
- protected currentRenderContainer: HTMLElement;
25
- constructor();
26
- render(container: HTMLElement, anchor: Anchor, properties?: EasilyMappedObject): void;
27
- hide(): void;
28
- show({ x, y }: Anchor): void;
29
- protected checkNotOffScreen(): void;
30
- protected clearAll(): void;
31
- protected closeIfHoverOff: (e: MouseEvent) => void;
32
- dispose(): 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 { Disposable } from '@theia/core';
17
+ import { Anchor } from '@theia/core/lib/browser';
18
+ export interface EasilyMappedObject {
19
+ [key: string]: string | number;
20
+ }
21
+ export declare class MemoryHoverRendererService implements Disposable {
22
+ protected readonly container: HTMLDivElement;
23
+ protected isShown: boolean;
24
+ protected currentRenderContainer: HTMLElement;
25
+ constructor();
26
+ render(container: HTMLElement, anchor: Anchor, properties?: EasilyMappedObject): void;
27
+ hide(): void;
28
+ show({ x, y }: Anchor): void;
29
+ protected checkNotOffScreen(): void;
30
+ protected clearAll(): void;
31
+ protected closeIfHoverOff: (e: MouseEvent) => void;
32
+ dispose(): void;
33
+ }
34
34
  //# sourceMappingURL=memory-hover-renderer.d.ts.map
@@ -1,112 +1,112 @@
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.MemoryHoverRendererService = void 0;
28
- const inversify_1 = require("@theia/core/shared/inversify");
29
- let MemoryHoverRendererService = class MemoryHoverRendererService {
30
- constructor() {
31
- this.isShown = false;
32
- this.closeIfHoverOff = (e) => {
33
- const { target } = e;
34
- if (!(target instanceof HTMLElement)) {
35
- return;
36
- }
37
- if (!this.currentRenderContainer.contains(target) && !this.container.contains(target)) {
38
- this.hide();
39
- }
40
- };
41
- this.container = document.createElement('div');
42
- this.container.classList.add('t-mv-hover', 'hidden');
43
- document.body.appendChild(this.container);
44
- }
45
- render(container, anchor, properties) {
46
- this.clearAll();
47
- if (!this.isShown) {
48
- document.addEventListener('mousemove', this.closeIfHoverOff);
49
- this.currentRenderContainer = container;
50
- }
51
- if (properties) {
52
- for (const [key, value] of Object.entries(properties)) {
53
- const label = key.toLowerCase().replace(/[\W]/g, '-');
54
- const keySpan = document.createElement('span');
55
- keySpan.classList.add('t-mv-hover-key', label);
56
- keySpan.textContent = `${key}:`;
57
- const valueSpan = document.createElement('span');
58
- valueSpan.classList.add('t-mv-hover-value', label);
59
- // stringify as decimal number by default.
60
- valueSpan.textContent = value.toString(10);
61
- this.container.appendChild(keySpan);
62
- this.container.appendChild(valueSpan);
63
- }
64
- }
65
- if (this.container.children.length) {
66
- this.show(anchor);
67
- this.isShown = true;
68
- }
69
- else {
70
- this.hide();
71
- }
72
- }
73
- hide() {
74
- if (this.isShown) {
75
- document.removeEventListener('mousemove', this.closeIfHoverOff);
76
- this.container.classList.add('hidden');
77
- this.isShown = false;
78
- }
79
- }
80
- show({ x, y }) {
81
- this.container.classList.remove('hidden');
82
- this.container.style.top = `${y}px`;
83
- this.container.style.left = `${x}px`;
84
- setTimeout(() => this.checkNotOffScreen());
85
- }
86
- checkNotOffScreen() {
87
- var _a;
88
- const left = parseInt(((_a = this.container.style.left) !== null && _a !== void 0 ? _a : '').replace('px', ''));
89
- const width = this.container.clientWidth;
90
- const overflow = left + width - document.body.clientWidth;
91
- if (overflow > 0) {
92
- const safeLeft = Math.round(left - overflow);
93
- this.container.style.left = `${safeLeft}px`;
94
- }
95
- }
96
- clearAll() {
97
- let toRemove = this.container.lastChild;
98
- while (toRemove) {
99
- this.container.removeChild(toRemove);
100
- toRemove = this.container.lastChild;
101
- }
102
- }
103
- dispose() {
104
- this.container.remove();
105
- }
106
- };
107
- MemoryHoverRendererService = __decorate([
108
- (0, inversify_1.injectable)(),
109
- __metadata("design:paramtypes", [])
110
- ], MemoryHoverRendererService);
111
- exports.MemoryHoverRendererService = MemoryHoverRendererService;
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.MemoryHoverRendererService = void 0;
28
+ const inversify_1 = require("@theia/core/shared/inversify");
29
+ let MemoryHoverRendererService = class MemoryHoverRendererService {
30
+ constructor() {
31
+ this.isShown = false;
32
+ this.closeIfHoverOff = (e) => {
33
+ const { target } = e;
34
+ if (!(target instanceof HTMLElement)) {
35
+ return;
36
+ }
37
+ if (!this.currentRenderContainer.contains(target) && !this.container.contains(target)) {
38
+ this.hide();
39
+ }
40
+ };
41
+ this.container = document.createElement('div');
42
+ this.container.classList.add('t-mv-hover', 'hidden');
43
+ document.body.appendChild(this.container);
44
+ }
45
+ render(container, anchor, properties) {
46
+ this.clearAll();
47
+ if (!this.isShown) {
48
+ document.addEventListener('mousemove', this.closeIfHoverOff);
49
+ this.currentRenderContainer = container;
50
+ }
51
+ if (properties) {
52
+ for (const [key, value] of Object.entries(properties)) {
53
+ const label = key.toLowerCase().replace(/[\W]/g, '-');
54
+ const keySpan = document.createElement('span');
55
+ keySpan.classList.add('t-mv-hover-key', label);
56
+ keySpan.textContent = `${key}:`;
57
+ const valueSpan = document.createElement('span');
58
+ valueSpan.classList.add('t-mv-hover-value', label);
59
+ // stringify as decimal number by default.
60
+ valueSpan.textContent = value.toString(10);
61
+ this.container.appendChild(keySpan);
62
+ this.container.appendChild(valueSpan);
63
+ }
64
+ }
65
+ if (this.container.children.length) {
66
+ this.show(anchor);
67
+ this.isShown = true;
68
+ }
69
+ else {
70
+ this.hide();
71
+ }
72
+ }
73
+ hide() {
74
+ if (this.isShown) {
75
+ document.removeEventListener('mousemove', this.closeIfHoverOff);
76
+ this.container.classList.add('hidden');
77
+ this.isShown = false;
78
+ }
79
+ }
80
+ show({ x, y }) {
81
+ this.container.classList.remove('hidden');
82
+ this.container.style.top = `${y}px`;
83
+ this.container.style.left = `${x}px`;
84
+ setTimeout(() => this.checkNotOffScreen());
85
+ }
86
+ checkNotOffScreen() {
87
+ var _a;
88
+ const left = parseInt(((_a = this.container.style.left) !== null && _a !== void 0 ? _a : '').replace('px', ''));
89
+ const width = this.container.clientWidth;
90
+ const overflow = left + width - document.body.clientWidth;
91
+ if (overflow > 0) {
92
+ const safeLeft = Math.round(left - overflow);
93
+ this.container.style.left = `${safeLeft}px`;
94
+ }
95
+ }
96
+ clearAll() {
97
+ let toRemove = this.container.lastChild;
98
+ while (toRemove) {
99
+ this.container.removeChild(toRemove);
100
+ toRemove = this.container.lastChild;
101
+ }
102
+ }
103
+ dispose() {
104
+ this.container.remove();
105
+ }
106
+ };
107
+ MemoryHoverRendererService = __decorate([
108
+ (0, inversify_1.injectable)(),
109
+ __metadata("design:paramtypes", [])
110
+ ], MemoryHoverRendererService);
111
+ exports.MemoryHoverRendererService = MemoryHoverRendererService;
112
112
  //# sourceMappingURL=memory-hover-renderer.js.map