-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adapt integration code to conform to the changes of : eclipse-glsp/glsp-client#132 Also: -Fix bug and typo in glsp-theia-container-module -Cleanup implementation of glsp-client-contribution and ensure that the ready() promise resolves AFTER the server has been initialized. - Remove unncessary injected `TheiaGLSPConnector`in `GLSPTheiaDiagramServer` - Re-add WorkflowGLSPClientContribution (provides custom initialize options) - Add utility function for configuring a digram server. Requires eclipse-glsp/glsp-client#132 Part-of eclipse-glsp/glsp/issues/315
- Loading branch information
Showing
11 changed files
with
152 additions
and
94 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
39 changes: 39 additions & 0 deletions
39
examples/workflow-theia/src/browser/workflow-glsp-client-contribution.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,39 @@ | ||
/******************************************************************************** | ||
* Copyright (c) 2019-2021 EclipseSource and others. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License v. 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* This Source Code may also be made available under the following Secondary | ||
* Licenses when the conditions for such availability set forth in the Eclipse | ||
* Public License v. 2.0 are satisfied: GNU General Public License, version 2 | ||
* with the GNU Classpath Exception which is available at | ||
* https://www.gnu.org/software/classpath/license.html. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 | ||
********************************************************************************/ | ||
import { Args } from '@eclipse-glsp/client'; | ||
import { BaseGLSPClientContribution } from '@eclipse-glsp/theia-integration/lib/browser'; | ||
import { injectable } from '@theia/core/shared/inversify'; | ||
|
||
import { MaybePromise } from '../../../../../glsp-client/packages/protocol/lib'; | ||
import { WorkflowLanguage } from '../common/workflow-language'; | ||
|
||
export interface WorkflowInitializeOptions { | ||
timestamp: Date; | ||
message: string; | ||
} | ||
|
||
@injectable() | ||
export class WorkflowGLSPClientContribution extends BaseGLSPClientContribution { | ||
readonly id = WorkflowLanguage.contributionId; | ||
readonly fileExtensions = WorkflowLanguage.fileExtensions; | ||
|
||
protected createInitializeOptions(): MaybePromise<Args | undefined> { | ||
return { | ||
['timestamp']: new Date().toString(), | ||
['message']: 'Custom Options Available' | ||
}; | ||
} | ||
} |
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
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
Oops, something went wrong.