Suppress outline with StructuredTextEditor [message #217538] |
Fri, 11 July 2008 17:20 |
Eclipse User |
|
|
|
Originally posted by: xjruj6_eclipse.spamavert.com
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!
|
|
|
Re: Suppress outline with StructuredTextEditor [message #217752 is a reply to message #217538] |
Thu, 17 July 2008 03:32 |
|
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
_
Nitin Dahyabhai
Eclipse Web Tools Platform
|
|
|
Powered by
FUDForum. Page generated in 0.03158 seconds