Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-dev] How does m2e format the "Effective POM" display and make it read-only?

On 04/01/2016 02:23 PM, David M. Karr wrote:
I'm trying to implement a formatted read-only view of some generated XML content, which is just about what the "Effective POM" view does. I used a StructuredTextEditor just like in the m2e code, but I can't figure out how the contents get formatted, and how it makes it read-only. How does it do that?
I do note that when I render the view using this, it does ignore me when I try to modify the buffer, but it does say "Writable" in the bottom status bar. Despite the fact that it prevents me from directly modifying it, I can right-click and select "Source..."->"Cleanup Document", and that manually formats and indents the text. Obviously, I don't want to have to do that manually.


Back to the top