-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix unit test case by adapting to new Theia behavior
- Loading branch information
1 parent
f58d931
commit 44f81a3
Showing
6 changed files
with
111 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
packages/glsp-client/src/browser/system-diagram/system-diagram-manager.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/******************************************************************************** | ||
* Copyright (c) 2024 CrossBreeze. | ||
********************************************************************************/ | ||
|
||
import { codiconCSSString } from '@eclipse-glsp/client'; | ||
import { GLSPDiagramManager } from '@eclipse-glsp/theia-integration'; | ||
import { OpenWithHandler, OpenWithService } from '@theia/core/lib/browser'; | ||
import { inject, injectable, postConstruct } from '@theia/core/shared/inversify'; | ||
import { SystemDiagramLanguage } from '../../common/crossmodel-diagram-language'; | ||
|
||
@injectable() | ||
export class SystemDiagramManager extends GLSPDiagramManager implements OpenWithHandler { | ||
@inject(OpenWithService) protected readonly openWithService: OpenWithService; | ||
|
||
@postConstruct() | ||
protected override init(): void { | ||
this.openWithService.registerHandler(this); | ||
super.init(); | ||
} | ||
|
||
get label(): string { | ||
return SystemDiagramLanguage.label; | ||
} | ||
|
||
override get iconClass(): string { | ||
return SystemDiagramLanguage.iconClass ?? codiconCSSString('type-hierarchy-sub'); | ||
} | ||
|
||
override get fileExtensions(): string[] { | ||
return SystemDiagramLanguage.fileExtensions; | ||
} | ||
|
||
override get diagramType(): string { | ||
return SystemDiagramLanguage.diagramType; | ||
} | ||
|
||
override get contributionId(): string { | ||
return SystemDiagramLanguage.contributionId; | ||
} | ||
} |