eclipse-ocl / org.eclipse.ocl

Eclipse Public License 2.0
0 stars 0 forks source link

Failed to set 'self' for Xtext OCL Console selections #1963

Closed eclipse-ocl-bot closed 1 month ago

eclipse-ocl-bot commented 1 month ago

| --- | --- | | Bugzilla Link | 532666 | | Status | RESOLVED FIXED | | Importance | P3 normal | | Reported | Mar 20, 2018 11:03 EDT | | Modified | Mar 24, 2018 04:19 EDT | | See also | 529886 | | Reporter | Ed Willink |

Description

https://www.eclipse.org/forums/index.php/m/1783935/#msg_1783935 follows the Getting Strated guide and hits trouble once the Debugger is activated from the Console.

Actually the trouble is when many forms of foreign selection attempts to update the Console selection. They hit an UOE in AbstractASResourceFactory.getASElement.

Currently there are Ecore/UML overrides but nothing for CS. The return is clearly @Nullable and only used in one place. Ideally the method name would be basicGet...

UOE might be an adequate abstract implementation, but we would need to override for the many CS'es. Easier to put the CS support for Pivotable in AbstractASResourceFactory. No UOE.

eclipse-ocl-bot commented 1 month ago

By Ed Willink on Mar 24, 2018 04:19

Pushed to master for M7.

Bug 529886 handles the lack of Debugger testing.