Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Suppress outline with StructuredTextEditor
Suppress outline with StructuredTextEditor [message #217538] Fri, 11 July 2008 13:20 Go to next message
Eclipse UserFriend
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] Wed, 16 July 2008 23:32 Go to previous message
Eclipse UserFriend
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
Previous Topic:ArrayIndexOutOfBounds axis2 webservice skeleton generator
Next Topic:Using the Merged Model of Deployment Descriptor
Goto Forum:
  


Current Time: Wed Jul 02 16:30:31 EDT 2025

Powered by FUDForum. Page generated in 0.22989 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top