[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.webtools] Re: Suppress outline with StructuredTextEditor

Teleman wrote:
Hi!

I'm using the StructuredTextEditor as an XML editor with very restricted editing functionality (which actually means none at all right now...). But the problem is that the content outline lets users add and delete nodes as they want, ruining my restriction concept.

How can I suppress / deactivate the outline?

I tried it with overriding getAdapter and catching the case, when it checks for IContentOutlinePage.class. But this has access restriction, so won't work.

What can i do?

Thanks in advance!

For standard XML files there's not much I can think of. Requests for options to prevent the user from editing a file don't come up that often. They can, after all, just use another editor. But for files of your own content type you could register a different outline configuration class using the org.eclipse.wst.sse.ui.editorConfiguration extension point. You'll probably want to do something similar for the property sheet configuration.


--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational