Skip to content

Commit

Permalink
Adapt to refactoring of GModel source model classes & log4j
Browse files Browse the repository at this point in the history
  * Adaptations for eclipse-glsp/glsp-server#165
  * TPD update, see eclipse-glsp/glsp-server#163
  • Loading branch information
planger committed May 23, 2022
1 parent 6785a39 commit 3d2f59e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
import org.eclipse.glsp.server.actions.SetDirtyStateAction;
import org.eclipse.glsp.server.di.MultiBinding;
import org.eclipse.glsp.server.features.navigation.NavigateToExternalTargetAction;
import org.eclipse.glsp.server.gmodel.GModelPasteOperationHandler;
import org.eclipse.glsp.server.operations.OperationHandler;
import org.eclipse.glsp.server.operations.gmodel.PasteOperationHandler;

import com.google.inject.Scopes;

Expand Down Expand Up @@ -72,7 +72,7 @@ protected void configureActionHandlers(final MultiBinding<ActionHandler> binding
@Override
protected void configureOperationHandlers(final MultiBinding<OperationHandler> bindings) {
super.configureOperationHandlers(bindings);
bindings.remove(PasteOperationHandler.class);
bindings.remove(GModelPasteOperationHandler.class);
bindings.add(IdePasteOperationHandler.class);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@
import org.eclipse.glsp.graph.GModelElement;
import org.eclipse.glsp.ide.editor.clipboard.ClipboardService;
import org.eclipse.glsp.ide.editor.clipboard.ui.JsonTransfer;
import org.eclipse.glsp.server.gmodel.GModelPasteOperationHandler;
import org.eclipse.glsp.server.gson.GraphGsonConfigurationFactory;
import org.eclipse.glsp.server.operations.OperationHandler;
import org.eclipse.glsp.server.operations.PasteOperation;
import org.eclipse.glsp.server.operations.gmodel.PasteOperationHandler;

import com.google.inject.Inject;

/**
* An {@link OperationHandler} similar to the GLSP {@link PasteOperationHandler},
* An {@link OperationHandler} similar to the GLSP {@link GModelPasteOperationHandler},
* except that it relies on the local clipboard (instead of relying on Data passed by the client
* via the operation data).
*/
public class IdePasteOperationHandler extends PasteOperationHandler {
public class IdePasteOperationHandler extends GModelPasteOperationHandler {

@Inject
protected ClipboardService clipboard;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde?>
<!-- generated with https://github.com/eclipse-cbi/targetplatform-dsl -->
<target name="2021-03 - Release" sequenceNumber="1647251299">
<target name="2021-03 - Release" sequenceNumber="1652713421">
<locations>
<location includeMode="planner" includeAllPlatforms="false" includeSource="true" includeConfigurePhase="false" type="InstallableUnit">
<unit id="org.eclipse.platform.feature.group" version="4.19.0.v20210303-1800"/>
Expand All @@ -20,6 +20,10 @@
<unit id="javax.xml.stream" version="1.0.1.v201004272200"/>
<repository location="https://download.eclipse.org/tools/orbit/downloads/drops/R20210825222808/repository/"/>
</location>
<location includeMode="planner" includeAllPlatforms="false" includeSource="true" includeConfigurePhase="false" type="InstallableUnit">
<unit id="org.apache.logging.log4j" version="2.17.1.v20220106-2156"/>
<repository location="https://download.eclipse.org/tools/orbit/downloads/drops/R20220302172233/repository/"/>
</location>
<location includeMode="planner" includeAllPlatforms="false" includeSource="true" includeConfigurePhase="false" type="InstallableUnit">
<unit id="org.eclipse.glsp.feature.feature.group" version="0.10.0.202203070850"/>
<unit id="org.eclipse.glsp.feature.source.feature.group" version="0.10.0.202203070850"/>
Expand Down
4 changes: 4 additions & 0 deletions server/releng/org.eclipse.glsp.ide.releng.target/r2021-03.tpd
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ location "https://download.eclipse.org/tools/orbit/downloads/drops/R202108252228
javax.xml.stream
}

location "https://download.eclipse.org/tools/orbit/downloads/drops/R20220302172233/repository/" {
org.apache.logging.log4j
}

location "https://download.eclipse.org/glsp/server/p2/nightly/0.10/0.10.0.202203070850/" {
org.eclipse.glsp.feature.feature.group
org.eclipse.glsp.feature.source.feature.group
Expand Down

0 comments on commit 3d2f59e

Please sign in to comment.