Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Problem with XMLMultiPageEditorPart editor(Read-only behavior issue with XMLMultiPageEditorPart editor)
Problem with XMLMultiPageEditorPart editor [message #666392] Wed, 20 April 2011 09:50 Go to next message
Bhuvan Mehta is currently offline Bhuvan MehtaFriend
Messages: 58
Registered: July 2009
Member
Hello,

I am using XMLMultiPageEditorPart to open the xml content in read-only mode. The editor input which is passed on to XMLMultiPageEditorPart editor is instance of IStorageEditorInput which makes sure that editor should support this as a valid input type, and display its content for viewing (but not allow modification). Within the editor.

The source tab in the editor behave correctly and is read-only but the design tab in the editor which shows xml content in hierarchy in tree is modifiable and makes editor dirty on any change. Though the changes are not persisted and are reverted once user gets the cursor out of modifiable row. But as editor is read-only so no edit operations shell be allowed on editor.

Is there any way additional thing i need to do for making design page read-only or it's an issue with XMLMultiPageEditorPart editor.

--
Thanks and Regards,
Bhuvan Mehta
Re: Problem with XMLMultiPageEditorPart editor [message #666728 is a reply to message #666392] Fri, 22 April 2011 01:40 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4434
Registered: July 2009
Senior Member

A lot depends on which version of WTP you're using. Which is it?

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Problem with XMLMultiPageEditorPart editor [message #666781 is a reply to message #666392] Fri, 22 April 2011 14:21 Go to previous messageGo to next message
Nick Sandonato is currently offline Nick SandonatoFriend
Messages: 126
Registered: July 2009
Senior Member
This may be a feature that's missing. At the moment, the TreeContentHelper, which sets node values, is dependent on using the model's baseLocation to locate an IFile which is used as an argument to validateEdit in the workspace.
Re: Problem with XMLMultiPageEditorPart editor [message #675665 is a reply to message #666728] Wed, 01 June 2011 07:12 Go to previous messageGo to next message
Bhuvan Mehta is currently offline Bhuvan MehtaFriend
Messages: 58
Registered: July 2009
Member
Version details as below :

Eclipse XML Editors and Tools

Version: 3.1.1.v200907161031-7H6FMbDxtkMs9OeLGF98LRhdPKeo
Build id: 20100211202452


--
Thanks and Regards,
Bhuvan Mehta
Re: Problem with XMLMultiPageEditorPart editor [message #675667 is a reply to message #666781] Wed, 01 June 2011 07:19 Go to previous message
Bhuvan Mehta is currently offline Bhuvan MehtaFriend
Messages: 58
Registered: July 2009
Member
instead of missing feature this is a buggy behavior, as said earlier editor who supports editor-input of type IStorageEditorInput, then should display its content for viewing (but not allow modification), Within the editor, which is working correctly in case of source page but not in Design Page.
Previous Topic:Code completion for global defined in other files
Next Topic:xml autocomplete from schema
Goto Forum:
  


Current Time: Fri Apr 19 22:36:53 GMT 2024

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

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

Back to the top