Skip to main content



      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 05:50 Go to next message
Eclipse UserFriend
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] Thu, 21 April 2011 21:40 Go to previous messageGo to next message
Eclipse UserFriend
A lot depends on which version of WTP you're using. Which is it?
Re: Problem with XMLMultiPageEditorPart editor [message #666781 is a reply to message #666392] Fri, 22 April 2011 10:21 Go to previous messageGo to next message
Eclipse UserFriend
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 03:12 Go to previous messageGo to next message
Eclipse UserFriend
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 03:19 Go to previous message
Eclipse UserFriend
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 Jul 04 01:28:02 EDT 2025

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

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

Back to the top