Community
Participate
Working Groups
N20031114 This drives me nuts anytime it happens. Whenever I use PDE's plug-in.xml editor and use one of the nice form pages to change something my whole plugin.xml file gets reformatted. Please only reformt the parts that needs to be updated. The current formatting behaviour at least has the effect on me that I avoid using the pde editor.
This is a long-standing issue. We feel your pain and plan to address it in 3.0, but it is not easy to carefully add or remove sections of the source around your code. The current implementation simply rewrites the entire file based on the data in the structured model. Of course, we don't loose information, but the fact remains that we dump your file and write our own.
You might want to have a look at the text edits provided by org.eclipse.text. We use them for applying minimal changes to compilation units.
Dirk, the edit stuff looks very promising. Is there a way for us to learn more about it? As a side note, we were completely unaware of this feature, implying that we must advertise to each other more about what we are doing if we are to avoid duplication.
Dejan, we will advertise it for M5. This is code we implemented for refactoring and pushed down to text for M4. But we wanted to have one milestone to stabilize it before to advertise it to others. Thers isn't any documentation yet other than Javadoc and code ;-). You can look at the various refactorings and the AST rewriting that make use of it. Futhermore there are test cases (currently in JDT/UI). The test class is TextEditTests.
OK, that makes sense. I was concerned that this great capability we needed for a long time to make 'gentler' multi-page editors was available for a long time, and we simply didn't know about it.
*** This bug has been marked as a duplicate of 37661 ***