Skip to content

Commit

Permalink
remove injection duplications obsolete after Sprotty update
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasRentzCAU committed Mar 14, 2024
1 parent 941eacd commit 408ed02
Showing 1 changed file with 0 additions and 52 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,7 @@ import org.eclipse.elk.graph.properties.IProperty
import org.eclipse.emf.ecore.EObject
import org.eclipse.sprotty.Action
import org.eclipse.sprotty.ActionMessage
import org.eclipse.sprotty.ComputedBoundsApplicator
import org.eclipse.sprotty.IDiagramExpansionListener
import org.eclipse.sprotty.IDiagramOpenListener
import org.eclipse.sprotty.IDiagramSelectionListener
import org.eclipse.sprotty.ILayoutEngine
import org.eclipse.sprotty.IModelUpdateListener
import org.eclipse.sprotty.IPopupModelFactory
import org.eclipse.sprotty.RejectAction
import org.eclipse.sprotty.SModelCloner
import org.eclipse.sprotty.SModelElement
import org.eclipse.sprotty.SModelRoot
import org.eclipse.sprotty.SelectAction
Expand Down Expand Up @@ -456,48 +448,4 @@ class KGraphDiagramServer extends LanguageAwareDiagramServer {
}
newModel = false
}

// Repeat injection of multiple methods of the DefaultDiagramServer as the javax.inject->jakarta.inject transition
// broke something here.
// TODO: remove when not necessary anymore

@Inject
override setModelUpdateListener(IModelUpdateListener listener) {
super.modelUpdateListener = listener;
}

@Inject
override setLayoutEngine(ILayoutEngine engine) {
super.layoutEngine = engine;
}

@Inject
override setComputedBoundsApplicator(ComputedBoundsApplicator computedBoundsApplicator) {
super.computedBoundsApplicator = computedBoundsApplicator;
}

@Inject
override setPopupModelFactory(IPopupModelFactory factory) {
super.popupModelFactory = factory;
}

@Inject
override setSelectionListener(IDiagramSelectionListener listener) {
super.selectionListener = listener;
}

@Inject
override setExpansionListener(IDiagramExpansionListener diagramExpansionListener) {
super.expansionListener = diagramExpansionListener;
}

@Inject
override setOpenListener(IDiagramOpenListener diagramOpenListener) {
super.openListener = diagramOpenListener;
}

@Inject
override setSModelCloner(SModelCloner smodelCloner) {
super.SModelCloner = smodelCloner;
}
}

0 comments on commit 408ed02

Please sign in to comment.