Package org.jetbrains.mps.openapi.model
Interface SaveOptions
-
public interface SaveOptionsSeems like we might want save the model differently in different scenarios. This interface is the description of the parameters of EditableSModel#save.- See Also:
EditableSModel.save(SaveOptions),for construction
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSaveOptions.SaveOptionsBuilder
-
Field Summary
Fields Modifier and Type Field Description static SaveOptionsFORCE_SAVEstatic SaveOptionsFORCE_SAVE_MEMORYstatic SaveOptionsFORCE_SAVE_WITH_RESOLVE_INFOstatic SaveOptionsLEGACY
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default booleanforceSave()default booleanpreloadModel()default booleanrefreshDataSource()default booleanresolveConflicts()default booleanupdateResolveInfoInRefs()
-
-
-
Field Detail
-
LEGACY
static final SaveOptions LEGACY
-
FORCE_SAVE
static final SaveOptions FORCE_SAVE
-
FORCE_SAVE_MEMORY
static final SaveOptions FORCE_SAVE_MEMORY
-
FORCE_SAVE_WITH_RESOLVE_INFO
static final SaveOptions FORCE_SAVE_WITH_RESOLVE_INFO
-
-
Method Detail
-
refreshDataSource
default boolean refreshDataSource()
- Returns:
- true if the implementation of EditableSModel needs to refresh the data source before saving the data to the data source
-
updateResolveInfoInRefs
default boolean updateResolveInfoInRefs()
- Returns:
- true if the implementation of EditableSModel needs to rebuild all resolve-info in all references
-
forceSave
default boolean forceSave()
- Returns:
- true if the implementation does #load -> #setChanged(false) -> #save() sequence of calls if true then the return of #preloadModel is ignored
-
resolveConflicts
default boolean resolveConflicts()
-
preloadModel
default boolean preloadModel()
- Returns:
- true if the EditableSModel implementation must load model (
SModel.load()) before saving it
-
-