-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1ae27fc
commit 4308c5d
Showing
3 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
client/packages/uml-protocol/src/action-protocol/model.action.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,37 @@ | ||
/********************************************************************************* | ||
* Copyright (c) 2023 borkdominik and others. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the MIT License which is available at https://opensource.org/licenses/MIT. | ||
* | ||
* SPDX-License-Identifier: MIT | ||
*********************************************************************************/ | ||
|
||
import { Action, RequestAction, ResponseAction } from '@eclipse-glsp/protocol'; | ||
|
||
export interface RequestModelResourcesAction extends RequestAction<ModelResourcesResponseAction> { | ||
kind: typeof RequestModelResourcesAction.KIND; | ||
} | ||
export namespace RequestModelResourcesAction { | ||
export const KIND = 'requestModelResources'; | ||
|
||
export function create(): RequestModelResourcesAction { | ||
return { | ||
kind: KIND, | ||
requestId: RequestAction.generateRequestId() | ||
}; | ||
} | ||
} | ||
|
||
export interface ModelResourcesResponseAction extends ResponseAction { | ||
kind: typeof ModelResourcesResponseAction.KIND; | ||
resources: Record<string, string>; | ||
} | ||
|
||
export namespace ModelResourcesResponseAction { | ||
export const KIND = 'modelResourcesResponse'; | ||
|
||
export function is(action: unknown): action is ModelResourcesResponseAction { | ||
return Action.hasKind(action, KIND); | ||
} | ||
} |
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