-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…scribing (#49) * #48 Fix unsubscription on closing/reloading application Until now unsubscribe was only triggered if a diagram editor was closed but not on application close/refresh. Fixes #48 * #47 Update to latest GLSP version due to API breaks - Refactoring of OperationHandler type hierarchy API, see also eclipse-glsp/glsp-server#187 - Stay with executeOperation method as we manage command stack via Model Server - Merge interfaces and abstract operation handler classes - Update GLSP and Model Server dependencies Part of #47 * #43 Follow-up: Update maven settings and Jenkinsbuild - Remove maven config and only use custom maven settings if necessary (i.e. Jenkinsbuild) - Remove maven config and settings from project template - Update Jenkinsbuild (do not build project-template with base framework as we have a separate build job for this)
- Loading branch information
Showing
23 changed files
with
109 additions
and
201 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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
29 changes: 0 additions & 29 deletions
29
.../emfcloud/modelserver/glsp/operations/handlers/AbstractEMSCreateEdgeOperationHandler.java
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
.../emfcloud/modelserver/glsp/operations/handlers/AbstractEMSCreateNodeOperationHandler.java
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
...ipse/emfcloud/modelserver/glsp/operations/handlers/AbstractEMSCreateOperationHandler.java
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
...rg/eclipse/emfcloud/modelserver/glsp/operations/handlers/AbstractEMSOperationHandler.java
This file was deleted.
Oops, something went wrong.
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
48 changes: 48 additions & 0 deletions
48
.../org/eclipse/emfcloud/modelserver/glsp/operations/handlers/EMSCreateOperationHandler.java
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,48 @@ | ||
/******************************************************************************** | ||
* Copyright (c) 2021-2023 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 | ||
* https://www.eclipse.org/legal/epl-2.0, or the MIT License which is | ||
* available at https://opensource.org/licenses/MIT. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 OR MIT | ||
********************************************************************************/ | ||
package org.eclipse.emfcloud.modelserver.glsp.operations.handlers; | ||
|
||
import java.util.List; | ||
|
||
import org.eclipse.emfcloud.modelserver.glsp.EMSModelServerAccess; | ||
import org.eclipse.emfcloud.modelserver.glsp.EMSModelState; | ||
import org.eclipse.glsp.server.operations.CreateOperation; | ||
import org.eclipse.glsp.server.operations.CreateOperationHandler; | ||
|
||
import com.google.common.collect.Lists; | ||
import com.google.inject.Inject; | ||
|
||
public abstract class EMSCreateOperationHandler<T extends CreateOperation> | ||
extends EMSOperationHandler<T> implements CreateOperationHandler<T> { | ||
|
||
@Inject | ||
protected EMSModelState modelState; | ||
@Inject | ||
protected EMSModelServerAccess modelServerAccess; | ||
|
||
protected List<String> handledElementTypeIds; | ||
|
||
public EMSCreateOperationHandler(final String... elementTypeIds) { | ||
this(Lists.newArrayList(elementTypeIds)); | ||
} | ||
|
||
public EMSCreateOperationHandler(final List<String> handledElementTypeIds) { | ||
this.handledElementTypeIds = handledElementTypeIds; | ||
} | ||
|
||
@Override | ||
public List<String> getHandledElementTypeIds() { return handledElementTypeIds; } | ||
|
||
public void setHandledElementTypeIds(final List<String> handledElementTypeIds) { | ||
this.handledElementTypeIds = handledElementTypeIds; | ||
} | ||
|
||
} |
Oops, something went wrong.