Closed Phillipus closed 10 months ago
It works well (sized to fit the property labels) on Windows:
I recall a mac bug in the installer also related to auto-resizing of columns. The bug will be in org.eclipse.emf.common.ui.viewer.ColumnResizer, probably in org.eclipse.emf.common.ui.viewer.ColumnResizer.ColumnResizerHandler.controlResized(ControlEvent). The setup for contribution is very easy and automated:
https://github.com/eclipse-emf/org.eclipse.emf/blob/master/CONTRIBUTING.md
In fact, if you have the Platform SDK setup already, these source projects will already be in your workspace...
I had a look at ColumnResizer
and I could see that there's a magic width offset of 10:
Changing the value to 28 works on Mac, but I don't know if there might be an underlying miscalculation from TreeColumn#getWidth()
The best I could come up with is:
int width = packedColumnWidths.get(i) + (SWT.getPlatform().equals("cocoa") ? 28 : 10);
But seems a bit of a workaround.
It does seem like a bit of a workaround...
The 10 is just to add some padding on Windows so that it doesn't look like this:
From your pictures it does look like a certain fixed amount is cropped from the end, so a constant that looks fine for you is probably fine.
I'll go with that...
A nightly build is in progress.
And thanks! 🥇
@merks Thanks for your commit!
Effective teamwork makes for fast results! 💯
Mac Ventura Eclipse 4.28
When editing an ecore file or genmodel file the property sheet's first column is too narrow so that the text is clipped. It would help if the column was resizeable, but it isn't.
Example 1
Example 2
Example 3