Closed cdietrich closed 6 years ago
and make sure eclipse/xtend photon target contains the latest stuff see https://github.com/eclipse/xtext-eclipse/issues/530 as well
looks devastating 😠😠😠😠ðŸ˜
@dhuebner any idea how to fix this besides copy & pasting whole of jdt?
Jdt Formatter Looks completely different now
@cdietrich Is the C&P issue already fixed?
no, if you build against photon youll see the compile errors
Class ModifyDialog in JDT Internal has been changed significantly. I do not see yet that we could get back the method that we were using. This would mean that the dialog would be at least broken for <= 2.13.
hmmm sounds like a situation to investiagate how we can deliver feature patches
Yes that might be necessary.
Options i see (1) copy & paste the Oxygen Code (2) copy & paste the Photon code and adapt appearance to the one of photon (3) develop own style of preference page (4) remove the preference page (5) leave it broken
@ArneDeutsch will investigate cc @dhuebner @kthoms
I have investigated our options.
FormatterModifyDialog
with some reflection magic to work for all eclipse versions will result in >250 LOC of partly copied, partly ugly reflective code. Dialog will look as before for all eclipse versions.Because of these results I would propose to proceed as followes:
FormatterModifyDialog
with some reflective code to work for Photon and older versions as well. It is not THAT much code, resolves the compile errors and functionality stays as it is without to much risk and effort.sounds promising and viable @kthoms @szarnekow what do you think?
Sounds good to me, too. We have to ensure that the code is not only compile clean but is also executed during the build. That is, we have to have automated tests for the stuff.
do you think a smoke test that klicks through the package page would be sufficient enhough?
"package" <- preference? Yes, that would be a great starter. If we see regressions, we can refine that later e.g. by checking that preferences are persisted
yes meant the prefernce package
The text 'Xtend formatterPreview' looks strange. I think just 'Preview' like in JDT would be better. Will create a PR for it.
Thanks Arne!
thanks @ArneDeutsch. great work
our heavy use of internal api again makes us suffer like hell. who ever thought it would be a good idea: no it was not
FormatterModifyDialog has compile errors.
get rid of them or make platform revert their changes