Skip to content

Commit

Permalink
SModelInternal.updateExternalRef API change
Browse files Browse the repository at this point in the history
cherry-picked from 81dd02b
  • Loading branch information
artem-tikhomirov committed Dec 20, 2023
1 parent c4d20d5 commit 6f6880b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/smodel/source/jetbrains/mps/smodel/SModelInternal.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,12 @@ public interface SModelInternal extends ModelWithDisposeInfo {
* Model has a chance to bring its external dependencies to a state manifested by supplied repository
* @return <code>true</code> if anything has been changed
*/
boolean updateExternalReferences(@NotNull SRepository repository);
default boolean updateExternalReferences(@NotNull SRepository repository) {
// default impl is necessary to keep same branch for mps-extensions 23.2 and 23.3.
// signature of the method changed in mps 23.3, and there's SM_Model implementation in mps-extensions we need
// to make compilable both with mps 23.2 and 23.3
return false;
}

void changeModelReference(SModelReference newModelReference);
}

0 comments on commit 6f6880b

Please sign in to comment.