Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Suppress outline with StructuredTextEditor
Suppress outline with StructuredTextEditor [message #217538] Fri, 11 July 2008 17: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] Thu, 17 July 2008 03:32 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 2342
Registered: July 2009
Senior Member
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 WTP, IBM
Previous Topic:ArrayIndexOutOfBounds axis2 webservice skeleton generator
Next Topic:Using the Merged Model of Deployment Descriptor
Goto Forum:
  


Current Time: Sat Dec 20 19:42:20 GMT 2014

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

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