Skip to content

Commit bec55a8

Browse files
authored
Remove EMF Cloud Tree Editor template (#246)
1 parent 6e182c4 commit bec55a8

15 files changed

+0
-1142
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ The generator allows to generate an example extension that is directly part of t
5353
| `hello-world` | Creates a simple extension which provides a command and menu item which displays a message | [readme](https://github.com/eclipse-theia/generator-theia-extension/blob/master/templates/hello-world/README.md) |
5454
| `widget` | Creates the basis for a simple widget including a toggle command, alert message and button displaying a message. The template also contains an example unit test. | [readme](https://github.com/eclipse-theia/generator-theia-extension/blob/master/templates/widget/README.md) |
5555
| `labelprovider` | Creates a simple extension which adds a custom label (with icon) for .my files | [readme](https://github.com/eclipse-theia/generator-theia-extension/blob/master/templates/labelprovider/README.md) |
56-
| `tree-editor` | Creates a tree editor extension | [readme](https://github.com/eclipse-theia/generator-theia-extension/blob/master/templates/tree-editor/README.md) |
5756
| `empty` | Creates a simple, minimal extension | [readme](https://github.com/eclipse-theia/generator-theia-extension/blob/master/templates/empty/README.md) |
5857
| `backend` | Creates a backend communication extension | [readme](https://github.com/eclipse-theia/generator-theia-extension/blob/master/templates/backend/README.md) |
5958
| `diagram-editor` | Creates a diagram editor extension | [readme](https://github.com/eclipse-glsp/glsp-examples/blob/master/README.md) |

src/app/index.ts

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ enum ExtensionType {
3030
HelloWorld = 'hello-world',
3131
Widget = 'widget',
3232
LabelProvider = 'labelprovider',
33-
TreeEditor = 'tree-editor',
3433
Empty = 'empty',
3534
Backend = 'backend',
3635
DiagramEditor = 'diagram-editor',
@@ -186,7 +185,6 @@ module.exports = class TheiaExtension extends Base {
186185
{ value: ExtensionType.HelloWorld, name: 'Hello World' },
187186
{ value: ExtensionType.Widget, name: 'Widget (with unit tests)' },
188187
{ value: ExtensionType.LabelProvider, name: 'LabelProvider' },
189-
{ value: ExtensionType.TreeEditor, name: 'TreeEditor' },
190188
{ value: ExtensionType.Backend, name: 'Backend Communication' },
191189
{ value: ExtensionType.Empty, name: 'Empty' },
192190
{ value: ExtensionType.DiagramEditor, name: 'DiagramEditor' },
@@ -264,9 +262,6 @@ module.exports = class TheiaExtension extends Base {
264262
}
265263
this.params.dependencies = '';
266264
this.params.browserDevDependencies = '';
267-
if (this.params.extensionType === ExtensionType.TreeEditor) {
268-
this.params.dependencies = `,\n "@theia/editor": "${this.params.theiaVersion}",\n "@theia/filesystem": "${this.params.theiaVersion}",\n "@theia/workspace": "${this.params.theiaVersion}",\n "@eclipse-emfcloud/theia-tree-editor": "next",\n "@jsonforms/core": "^3.1.0",\n "@jsonforms/react": "^3.1.0",\n "@jsonforms/vanilla-renderers": "^3.1.0",\n "uuid": "^3.3.2"`;
269-
}
270265
if (this.params.extensionType === ExtensionType.Widget) {
271266
this.params.devdependencies = `,\n "@testing-library/react": "^11.2.7",\n "@types/jest": "^26.0.20",\n "jest": "^26.6.3",\n "ts-node": "^10.9.1",\n "ts-jest": "^26.5.6"`;
272267
this.params.scripts = `,\n "test": "jest --config configs/jest.config.ts"`;
@@ -474,43 +469,6 @@ module.exports = class TheiaExtension extends Base {
474469
);
475470
}
476471

477-
/** tree-editor */
478-
if (this.params.extensionType === ExtensionType.TreeEditor) {
479-
this.fs.copyTpl(
480-
this.templatePath('tree-editor/example-file'),
481-
this.extensionPath(`src/browser/example-file`),
482-
{ params: this.params }
483-
);
484-
this.fs.copyTpl(
485-
this.templatePath('tree-editor/style'),
486-
this.extensionPath(`src/browser/style`),
487-
{ params: this.params }
488-
);
489-
this.fs.copyTpl(
490-
this.templatePath('tree-editor/tree'),
491-
this.extensionPath(`src/browser/tree`),
492-
{ params: this.params }
493-
);
494-
this.fs.copyTpl(
495-
this.templatePath('tree-editor/README.md'),
496-
this.extensionPath(`README.md`),
497-
);
498-
this.fs.copyTpl(
499-
this.templatePath('tree-editor/tree-contribution.ts'),
500-
this.extensionPath(`src/browser/tree-contribution.ts`),
501-
{ params: this.params }
502-
);
503-
this.fs.copyTpl(
504-
this.templatePath('tree-editor/tree-frontend-module.ts'),
505-
this.extensionPath(`src/browser/${this.params.extensionPath}-frontend-module.ts`),
506-
);
507-
this.fs.copyTpl(
508-
this.templatePath('tree-editor/tree-label-provider-contribution.ts'),
509-
this.extensionPath(`src/browser/tree-label-provider-contribution.ts`),
510-
{ params: this.params }
511-
);
512-
}
513-
514472
/** DiagramEditor */
515473
if (this.params.extensionType === ExtensionType.DiagramEditor) {
516474
const baseDir = `./glsp-examples-${glspExamplesRepositoryTag}`;

templates/tree-editor/README.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

templates/tree-editor/example-file/example-file-command.ts

Lines changed: 0 additions & 109 deletions
This file was deleted.

templates/tree-editor/example-file/example-file-contribution.ts

Lines changed: 0 additions & 43 deletions
This file was deleted.

templates/tree-editor/style/editor.css

Lines changed: 0 additions & 8 deletions
This file was deleted.

templates/tree-editor/tree-contribution.ts

Lines changed: 0 additions & 55 deletions
This file was deleted.

templates/tree-editor/tree-frontend-module.ts

Lines changed: 0 additions & 54 deletions
This file was deleted.

templates/tree-editor/tree-label-provider-contribution.ts

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)