Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sapphire » SapphireEditor never dirty without SourceEditor
SapphireEditor never dirty without SourceEditor [message #1087256] Thu, 15 August 2013 07:22 Go to next message
Jochen Hansmeyer is currently offline Jochen Hansmeyer
Messages: 1
Registered: August 2013
Junior Member
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
Konstantin Komissarchik is currently offline Konstantin Komissarchik
Messages: 940
Registered: July 2009
Senior Member
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 Sep 02 05:24:16 EDT 2014

Powered by FUDForum. Page generated in 0.03611 seconds