Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change copy/paste of rows in NatTable to also handle imports #954

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

sebHollersbacher
Copy link

No description provided.

Copy link

github-actions bot commented Jan 15, 2025

Test Results

   111 files  ±0     111 suites  ±0   48s ⏱️ -2s
29 174 tests ±0  29 174 ✅ ±0  0 💤 ±0  0 ❌ ±0 
29 175 runs  ±0  29 175 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit e82d618. ± Comparison against base commit 71d87e5.

♻️ This comment has been updated with latest results.

@sebHollersbacher sebHollersbacher marked this pull request as ready for review January 16, 2025 13:56
@oberlehner
Copy link
Contributor

Its not possible to paste into an empty editor
image

!ENTRY org.eclipse.ui 4 0 2025-01-17 08:39:32.446
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.emf.common.util.BasicEList$BasicIndexOutOfBoundsException: index=0, size=0
at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:345)
at org.eclipse.nebula.widgets.nattable.data.ListDataProvider.getRowObject(ListDataProvider.java:64)
at org.eclipse.fordiac.ide.gef.nat.PasteDataImportFromClipboardCommandHandler.getRootElement(PasteDataImportFromClipboardCommandHandler.java:123)
at org.eclipse.fordiac.ide.gef.nat.PasteDataImportFromClipboardCommandHandler.doCommand(PasteDataImportFromClipboardCommandHandler.java:67)
at org.eclipse.fordiac.ide.ui.widget.PasteDataFromClipboardCommandHandler.doCommand(PasteDataFromClipboardCommandHandler.java:1)
at org.eclipse.nebula.widgets.nattable.command.AbstractLayerCommandHandler.doCommand(AbstractLayerCommandHandler.java:22)
at org.eclipse.nebula.widgets.nattable.layer.AbstractLayer.doCommand(AbstractLayer.java:186)
at org.eclipse.nebula.widgets.nattable.layer.AbstractIndexLayerTransform.doCommand(AbstractIndexLayerTransform.java:108)
at org.eclipse.nebula.widgets.nattable.selection.SelectionLayer.doCommand(SelectionLayer.java:674)
at org.eclipse.nebula.widgets.nattable.layer.AbstractLayerTransform.doCommand(AbstractLayerTransform.java:109)
at org.eclipse.nebula.widgets.nattable.viewport.ViewportLayer.doCommand(ViewportLayer.java:1161)
at org.eclipse.nebula.widgets.nattable.grid.layer.GridLayer.doCommandOnChildLayer(GridLayer.java:120)
at org.eclipse.nebula.widgets.nattable.grid.layer.GridLayer.doCommandOnChildLayers(GridLayer.java:107)
at org.eclipse.nebula.widgets.nattable.layer.CompositeLayer.doCommand(CompositeLayer.java:151)
at org.eclipse.nebula.widgets.nattable.grid.layer.GridLayer.doCommand(GridLayer.java:194)
at org.eclipse.nebula.widgets.nattable.NatTable.doCommand(NatTable.java:839)
at org.eclipse.nebula.widgets.nattable.copy.action.PasteDataAction.run(PasteDataAction.java:29)
at org.eclipse.nebula.widgets.nattable.ui.mode.ConfigurableModeEventHandler.keyPressed(ConfigurableModeEventHandler.java:43)
at org.eclipse.nebula.widgets.nattable.ui.mode.ModeSupport.keyPressed(ModeSupport.java:94)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:184)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:91)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4404)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1173)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1197)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1182)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1224)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1220)
at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1703)
at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4854)
at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:347)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4732)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:342)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5177)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(Native Method)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3788)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1151)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1042)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:153)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:663)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:570)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:173)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:178)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
at org.eclipse.equinox.launcher.Main.main(Main.java:1454)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants