Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Sapphire » SapphireEditor never dirty without SourceEditor
SapphireEditor never dirty without SourceEditor [message #1087256] Thu, 15 August 2013 11:22 Go to next message
Jochen Hansmeyer is currently offline Jochen HansmeyerFriend
Messages: 2
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 18:57 Go to previous message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
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: Sat Jul 27 05:48:51 GMT 2024

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

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

Back to the top