Version I use: jdk11 jfx11 eclipse202012R gef5.3.2
When I run any of the zest examples, I throw an exception when I drag and move the node.
Can anyone help me?
If anyone can give a MVC model or examples that can be applied, it will be the best.
Here's the exception, when I run org.eclipse.gef.zest.examples.SimpleExample, Drag and node:
*** WARNING: The actual type of adapter org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider@5c9003f9 could not be inferred from the binding at org.eclipse.gef.zest.fx.ZestFxModule.bindNodePartAdapters(ZestFxModule.java:403). The adapter will only be retrievable via key types assignable to org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider, which is the actual type inferred from the instance.
You should probably adjust your binding to provide a type key using AdapterKey.get(<type>, SELECTION_HANDLES_GEOMETRY_PROVIDER).
*** WARNING: The actual type of adapter org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider@62dd03b7 could not be inferred from the binding at org.eclipse.gef.zest.fx.ZestFxModule.bindNodePartAdapters(ZestFxModule.java:413). The adapter will only be retrievable via key types assignable to org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider, which is the actual type inferred from the instance.
You should probably adjust your binding to provide a type key using AdapterKey.get(<type>, SELECTION_FEEDBACK_GEOMETRY_PROVIDER).
*** WARNING: The actual type of adapter org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider@123226b5 could not be inferred from the binding at org.eclipse.gef.zest.fx.ZestFxModule.bindNodePartAdapters(ZestFxModule.java:423). The adapter will only be retrievable via key types assignable to org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider, which is the actual type inferred from the instance.
You should probably adjust your binding to provide a type key using AdapterKey.get(<type>, SELECTION_LINK_FEEDBACK_GEOMETRY_PROVIDER).
*** WARNING: The actual type of adapter org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider@625c78f3 could not be inferred from the binding at org.eclipse.gef.zest.fx.ZestFxModule.bindNodePartAdapters(ZestFxModule.java:437). The adapter will only be retrievable via key types assignable to org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider, which is the actual type inferred from the instance.
You should probably adjust your binding to provide a type key using AdapterKey.get(<type>, FOCUS_FEEDBACK_GEOMETRY_PROVIDER).
*** WARNING: The actual type of adapter org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider@5377f8c1 could not be inferred from the binding at org.eclipse.gef.zest.fx.ZestFxModule.bindNodePartAdapters(ZestFxModule.java:403). The adapter will only be retrievable via key types assignable to org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider, which is the actual type inferred from the instance.
You should probably adjust your binding to provide a type key using AdapterKey.get(<type>, SELECTION_HANDLES_GEOMETRY_PROVIDER).
*** WARNING: The actual type of adapter org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider@47a36c4d could not be inferred from the binding at org.eclipse.gef.zest.fx.ZestFxModule.bindNodePartAdapters(ZestFxModule.java:413). The adapter will only be retrievable via key types assignable to org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider, which is the actual type inferred from the instance.
You should probably adjust your binding to provide a type key using AdapterKey.get(<type>, SELECTION_FEEDBACK_GEOMETRY_PROVIDER).
*** WARNING: The actual type of adapter org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider@772cd355 could not be inferred from the binding at org.eclipse.gef.zest.fx.ZestFxModule.bindNodePartAdapters(ZestFxModule.java:423). The adapter will only be retrievable via key types assignable to org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider, which is the actual type inferred from the instance.
You should probably adjust your binding to provide a type key using AdapterKey.get(<type>, SELECTION_LINK_FEEDBACK_GEOMETRY_PROVIDER).
*** WARNING: The actual type of adapter org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider@1c75668a could not be inferred from the binding at org.eclipse.gef.zest.fx.ZestFxModule.bindNodePartAdapters(ZestFxModule.java:437). The adapter will only be retrievable via key types assignable to org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider, which is the actual type inferred from the instance.
You should probably adjust your binding to provide a type key using AdapterKey.get(<type>, FOCUS_FEEDBACK_GEOMETRY_PROVIDER).
*** WARNING: The actual type of adapter org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider@5cf61c20 could not be inferred from the binding at org.eclipse.gef.zest.fx.ZestFxModule.bindNodePartAdapters(ZestFxModule.java:403). The adapter will only be retrievable via key types assignable to org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider, which is the actual type inferred from the instance.
You should probably adjust your binding to provide a type key using AdapterKey.get(<type>, SELECTION_HANDLES_GEOMETRY_PROVIDER).
*** WARNING: The actual type of adapter org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider@3321b77 could not be inferred from the binding at org.eclipse.gef.zest.fx.ZestFxModule.bindNodePartAdapters(ZestFxModule.java:413). The adapter will only be retrievable via key types assignable to org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider, which is the actual type inferred from the instance.
You should probably adjust your binding to provide a type key using AdapterKey.get(<type>, SELECTION_FEEDBACK_GEOMETRY_PROVIDER).
*** WARNING: The actual type of adapter org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider@1252fb09 could not be inferred from the binding at org.eclipse.gef.zest.fx.ZestFxModule.bindNodePartAdapters(ZestFxModule.java:423). The adapter will only be retrievable via key types assignable to org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider, which is the actual type inferred from the instance.
You should probably adjust your binding to provide a type key using AdapterKey.get(<type>, SELECTION_LINK_FEEDBACK_GEOMETRY_PROVIDER).
*** WARNING: The actual type of adapter org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider@3f279475 could not be inferred from the binding at org.eclipse.gef.zest.fx.ZestFxModule.bindNodePartAdapters(ZestFxModule.java:437). The adapter will only be retrievable via key types assignable to org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider, which is the actual type inferred from the instance.
You should probably adjust your binding to provide a type key using AdapterKey.get(<type>, FOCUS_FEEDBACK_GEOMETRY_PROVIDER).
java.lang.IllegalStateException: java.lang.IllegalArgumentException: Not enough bend points supplied!
at org.eclipse.gef.mvc.fx.policies.BendConnectionPolicy.locallyExecuteOperation(BendConnectionPolicy.java:587)
at org.eclipse.gef.mvc.fx.policies.BendConnectionPolicy.move(BendConnectionPolicy.java:677)
at org.eclipse.gef.mvc.fx.handlers.ConnectedSupport.init(ConnectedSupport.java:159)
at org.eclipse.gef.mvc.fx.handlers.TranslateSelectedOnDragHandler.startDrag(TranslateSelectedOnDragHandler.java:350)
at org.eclipse.gef.zest.fx.handlers.TranslateSelectedAndRelocateLabelsOnDragHandler.startDrag(TranslateSelectedAndRelocateLabelsOnDragHandler.java:60)
at org.eclipse.gef.mvc.fx.gestures.ClickDragGesture.press(ClickDragGesture.java:393)
at org.eclipse.gef.mvc.fx.gestures.ClickDragGesture$1.handle(ClickDragGesture.java:100)
at org.eclipse.gef.mvc.fx.gestures.ClickDragGesture$1.handle(ClickDragGesture.java:1)
at javafx.base/com.sun.javafx.event.CompositeEventHandler$NormalEventFilterRecord.handleCapturingEvent(CompositeEventHandler.java:282)
at javafx.base/com.sun.javafx.event.CompositeEventHandler.dispatchCapturingEvent(CompositeEventHandler.java:98)
java.lang.NullPointerException
at org.eclipse.gef.mvc.fx.handlers.AbstractHandler.restoreRefreshVisuals(AbstractHandler.java:256)
at org.eclipse.gef.mvc.fx.handlers.TranslateSelectedOnDragHandler.abortDrag(TranslateSelectedOnDragHandler.java:67)
at org.eclipse.gef.zest.fx.handlers.TranslateSelectedAndRelocateLabelsOnDragHandler.abortDrag(TranslateSelectedAndRelocateLabelsOnDragHandler.java:37)
at org.eclipse.gef.mvc.fx.gestures.ClickDragGesture.doAbortPolicies(ClickDragGesture.java:236)
at org.eclipse.gef.mvc.fx.gestures.AbstractGesture.abortPolicies(AbstractGesture.java:66)
at org.eclipse.gef.mvc.fx.gestures.ClickDragGesture.abortPolicies(ClickDragGesture.java:228)
at org.eclipse.gef.mvc.fx.gestures.AbstractGesture$1.changed(AbstractGesture.java:124)
at org.eclipse.gef.mvc.fx.gestures.AbstractGesture$1.changed(AbstractGesture.java:1)
at javafx.base/com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(ExpressionHelper.java:360)
at javafx.base/com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:80)
at javafx.base/javafx.beans.property.ReadOnlyBooleanPropertyBase.fireValueChangedEvent(ReadOnlyBooleanPropertyBase.java:72)
at javafx.base/javafx.beans.property.ReadOnlyBooleanWrapper.fireValueChangedEvent(ReadOnlyBooleanWrapper.java:103)
at javafx.base/javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:111)
at javafx.base/javafx.beans.property.BooleanPropertyBase.access$000(BooleanPropertyBase.java:50)
at javafx.base/javafx.beans.property.BooleanPropertyBase$Listener.invalidated(BooleanPropertyBase.java:239)
at javafx.base/com.sun.javafx.binding.ExpressionHelper$SingleInvalidation.fireValueChangedEvent(ExpressionHelper.java:136)
at javafx.base/com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:80)
at javafx.base/javafx.beans.binding.BooleanBinding.invalidate(BooleanBinding.java:174)
at org.eclipse.gef.mvc.fx.viewer.InfiniteCanvasViewer.onWindowFocusedChanged(InfiniteCanvasViewer.java:486)
at org.eclipse.gef.mvc.fx.viewer.InfiniteCanvasViewer.access$6(InfiniteCanvasViewer.java:484)
at org.eclipse.gef.mvc.fx.viewer.InfiniteCanvasViewer$3.changed(InfiniteCanvasViewer.java:99)
at org.eclipse.gef.mvc.fx.viewer.InfiniteCanvasViewer$3.changed(InfiniteCanvasViewer.java:1)
at javafx.base/com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(ExpressionHelper.java:360)
at javafx.base/com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:80)
at javafx.base/javafx.beans.property.ReadOnlyBooleanPropertyBase.fireValueChangedEvent(ReadOnlyBooleanPropertyBase.java:72)
question from:
https://stackoverflow.com/questions/65651553/exception-while-executing-zest-sample-of-gef5 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…