Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] Native files with "do not edit" comment

Hello,

You might see some native files where something about "DO NOT EDIT" appears. (See screenshot below)

This is related to this patch:
Bug 500363 – Native auto generated files should mention that they are auto generated ("DO NOT EDIT - your changes will be lost")
https://bugs.eclipse.org/bugs/show_bug.cgi?id=500363

A while back I updated the SWT tools to inject this note into files that were generated automatically.

There are two possible scenarios:
1) If your modificated files *remove* the 'do not edit' note, then you need to update your SWT tools, as the older version of the tools did not inject this notice, but the newer version does.

2) If you're on latest master and you see files that add 'do not edit' note, then you should commit the files with this note in them so that the note no longer appears for other developers. I usually commit these files when I come across them. (I did a whole rebuild of Gtk/Cocoa/Win32, but I still see a few of them cropping up from time to time).

If unsure or find something odd, please feel free to ping me.

Thank you


Inline image 1

---
Leo Ufimtsev
Software Engineer, Eclipse team.
Toronto, Canada

Red Hat, Inc.

Back to the top