@theia/property-view 1.67.0-next.3 → 1.67.0-next.56
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 +1 -6
- package/package.json +4 -4
- package/lib/browser/empty-property-view-widget-provider.d.ts +0 -33
- package/lib/browser/empty-property-view-widget-provider.d.ts.map +0 -1
- package/lib/browser/empty-property-view-widget-provider.js +0 -76
- package/lib/browser/empty-property-view-widget-provider.js.map +0 -1
- package/lib/browser/property-data-service.d.ts +0 -29
- package/lib/browser/property-data-service.d.ts.map +0 -1
- package/lib/browser/property-data-service.js +0 -20
- package/lib/browser/property-data-service.js.map +0 -1
- package/lib/browser/property-view-content-widget.d.ts +0 -11
- package/lib/browser/property-view-content-widget.d.ts.map +0 -1
- package/lib/browser/property-view-content-widget.js +0 -18
- package/lib/browser/property-view-content-widget.js.map +0 -1
- package/lib/browser/property-view-contribution.d.ts +0 -6
- package/lib/browser/property-view-contribution.d.ts.map +0 -1
- package/lib/browser/property-view-contribution.js +0 -41
- package/lib/browser/property-view-contribution.js.map +0 -1
- package/lib/browser/property-view-frontend-module.d.ts +0 -5
- package/lib/browser/property-view-frontend-module.d.ts.map +0 -1
- package/lib/browser/property-view-frontend-module.js +0 -43
- package/lib/browser/property-view-frontend-module.js.map +0 -1
- package/lib/browser/property-view-service.d.ts +0 -18
- package/lib/browser/property-view-service.d.ts.map +0 -1
- package/lib/browser/property-view-service.js +0 -74
- package/lib/browser/property-view-service.js.map +0 -1
- package/lib/browser/property-view-widget-provider.d.ts +0 -58
- package/lib/browser/property-view-widget-provider.d.ts.map +0 -1
- package/lib/browser/property-view-widget-provider.js +0 -77
- package/lib/browser/property-view-widget-provider.js.map +0 -1
- package/lib/browser/property-view-widget.d.ts +0 -27
- package/lib/browser/property-view-widget.d.ts.map +0 -1
- package/lib/browser/property-view-widget.js +0 -123
- package/lib/browser/property-view-widget.js.map +0 -1
- package/lib/browser/resource-property-view/index.d.ts +0 -2
- package/lib/browser/resource-property-view/index.d.ts.map +0 -1
- package/lib/browser/resource-property-view/index.js +0 -20
- package/lib/browser/resource-property-view/index.js.map +0 -1
- package/lib/browser/resource-property-view/resource-property-data-service.d.ts +0 -18
- package/lib/browser/resource-property-view/resource-property-data-service.d.ts.map +0 -1
- package/lib/browser/resource-property-view/resource-property-data-service.js +0 -65
- package/lib/browser/resource-property-view/resource-property-data-service.js.map +0 -1
- package/lib/browser/resource-property-view/resource-property-data-service.spec.d.ts +0 -2
- package/lib/browser/resource-property-view/resource-property-data-service.spec.d.ts.map +0 -1
- package/lib/browser/resource-property-view/resource-property-data-service.spec.js +0 -102
- package/lib/browser/resource-property-view/resource-property-data-service.spec.js.map +0 -1
- package/lib/browser/resource-property-view/resource-property-view-label-provider.d.ts +0 -11
- package/lib/browser/resource-property-view/resource-property-view-label-provider.d.ts.map +0 -1
- package/lib/browser/resource-property-view/resource-property-view-label-provider.js +0 -53
- package/lib/browser/resource-property-view/resource-property-view-label-provider.js.map +0 -1
- package/lib/browser/resource-property-view/resource-property-view-label-provider.spec.d.ts +0 -2
- package/lib/browser/resource-property-view/resource-property-view-label-provider.spec.d.ts.map +0 -1
- package/lib/browser/resource-property-view/resource-property-view-label-provider.spec.js +0 -130
- package/lib/browser/resource-property-view/resource-property-view-label-provider.spec.js.map +0 -1
- package/lib/browser/resource-property-view/resource-property-view-tree-container.d.ts +0 -3
- package/lib/browser/resource-property-view/resource-property-view-tree-container.d.ts.map +0 -1
- package/lib/browser/resource-property-view/resource-property-view-tree-container.js +0 -44
- package/lib/browser/resource-property-view/resource-property-view-tree-container.js.map +0 -1
- package/lib/browser/resource-property-view/resource-property-view-tree-items.d.ts +0 -28
- package/lib/browser/resource-property-view/resource-property-view-tree-items.d.ts.map +0 -1
- package/lib/browser/resource-property-view/resource-property-view-tree-items.js +0 -42
- package/lib/browser/resource-property-view/resource-property-view-tree-items.js.map +0 -1
- package/lib/browser/resource-property-view/resource-property-view-tree-widget.d.ts +0 -41
- package/lib/browser/resource-property-view/resource-property-view-tree-widget.d.ts.map +0 -1
- package/lib/browser/resource-property-view/resource-property-view-tree-widget.js +0 -181
- package/lib/browser/resource-property-view/resource-property-view-tree-widget.js.map +0 -1
- package/lib/browser/resource-property-view/resource-property-view-widget-provider.d.ts +0 -17
- package/lib/browser/resource-property-view/resource-property-view-widget-provider.d.ts.map +0 -1
- package/lib/browser/resource-property-view/resource-property-view-widget-provider.js +0 -59
- package/lib/browser/resource-property-view/resource-property-view-widget-provider.js.map +0 -1
- package/lib/package.spec.d.ts +0 -1
- package/lib/package.spec.d.ts.map +0 -1
- package/lib/package.spec.js +0 -26
- package/lib/package.spec.js.map +0 -1
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Message } from '@theia/core/shared/@lumino/messaging';
|
|
2
|
-
import { SelectionService } from '@theia/core';
|
|
3
|
-
import { BaseWidget, Widget } from '@theia/core/lib/browser/widgets/widget';
|
|
4
|
-
import { DisposableCollection } from '@theia/core/lib/common/disposable';
|
|
5
|
-
import { PropertyViewContentWidget } from './property-view-content-widget';
|
|
6
|
-
import { PropertyViewService } from './property-view-service';
|
|
7
|
-
/**
|
|
8
|
-
* The main container for the selection-specific property widgets.
|
|
9
|
-
* Based on the given selection, the registered `PropertyViewWidgetProvider` provides the
|
|
10
|
-
* content widget that displays the corresponding properties.
|
|
11
|
-
*/
|
|
12
|
-
export declare class PropertyViewWidget extends BaseWidget {
|
|
13
|
-
static readonly ID = "property-view";
|
|
14
|
-
static readonly LABEL: string;
|
|
15
|
-
protected contentWidget: PropertyViewContentWidget;
|
|
16
|
-
protected toDisposeOnDetach: DisposableCollection;
|
|
17
|
-
protected readonly propertyViewService: PropertyViewService;
|
|
18
|
-
protected readonly selectionService: SelectionService;
|
|
19
|
-
init(): void;
|
|
20
|
-
protected initializeContentWidget(selection: Object | undefined): void;
|
|
21
|
-
protected replaceContentWidget(newContentWidget: PropertyViewContentWidget): void;
|
|
22
|
-
protected attachContentWidget(newContentWidget: PropertyViewContentWidget): void;
|
|
23
|
-
protected onAfterAttach(msg: Message): void;
|
|
24
|
-
protected onActivateRequest(msg: Message): void;
|
|
25
|
-
protected onResize(msg: Widget.ResizeMessage): void;
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=property-view-widget.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"property-view-widget.d.ts","sourceRoot":"","sources":["../../src/browser/property-view-widget.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAC/D,OAAO,EAAc,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAwB,MAAM,EAAE,MAAM,wCAAwC,CAAC;AAClG,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAEzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAG9D;;;;GAIG;AACH,qBACa,kBAAmB,SAAQ,UAAU;IAE9C,MAAM,CAAC,QAAQ,CAAC,EAAE,mBAAmB;IACrC,MAAM,CAAC,QAAQ,CAAC,KAAK,SAAgE;IAErF,SAAS,CAAC,aAAa,EAAE,yBAAyB,CAAC;IAEnD,UAAmB,iBAAiB,uBAA8B;IAErC,SAAS,CAAC,QAAQ,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;IAC/D,SAAS,CAAC,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAGhF,IAAI,IAAI,IAAI;IAwBZ,SAAS,CAAC,uBAAuB,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAStE,SAAS,CAAC,oBAAoB,CAAC,gBAAgB,EAAE,yBAAyB,GAAG,IAAI;IASjF,SAAS,CAAC,mBAAmB,CAAC,gBAAgB,EAAE,yBAAyB,GAAG,IAAI;cAY7D,aAAa,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;cAKjC,iBAAiB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;cAQrC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC,aAAa,GAAG,IAAI;CAM/D"}
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2020 EclipseSource 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 PropertyViewWidget_1;
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.PropertyViewWidget = void 0;
|
|
20
|
-
const tslib_1 = require("tslib");
|
|
21
|
-
const core_1 = require("@theia/core");
|
|
22
|
-
const widget_1 = require("@theia/core/lib/browser/widgets/widget");
|
|
23
|
-
const disposable_1 = require("@theia/core/lib/common/disposable");
|
|
24
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
25
|
-
const property_view_service_1 = require("./property-view-service");
|
|
26
|
-
const nls_1 = require("@theia/core/lib/common/nls");
|
|
27
|
-
/**
|
|
28
|
-
* The main container for the selection-specific property widgets.
|
|
29
|
-
* Based on the given selection, the registered `PropertyViewWidgetProvider` provides the
|
|
30
|
-
* content widget that displays the corresponding properties.
|
|
31
|
-
*/
|
|
32
|
-
let PropertyViewWidget = PropertyViewWidget_1 = class PropertyViewWidget extends widget_1.BaseWidget {
|
|
33
|
-
constructor() {
|
|
34
|
-
super(...arguments);
|
|
35
|
-
this.toDisposeOnDetach = new disposable_1.DisposableCollection();
|
|
36
|
-
}
|
|
37
|
-
init() {
|
|
38
|
-
this.id = PropertyViewWidget_1.ID;
|
|
39
|
-
this.title.label = PropertyViewWidget_1.LABEL;
|
|
40
|
-
this.title.caption = PropertyViewWidget_1.LABEL;
|
|
41
|
-
this.title.iconClass = (0, widget_1.codicon)('table');
|
|
42
|
-
this.title.closable = true;
|
|
43
|
-
this.addClass('theia-property-view-widget');
|
|
44
|
-
this.node.tabIndex = 0;
|
|
45
|
-
let disposed = false;
|
|
46
|
-
this.toDispose.push(core_1.Disposable.create(() => disposed = true));
|
|
47
|
-
this.toDispose.push(this.selectionService.onSelectionChanged((selection) => {
|
|
48
|
-
this.propertyViewService.getProvider(selection).then(provider => {
|
|
49
|
-
provider.provideWidget(selection).then(contentWidget => {
|
|
50
|
-
if (!disposed) {
|
|
51
|
-
this.replaceContentWidget(contentWidget);
|
|
52
|
-
provider.updateContentWidget(selection);
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
|
-
}));
|
|
57
|
-
}
|
|
58
|
-
initializeContentWidget(selection) {
|
|
59
|
-
this.propertyViewService.getProvider(selection).then(provider => {
|
|
60
|
-
provider.provideWidget(selection).then(contentWidget => {
|
|
61
|
-
this.attachContentWidget(contentWidget);
|
|
62
|
-
provider.updateContentWidget(selection);
|
|
63
|
-
});
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
replaceContentWidget(newContentWidget) {
|
|
67
|
-
if (this.contentWidget.id !== newContentWidget.id) {
|
|
68
|
-
if (this.contentWidget) {
|
|
69
|
-
widget_1.Widget.detach(this.contentWidget);
|
|
70
|
-
}
|
|
71
|
-
this.attachContentWidget(newContentWidget);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
attachContentWidget(newContentWidget) {
|
|
75
|
-
this.contentWidget = newContentWidget;
|
|
76
|
-
widget_1.Widget.attach(this.contentWidget, this.node);
|
|
77
|
-
this.toDisposeOnDetach = new disposable_1.DisposableCollection();
|
|
78
|
-
this.toDisposeOnDetach.push(core_1.Disposable.create(() => {
|
|
79
|
-
if (this.contentWidget) {
|
|
80
|
-
widget_1.Widget.detach(this.contentWidget);
|
|
81
|
-
}
|
|
82
|
-
}));
|
|
83
|
-
this.update();
|
|
84
|
-
}
|
|
85
|
-
onAfterAttach(msg) {
|
|
86
|
-
super.onAfterAttach(msg);
|
|
87
|
-
this.initializeContentWidget(this.selectionService.selection);
|
|
88
|
-
}
|
|
89
|
-
onActivateRequest(msg) {
|
|
90
|
-
super.onActivateRequest(msg);
|
|
91
|
-
this.node.focus();
|
|
92
|
-
if (this.contentWidget) {
|
|
93
|
-
this.contentWidget.activate();
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
onResize(msg) {
|
|
97
|
-
super.onResize(msg);
|
|
98
|
-
if (this.contentWidget) {
|
|
99
|
-
widget_1.MessageLoop.sendMessage(this.contentWidget, msg);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
exports.PropertyViewWidget = PropertyViewWidget;
|
|
104
|
-
PropertyViewWidget.ID = 'property-view';
|
|
105
|
-
PropertyViewWidget.LABEL = nls_1.nls.localize('theia/property-view/properties', 'Properties');
|
|
106
|
-
tslib_1.__decorate([
|
|
107
|
-
(0, inversify_1.inject)(property_view_service_1.PropertyViewService),
|
|
108
|
-
tslib_1.__metadata("design:type", property_view_service_1.PropertyViewService)
|
|
109
|
-
], PropertyViewWidget.prototype, "propertyViewService", void 0);
|
|
110
|
-
tslib_1.__decorate([
|
|
111
|
-
(0, inversify_1.inject)(core_1.SelectionService),
|
|
112
|
-
tslib_1.__metadata("design:type", core_1.SelectionService)
|
|
113
|
-
], PropertyViewWidget.prototype, "selectionService", void 0);
|
|
114
|
-
tslib_1.__decorate([
|
|
115
|
-
(0, inversify_1.postConstruct)(),
|
|
116
|
-
tslib_1.__metadata("design:type", Function),
|
|
117
|
-
tslib_1.__metadata("design:paramtypes", []),
|
|
118
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
119
|
-
], PropertyViewWidget.prototype, "init", null);
|
|
120
|
-
exports.PropertyViewWidget = PropertyViewWidget = PropertyViewWidget_1 = tslib_1.__decorate([
|
|
121
|
-
(0, inversify_1.injectable)()
|
|
122
|
-
], PropertyViewWidget);
|
|
123
|
-
//# sourceMappingURL=property-view-widget.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"property-view-widget.js","sourceRoot":"","sources":["../../src/browser/property-view-widget.tsx"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;;AAGhF,sCAA2D;AAC3D,mEAAkG;AAClG,kEAAyE;AACzE,4DAAiF;AAEjF,mEAA8D;AAC9D,oDAAiD;AAEjD;;;;GAIG;AAEI,IAAM,kBAAkB,0BAAxB,MAAM,kBAAmB,SAAQ,mBAAU;IAA3C;;QAOgB,sBAAiB,GAAG,IAAI,iCAAoB,EAAE,CAAC;IA+EtE,CAAC;IAzEG,IAAI;QACA,IAAI,CAAC,EAAE,GAAG,oBAAkB,CAAC,EAAE,CAAC;QAChC,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,oBAAkB,CAAC,KAAK,CAAC;QAC5C,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,oBAAkB,CAAC,KAAK,CAAC;QAC9C,IAAI,CAAC,KAAK,CAAC,SAAS,GAAG,IAAA,gBAAO,EAAC,OAAO,CAAC,CAAC;QACxC,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,IAAI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I,CAAC,aAAa,EAAE,CAAC;YACrB,oBAAW,CAAC,WAAW,CAAC,IAAI,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC;QACrD,CAAC;IACL,CAAC;;AArFQ,gDAAkB;AAEX,qBAAE,GAAG,eAAe,AAAlB,CAAmB;AACrB,wBAAK,GAAG,SAAG,CAAC,QAAQ,CAAC,gCAAgC,EAAE,YAAY,CAAC,AAA/D,CAAgE;AAMrC;IAA/C,IAAA,kBAAM,EAAC,2CAAmB,CAAC;sCAAyC,2CAAmB;+DAAC;AAC5C;IAA5C,IAAA,kBAAM,EAAC,uBAAgB,CAAC;sCAAsC,uBAAgB;4DAAC;AAGhF;IADC,IAAA,yBAAa,GAAE;;;;8CAuBf;6BAnCQ,kBAAkB;IAD9B,IAAA,sBAAU,GAAE;GACA,kBAAkB,CAsF9B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/browser/resource-property-view/index.ts"],"names":[],"mappings":"AAgBA,cAAc,yCAAyC,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2020 EclipseSource 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
|
-
const tslib_1 = require("tslib");
|
|
19
|
-
tslib_1.__exportStar(require("./resource-property-view-tree-container"), exports);
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/browser/resource-property-view/index.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;AAEhF,kFAAwD"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import URI from '@theia/core/lib/common/uri';
|
|
2
|
-
import { FileService } from '@theia/filesystem/lib/browser/file-service';
|
|
3
|
-
import { FileStat } from '@theia/filesystem/lib/common/files';
|
|
4
|
-
import { PropertyDataService } from '../property-data-service';
|
|
5
|
-
/**
|
|
6
|
-
* This data service provides property data for {@link FileSelection}s and selections of {@link Navigatable}s.
|
|
7
|
-
*/
|
|
8
|
-
export declare class ResourcePropertyDataService implements PropertyDataService {
|
|
9
|
-
readonly id = "resources";
|
|
10
|
-
readonly label = "ResourcePropertyDataService";
|
|
11
|
-
protected readonly fileService: FileService;
|
|
12
|
-
canHandleSelection(selection: Object | undefined): number;
|
|
13
|
-
protected isFileSelection(selection: Object | undefined): boolean;
|
|
14
|
-
protected isNavigatableSelection(selection: Object | undefined): boolean;
|
|
15
|
-
protected getFileStat(uri: URI): Promise<FileStat>;
|
|
16
|
-
providePropertyData(selection: Object | undefined): Promise<FileStat | undefined>;
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=resource-property-data-service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resource-property-data-service.d.ts","sourceRoot":"","sources":["../../../src/browser/resource-property-view/resource-property-data-service.ts"],"names":[],"mappings":"AAiBA,OAAO,GAAG,MAAM,4BAA4B,CAAC;AAE7C,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAE9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D;;GAEG;AACH,qBACa,2BAA4B,YAAW,mBAAmB;IAEnE,QAAQ,CAAC,EAAE,eAAe;IAC1B,QAAQ,CAAC,KAAK,iCAAiC;IAE1B,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAEjE,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM;IAIzD,SAAS,CAAC,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO;IAIjE,SAAS,CAAC,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO;cAIxD,WAAW,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,QAAQ,CAAC;IAIlD,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAC;CAY1F"}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2020 EclipseSource 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.ResourcePropertyDataService = void 0;
|
|
19
|
-
const tslib_1 = require("tslib");
|
|
20
|
-
const browser_1 = require("@theia/core/lib/browser");
|
|
21
|
-
const file_selection_1 = require("@theia/filesystem/lib/browser/file-selection");
|
|
22
|
-
const file_service_1 = require("@theia/filesystem/lib/browser/file-service");
|
|
23
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
24
|
-
/**
|
|
25
|
-
* This data service provides property data for {@link FileSelection}s and selections of {@link Navigatable}s.
|
|
26
|
-
*/
|
|
27
|
-
let ResourcePropertyDataService = class ResourcePropertyDataService {
|
|
28
|
-
constructor() {
|
|
29
|
-
this.id = 'resources';
|
|
30
|
-
this.label = 'ResourcePropertyDataService';
|
|
31
|
-
}
|
|
32
|
-
canHandleSelection(selection) {
|
|
33
|
-
return (this.isFileSelection(selection) || this.isNavigatableSelection(selection)) ? 1 : 0;
|
|
34
|
-
}
|
|
35
|
-
isFileSelection(selection) {
|
|
36
|
-
return !!selection && Array.isArray(selection) && file_selection_1.FileSelection.is(selection[0]);
|
|
37
|
-
}
|
|
38
|
-
isNavigatableSelection(selection) {
|
|
39
|
-
return !!selection && browser_1.Navigatable.is(selection);
|
|
40
|
-
}
|
|
41
|
-
async getFileStat(uri) {
|
|
42
|
-
return this.fileService.resolve(uri);
|
|
43
|
-
}
|
|
44
|
-
async providePropertyData(selection) {
|
|
45
|
-
if (this.isFileSelection(selection) && Array.isArray(selection)) {
|
|
46
|
-
return this.getFileStat(selection[0].fileStat.resource);
|
|
47
|
-
}
|
|
48
|
-
else if (this.isNavigatableSelection(selection)) {
|
|
49
|
-
const navigatableUri = selection.getResourceUri();
|
|
50
|
-
if (navigatableUri) {
|
|
51
|
-
return this.getFileStat(navigatableUri);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
return undefined;
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
exports.ResourcePropertyDataService = ResourcePropertyDataService;
|
|
58
|
-
tslib_1.__decorate([
|
|
59
|
-
(0, inversify_1.inject)(file_service_1.FileService),
|
|
60
|
-
tslib_1.__metadata("design:type", file_service_1.FileService)
|
|
61
|
-
], ResourcePropertyDataService.prototype, "fileService", void 0);
|
|
62
|
-
exports.ResourcePropertyDataService = ResourcePropertyDataService = tslib_1.__decorate([
|
|
63
|
-
(0, inversify_1.injectable)()
|
|
64
|
-
], ResourcePropertyDataService);
|
|
65
|
-
//# sourceMappingURL=resource-property-data-service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resource-property-data-service.js","sourceRoot":"","sources":["../../../src/browser/resource-property-view/resource-property-data-service.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF,qDAAsD;AAEtD,iFAA6E;AAC7E,6EAAyE;AAEzE,4DAAkE;AAGlE;;GAEG;AAEI,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IAAjC;QAEM,OAAE,GAAG,WAAW,CAAC;QACjB,UAAK,GAAG,6BAA6B,CAAC;IAgCnD,CAAC;IA5BG,kBAAkB,CAAC,SAA6B;QAC5C,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,sBAAsB,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC/F,CAAC;IAES,eAAe,CAAC,SAA6B;QACnD,OAAO,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,8BAAa,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;IACrF,CAAC;IAES,sBAAsB,CAAC,SAA6B;QAC1D,OAAO,CAAC,CAAC,SAAS,IAAI,qBAAW,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC;IACpD,CAAC;IAES,KAAK,CAAC,WAAW,CAAC,GAAQ;QAChC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACzC,CAAC;IAED,KAAK,CAAC,mBAAmB,CAAC,SAA6B;QACnD,IAAI,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC;YAC9D,OAAO,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC5D,CAAC;aAAM,IAAI,IAAI,CAAC,sBAAsB,CAAC,SAAS,CAAC,EAAE,CAAC;YAChD,MAAM,cAAc,GAAI,SAAyB,CAAC,cAAc,EAAE,CAAC;YACnE,IAAI,cAAc,EAAE,CAAC;gBACjB,OAAO,IAAI,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;YAC5C,CAAC;QACL,CAAC;QACD,OAAO,SAAS,CAAC;IACrB,CAAC;CAEJ,CAAA;AAnCY,kEAA2B;AAKI;IAAvC,IAAA,kBAAM,EAAC,0BAAW,CAAC;sCAAiC,0BAAW;gEAAC;sCALxD,2BAA2B;IADvC,IAAA,sBAAU,GAAE;GACA,2BAA2B,CAmCvC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resource-property-data-service.spec.d.ts","sourceRoot":"","sources":["../../../src/browser/resource-property-view/resource-property-data-service.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,102 +0,0 @@
|
|
|
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
|
-
const jsdom_1 = require("@theia/core/lib/browser/test/jsdom");
|
|
19
|
-
let disableJSDOM = (0, jsdom_1.enableJSDOM)();
|
|
20
|
-
const frontend_application_config_provider_1 = require("@theia/core/lib/browser/frontend-application-config-provider");
|
|
21
|
-
frontend_application_config_provider_1.FrontendApplicationConfigProvider.set({});
|
|
22
|
-
const chai_1 = require("chai");
|
|
23
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
24
|
-
const resource_property_data_service_1 = require("./resource-property-data-service");
|
|
25
|
-
const file_service_1 = require("@theia/filesystem/lib/browser/file-service");
|
|
26
|
-
const uri_1 = require("@theia/core/lib/common/uri");
|
|
27
|
-
const property_data_service_1 = require("../property-data-service");
|
|
28
|
-
disableJSDOM();
|
|
29
|
-
let resourcePropertyDataService;
|
|
30
|
-
const mockFileStat = {
|
|
31
|
-
isFile: false,
|
|
32
|
-
isDirectory: true,
|
|
33
|
-
isSymbolicLink: false,
|
|
34
|
-
isReadonly: false,
|
|
35
|
-
resource: new uri_1.default('resource'),
|
|
36
|
-
name: 'name'
|
|
37
|
-
};
|
|
38
|
-
describe('resource-property-data-service', () => {
|
|
39
|
-
before(() => {
|
|
40
|
-
disableJSDOM = (0, jsdom_1.enableJSDOM)();
|
|
41
|
-
const container = new inversify_1.Container();
|
|
42
|
-
container.bind(resource_property_data_service_1.ResourcePropertyDataService).toSelf().inSingletonScope();
|
|
43
|
-
container.bind(file_service_1.FileService).toConstantValue({
|
|
44
|
-
async resolve(uri) {
|
|
45
|
-
return mockFileStat;
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
container.bind(property_data_service_1.PropertyDataService).to(resource_property_data_service_1.ResourcePropertyDataService).inSingletonScope();
|
|
49
|
-
resourcePropertyDataService = container.get(resource_property_data_service_1.ResourcePropertyDataService);
|
|
50
|
-
});
|
|
51
|
-
after(() => {
|
|
52
|
-
disableJSDOM();
|
|
53
|
-
});
|
|
54
|
-
const navigatableSelection = {
|
|
55
|
-
getResourceUri() {
|
|
56
|
-
return new uri_1.default('resource-uri');
|
|
57
|
-
},
|
|
58
|
-
createMoveToUri() {
|
|
59
|
-
return new uri_1.default('move-uri');
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
const fileSelection = [
|
|
63
|
-
{ fileStat: mockFileStat }
|
|
64
|
-
];
|
|
65
|
-
describe('#canHandle', () => {
|
|
66
|
-
it('should not handle an empty object selection', () => {
|
|
67
|
-
(0, chai_1.expect)(resourcePropertyDataService.canHandleSelection({})).eq(0);
|
|
68
|
-
});
|
|
69
|
-
it('should not handle an undefined selection', () => {
|
|
70
|
-
(0, chai_1.expect)(resourcePropertyDataService.canHandleSelection(undefined)).eq(0);
|
|
71
|
-
});
|
|
72
|
-
it('should handle a file selection', () => {
|
|
73
|
-
(0, chai_1.expect)(resourcePropertyDataService.canHandleSelection(fileSelection)).to.be.greaterThan(0);
|
|
74
|
-
});
|
|
75
|
-
it('should handle a navigatable selection', () => {
|
|
76
|
-
(0, chai_1.expect)(resourcePropertyDataService.canHandleSelection(navigatableSelection)).to.be.greaterThan(0);
|
|
77
|
-
});
|
|
78
|
-
});
|
|
79
|
-
describe('#providePropertyData', () => {
|
|
80
|
-
it('should return the file-stat of a file selection', async () => {
|
|
81
|
-
const data = await resourcePropertyDataService.providePropertyData(fileSelection);
|
|
82
|
-
(0, chai_1.expect)(data).to.equal(mockFileStat);
|
|
83
|
-
});
|
|
84
|
-
it('should return the first file-stat for multiple file selections', async () => {
|
|
85
|
-
const arrayFileSelection = [
|
|
86
|
-
{ fileStat: mockFileStat },
|
|
87
|
-
{ fileStat: { ...mockFileStat, resource: new uri_1.default('secondURI') } }
|
|
88
|
-
];
|
|
89
|
-
const data = await resourcePropertyDataService.providePropertyData(arrayFileSelection);
|
|
90
|
-
(0, chai_1.expect)(data).to.equal(arrayFileSelection[0].fileStat);
|
|
91
|
-
});
|
|
92
|
-
it('should return the file-stat for a navigatable selection', async () => {
|
|
93
|
-
const data = await resourcePropertyDataService.providePropertyData(navigatableSelection);
|
|
94
|
-
(0, chai_1.expect)(data).to.equal(mockFileStat);
|
|
95
|
-
});
|
|
96
|
-
it('should return undefined if the selection is undefined', async () => {
|
|
97
|
-
const data = await resourcePropertyDataService.providePropertyData(undefined);
|
|
98
|
-
(0, chai_1.expect)(data).to.equal(undefined);
|
|
99
|
-
});
|
|
100
|
-
});
|
|
101
|
-
});
|
|
102
|
-
//# sourceMappingURL=resource-property-data-service.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resource-property-data-service.spec.js","sourceRoot":"","sources":["../../../src/browser/resource-property-view/resource-property-data-service.spec.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;AAEhF,8DAAiE;AAEjE,IAAI,YAAY,GAAG,IAAA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CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,gEAAgE,EAAE,KAAK,IAAI,EAAE;YAC5E,MAAM,kBAAkB,GAAoB;gBACxC,EAAE,QAAQ,EAAE,YAAY,EAAE;gBAC1B,EAAE,QAAQ,EAAE,EAAE,GAAG,YAAY,EAAE,QAAQ,EAAE,IAAI,aAAG,CAAC,WAAW,CAAC,EAAE,EAAE;aACpE,CAAC;YACF,MAAM,IAAI,GAAG,MAAM,2BAA2B,CAAC,mBAAmB,CAAC,kBAAkB,CAAC,CAAC;YACvF,IAAA,aAAM,EAAC,IAAI,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;QAC1D,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,yDAAyD,EAAE,KAAK,IAAI,EAAE;YACrE,MAAM,IAAI,GAAG,MAAM,2BAA2B,CAAC,mBAAmB,CAAC,oBAAoB,CAAC,CAAC;YACzF,IAAA,aAAM,EAAC,IAAI,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;QACxC,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,uDAAuD,EAAE,KAAK,IAAI,EAAE;YACnE,MAAM,IAAI,GAAG,MAAM,2BAA2B,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC;YAC9E,IAAA,aAAM,EAAC,IAAI,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QACrC,CAAC,CAAC,CAAC;IAEP,CAAC,CAAC,CAAC;AAEP,CAAC,CAAC,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { LabelProvider, LabelProviderContribution, TreeNode } from '@theia/core/lib/browser';
|
|
2
|
-
import { ResourcePropertiesCategoryNode, ResourcePropertiesItemNode } from './resource-property-view-tree-items';
|
|
3
|
-
export declare const DEFAULT_INFO_ICON: string;
|
|
4
|
-
export declare class ResourcePropertiesLabelProvider implements LabelProviderContribution {
|
|
5
|
-
protected readonly labelProvider: LabelProvider;
|
|
6
|
-
canHandle(element: TreeNode): number;
|
|
7
|
-
getIcon(node: ResourcePropertiesCategoryNode | ResourcePropertiesItemNode): string;
|
|
8
|
-
getName(node: ResourcePropertiesCategoryNode | ResourcePropertiesItemNode): string;
|
|
9
|
-
getLongName(node: ResourcePropertiesCategoryNode | ResourcePropertiesItemNode): string;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=resource-property-view-label-provider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resource-property-view-label-provider.d.ts","sourceRoot":"","sources":["../../../src/browser/resource-property-view/resource-property-view-label-provider.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAW,aAAa,EAAE,yBAAyB,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAEtG,OAAO,EAAE,8BAA8B,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AAEjH,eAAO,MAAM,iBAAiB,QAAkB,CAAC;AAEjD,qBACa,+BAAgC,YAAW,yBAAyB;IAEtD,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IAEvE,SAAS,CAAC,OAAO,EAAE,QAAQ,GAAG,MAAM;IAIpC,OAAO,CAAC,IAAI,EAAE,8BAA8B,GAAG,0BAA0B,GAAG,MAAM;IAOlF,OAAO,CAAC,IAAI,EAAE,8BAA8B,GAAG,0BAA0B,GAAG,MAAM;IAIlF,WAAW,CAAC,IAAI,EAAE,8BAA8B,GAAG,0BAA0B,GAAG,MAAM;CAMzF"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2020 EclipseSource 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.ResourcePropertiesLabelProvider = exports.DEFAULT_INFO_ICON = void 0;
|
|
19
|
-
const tslib_1 = require("tslib");
|
|
20
|
-
const browser_1 = require("@theia/core/lib/browser");
|
|
21
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
22
|
-
const resource_property_view_tree_items_1 = require("./resource-property-view-tree-items");
|
|
23
|
-
exports.DEFAULT_INFO_ICON = (0, browser_1.codicon)('info');
|
|
24
|
-
let ResourcePropertiesLabelProvider = class ResourcePropertiesLabelProvider {
|
|
25
|
-
canHandle(element) {
|
|
26
|
-
return (resource_property_view_tree_items_1.ResourcePropertiesCategoryNode.is(element) || resource_property_view_tree_items_1.ResourcePropertiesItemNode.is(element)) ? 75 : 0;
|
|
27
|
-
}
|
|
28
|
-
getIcon(node) {
|
|
29
|
-
var _a, _b;
|
|
30
|
-
if (resource_property_view_tree_items_1.ResourcePropertiesCategoryNode.is(node)) {
|
|
31
|
-
return (_a = node.icon) !== null && _a !== void 0 ? _a : exports.DEFAULT_INFO_ICON;
|
|
32
|
-
}
|
|
33
|
-
return (_b = node.icon) !== null && _b !== void 0 ? _b : '';
|
|
34
|
-
}
|
|
35
|
-
getName(node) {
|
|
36
|
-
return node.name;
|
|
37
|
-
}
|
|
38
|
-
getLongName(node) {
|
|
39
|
-
if (resource_property_view_tree_items_1.ResourcePropertiesItemNode.is(node)) {
|
|
40
|
-
return node.property;
|
|
41
|
-
}
|
|
42
|
-
return this.getName(node);
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
exports.ResourcePropertiesLabelProvider = ResourcePropertiesLabelProvider;
|
|
46
|
-
tslib_1.__decorate([
|
|
47
|
-
(0, inversify_1.inject)(browser_1.LabelProvider),
|
|
48
|
-
tslib_1.__metadata("design:type", browser_1.LabelProvider)
|
|
49
|
-
], ResourcePropertiesLabelProvider.prototype, "labelProvider", void 0);
|
|
50
|
-
exports.ResourcePropertiesLabelProvider = ResourcePropertiesLabelProvider = tslib_1.__decorate([
|
|
51
|
-
(0, inversify_1.injectable)()
|
|
52
|
-
], ResourcePropertiesLabelProvider);
|
|
53
|
-
//# sourceMappingURL=resource-property-view-label-provider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resource-property-view-label-provider.js","sourceRoot":"","sources":["../../../src/browser/resource-property-view/resource-property-view-label-provider.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF,qDAAsG;AACtG,4DAAkE;AAClE,2FAAiH;AAEpG,QAAA,iBAAiB,GAAG,IAAA,iBAAO,EAAC,MAAM,CAAC,CAAC;AAG1C,IAAM,+BAA+B,GAArC,MAAM,+BAA+B;IAIxC,SAAS,CAAC,OAAiB;QACvB,OAAO,CAAC,kEAA8B,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,8DAA0B,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3G,CAAC;IAED,OAAO,CAAC,IAAiE;;QACrE,IAAI,kEAA8B,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;YAC1C,OAAO,MAAA,IAAI,CAAC,IAAI,mCAAI,yBAAiB,CAAC;QAC1C,CAAC;QACD,OAAO,MAAA,IAAI,CAAC,IAAI,mCAAI,EAAE,CAAC;IAC3B,CAAC;IAED,OAAO,CAAC,IAAiE;QACrE,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAED,WAAW,CAAC,IAAiE;QACzE,IAAI,8DAA0B,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;YACtC,OAAO,IAAI,CAAC,QAAQ,CAAC;QACzB,CAAC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;CACJ,CAAA;AAzBY,0EAA+B;AAEE;IAAzC,IAAA,kBAAM,EAAC,uBAAa,CAAC;sCAAmC,uBAAa;sEAAC;0CAF9D,+BAA+B;IAD3C,IAAA,sBAAU,GAAE;GACA,+BAA+B,CAyB3C"}
|
package/lib/browser/resource-property-view/resource-property-view-label-provider.spec.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resource-property-view-label-provider.spec.d.ts","sourceRoot":"","sources":["../../../src/browser/resource-property-view/resource-property-view-label-provider.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,130 +0,0 @@
|
|
|
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
|
-
const jsdom_1 = require("@theia/core/lib/browser/test/jsdom");
|
|
19
|
-
let disableJSDOM = (0, jsdom_1.enableJSDOM)();
|
|
20
|
-
const chai_1 = require("chai");
|
|
21
|
-
const frontend_application_config_provider_1 = require("@theia/core/lib/browser/frontend-application-config-provider");
|
|
22
|
-
frontend_application_config_provider_1.FrontendApplicationConfigProvider.set({});
|
|
23
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
24
|
-
const resource_property_view_label_provider_1 = require("./resource-property-view-label-provider");
|
|
25
|
-
const label_provider_1 = require("@theia/core/lib/browser/label-provider");
|
|
26
|
-
const common_1 = require("@theia/core/lib/common");
|
|
27
|
-
disableJSDOM();
|
|
28
|
-
let resourcePropertiesLabelProvider;
|
|
29
|
-
describe('resource-property-view-label', () => {
|
|
30
|
-
before(() => {
|
|
31
|
-
disableJSDOM = (0, jsdom_1.enableJSDOM)();
|
|
32
|
-
const container = new inversify_1.Container();
|
|
33
|
-
container.bind(resource_property_view_label_provider_1.ResourcePropertiesLabelProvider).toSelf().inSingletonScope();
|
|
34
|
-
container.bind(label_provider_1.LabelProvider).toSelf().inSingletonScope();
|
|
35
|
-
container.bind(common_1.ContributionProvider)
|
|
36
|
-
.toConstantValue({
|
|
37
|
-
getContributions: () => [],
|
|
38
|
-
})
|
|
39
|
-
.whenTargetNamed(label_provider_1.LabelProviderContribution);
|
|
40
|
-
resourcePropertiesLabelProvider = container.get(resource_property_view_label_provider_1.ResourcePropertiesLabelProvider);
|
|
41
|
-
});
|
|
42
|
-
after(() => {
|
|
43
|
-
disableJSDOM();
|
|
44
|
-
});
|
|
45
|
-
const categoryNode = {
|
|
46
|
-
name: 'category',
|
|
47
|
-
id: '',
|
|
48
|
-
icon: 'iconCategory',
|
|
49
|
-
children: [],
|
|
50
|
-
parent: {
|
|
51
|
-
id: '',
|
|
52
|
-
parent: undefined,
|
|
53
|
-
children: []
|
|
54
|
-
},
|
|
55
|
-
categoryId: '',
|
|
56
|
-
expanded: false,
|
|
57
|
-
selected: false,
|
|
58
|
-
};
|
|
59
|
-
const itemNode = {
|
|
60
|
-
name: 'item',
|
|
61
|
-
id: '',
|
|
62
|
-
icon: 'iconItem',
|
|
63
|
-
selected: false,
|
|
64
|
-
parent: {
|
|
65
|
-
name: 'category',
|
|
66
|
-
id: '',
|
|
67
|
-
icon: '',
|
|
68
|
-
children: [],
|
|
69
|
-
parent: {
|
|
70
|
-
id: '',
|
|
71
|
-
parent: undefined,
|
|
72
|
-
children: []
|
|
73
|
-
},
|
|
74
|
-
categoryId: '',
|
|
75
|
-
expanded: false,
|
|
76
|
-
selected: false,
|
|
77
|
-
},
|
|
78
|
-
property: 'property'
|
|
79
|
-
};
|
|
80
|
-
describe('#canHandle', () => {
|
|
81
|
-
it('should handle a category node', () => {
|
|
82
|
-
(0, chai_1.expect)(resourcePropertiesLabelProvider.canHandle(categoryNode)).to.be.greaterThan(0);
|
|
83
|
-
});
|
|
84
|
-
it('should handle an item node', () => {
|
|
85
|
-
(0, chai_1.expect)(resourcePropertiesLabelProvider.canHandle(itemNode)).to.be.greaterThan(0);
|
|
86
|
-
});
|
|
87
|
-
it('should not handle a tree node (not an item nor a category)', () => {
|
|
88
|
-
const node = {
|
|
89
|
-
id: '',
|
|
90
|
-
parent: undefined
|
|
91
|
-
};
|
|
92
|
-
(0, chai_1.expect)(resourcePropertiesLabelProvider.canHandle(node)).eq(0);
|
|
93
|
-
});
|
|
94
|
-
});
|
|
95
|
-
describe('#getIcon', () => {
|
|
96
|
-
it('should get the icon of a category node', () => {
|
|
97
|
-
(0, chai_1.expect)(resourcePropertiesLabelProvider.getIcon(categoryNode)).eq('iconCategory');
|
|
98
|
-
});
|
|
99
|
-
it('should get the default icon if a category node has an undefined icon field', () => {
|
|
100
|
-
const emptyIconCategory = categoryNode;
|
|
101
|
-
emptyIconCategory.icon = undefined;
|
|
102
|
-
(0, chai_1.expect)(resourcePropertiesLabelProvider.getIcon(emptyIconCategory)).eq(resource_property_view_label_provider_1.DEFAULT_INFO_ICON);
|
|
103
|
-
});
|
|
104
|
-
it('should get the icon of an item node', () => {
|
|
105
|
-
(0, chai_1.expect)(resourcePropertiesLabelProvider.getIcon(itemNode)).eq('iconItem');
|
|
106
|
-
});
|
|
107
|
-
it('should get an empty string if an item node has an undefined icon field', () => {
|
|
108
|
-
const emptyIconItem = itemNode;
|
|
109
|
-
emptyIconItem.icon = undefined;
|
|
110
|
-
(0, chai_1.expect)(resourcePropertiesLabelProvider.getIcon(emptyIconItem)).eq('');
|
|
111
|
-
});
|
|
112
|
-
});
|
|
113
|
-
describe('#getName', () => {
|
|
114
|
-
it('should get the name of a category node', () => {
|
|
115
|
-
(0, chai_1.expect)(resourcePropertiesLabelProvider.getName(categoryNode)).eq('category');
|
|
116
|
-
});
|
|
117
|
-
it('should get the name of an item node', () => {
|
|
118
|
-
(0, chai_1.expect)(resourcePropertiesLabelProvider.getName(itemNode)).eq('item');
|
|
119
|
-
});
|
|
120
|
-
});
|
|
121
|
-
describe('#getLongName', () => {
|
|
122
|
-
it('should get the property of an item node', () => {
|
|
123
|
-
(0, chai_1.expect)(resourcePropertiesLabelProvider.getLongName(itemNode)).eq('property');
|
|
124
|
-
});
|
|
125
|
-
it('should get the name of a category node', () => {
|
|
126
|
-
(0, chai_1.expect)(resourcePropertiesLabelProvider.getLongName(categoryNode)).eq('category');
|
|
127
|
-
});
|
|
128
|
-
});
|
|
129
|
-
});
|
|
130
|
-
//# sourceMappingURL=resource-property-view-label-provider.spec.js.map
|
package/lib/browser/resource-property-view/resource-property-view-label-provider.spec.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resource-property-view-label-provider.spec.js","sourceRoot":"","sources":["../../../src/browser/resource-property-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