Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » disable editor editing
disable editor editing [message #228571] Wed, 27 December 2006 16:40
Eclipse UserFriend
Originally posted by:


I am trying to make my editor non editable and it works:

protected void doSetInput(IEditorInput input) throws CoreException {
ResourceAttributes resource = new ResourceAttributes();
((IFileEditorInput)input).getFile().setResourceAttributes(re source);

However, what I have is editor which is MultiPageEditorPart, one page is
graphical representation of the XML file, another is XML file itself.

What happens is that when you manipulate file graphically the source
updates and you can see changes on the second page (when selection of
pages changes file is saved). But, since I implement doSetInput in my
editor I cannot save the changes made in graphical editor to be seen in
XML editor.

How can not make the resource read-only, but only prevent user from
performing changes in XML editor?

Previous Topic:Question about realisation of swimlanes
Next Topic:org.eclipse.gef.text.examples
Goto Forum:

Current Time: Mon Oct 25 18:15:59 GMT 2021

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

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

Back to the top