Skip to main content



      Home
Home » Archived » Sapphire » SapphireEditor never dirty without SourceEditor
SapphireEditor never dirty without SourceEditor [message #1087256] Thu, 15 August 2013 07:22 Go to next message
Eclipse UserFriend
Hi,

my question relates to message #754288. I have a similar problem, but because i use Sapphire to modify data which is accessed using a client API, there is no corresponding file to update.

I have a SapphireEditor with a single MasterDetailsEditorPage only.

Is it possible to extend MasterDetailsEditorPage and to mark it dirty ?

Jochen
Re: SapphireEditor never dirty without SourceEditor [message #1087503 is a reply to message #1087256] Thu, 15 August 2013 14:57 Go to previous message
Eclipse UserFriend
I haven't done much experimentation with scenarios like yours, but it should be possible by overriding isDirty() in your SapphireEditor implementation and calling firePropertyChange(IWorkbenchPartConstants.PROP_DIRTY) when dirty state changes. You then need to make sure that your ResourceStore implementation handles save().
Previous Topic:Trigger ValueImageService programmatically
Next Topic:How to programatically select a node from the outline?
Goto Forum:
  


Current Time: Tue May 13 08:09:42 EDT 2025

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

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

Back to the top