"Accept Library" vs "Delete" + "Add Library..."

When I recompile my C++ project and re-generate the PCWLX, it seems that most of the time I have to delete and recreate my library reference in PCWE in order to refresh it. But I saw once or twice that I was able to do a “Accept Library” instead, which is better because I do not lose all my port connection definitions. What are the conditions to respect in order to be able to use the “Accept Library”. Thanks.

This behaviour is known. To avoid this, it is necessary to close the PCWE project. Then export the PCWLX from Eclipse. After that the PCWE project can be opened again. In so doing, the refreshing of the library works without losing the port connection.