Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » SaveAllAction NonPartSourcs
SaveAllAction NonPartSourcs [message #645009] Wed, 15 December 2010 08:39
Ronald Krijgsheld is currently offline Ronald KrijgsheldFriend
Messages: 41
Registered: November 2010
Hi All,

I try to understand the concepts behind the interfaces ISaveable and the NonPartSources.

I checked the implementation of the SaveAllAction and found the following.

1. the updateState() method checks if there are dirty saveables in the registered NonPartSources to decide whether or not the action is enabled.
2. the run() method delegates to the editormanager to execute a saveAll(). This method is implemented to do nothing if there are no dirty editparts.
3. the updateState() is triggered based on changes in parts.

How is it possible with this implementation to get a nonpartsource correctly working? All variations I tried at some point need an edit part to trigger the logic.

The use case I have is simple. I have multiple explorers based on one model. If I make change in a propertysheet I like to have the save all button enabled.
The NonPartSource concept suggested that I could register saveables that are independent of edit parts.

But it looks like I have to make all explorers saveableparts. But that kind of defeats the purpose of a NonPartSource.

any pointers, ideas on this?


Previous Topic:State doesn't return all plugin versions
Next Topic:Eclipse APIs & API Graduation
Goto Forum:

Current Time: Mon Jan 18 17:27:04 GMT 2021

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

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

Back to the top