Skip to content
Snippets Groups Projects
Commit d684f3ac authored by dgelessus's avatar dgelessus
Browse files

Update ProB Java API to current 4.12.3-SNAPSHOT

And adjust bExpressionCompleter for incompatible API change.
parent eef3f2c1
No related branches found
No related tags found
No related merge requests found
Pipeline #125231 passed
...@@ -33,7 +33,7 @@ configurations.all { ...@@ -33,7 +33,7 @@ configurations.all {
dependencies { dependencies {
implementation(group: "ch.qos.logback", name: "logback-classic", version: "1.3.7") implementation(group: "ch.qos.logback", name: "logback-classic", version: "1.3.7")
implementation(group: "com.google.guava", name: "guava", version: "31.1-jre") implementation(group: "com.google.guava", name: "guava", version: "31.1-jre")
implementation(group: "de.hhu.stups", name: "de.prob2.kernel", version: "4.12.2-SNAPSHOT") implementation(group: "de.hhu.stups", name: "de.prob2.kernel", version: "4.12.3-SNAPSHOT")
implementation(group: "io.github.spencerpark", name: "jupyter-jvm-basekernel", version: "2.3.0") implementation(group: "io.github.spencerpark", name: "jupyter-jvm-basekernel", version: "2.3.0")
implementation(group: "org.jetbrains", name: "annotations", version: "24.0.1") implementation(group: "org.jetbrains", name: "annotations", version: "24.0.1")
implementation(group: "se.sawano.java", name: "alphanumeric-comparator", version: "1.4.1") implementation(group: "se.sawano.java", name: "alphanumeric-comparator", version: "1.4.1")
......
...@@ -406,14 +406,14 @@ public final class CommandUtils { ...@@ -406,14 +406,14 @@ public final class CommandUtils {
} }
final CompleteIdentifierCommand cmdExact = new CompleteIdentifierCommand(prefix); final CompleteIdentifierCommand cmdExact = new CompleteIdentifierCommand(prefix);
cmdExact.setIncludeKeywords(true); cmdExact.setKeywords(CompleteIdentifierCommand.KeywordContext.ALL);
trace.getStateSpace().execute(cmdExact); trace.getStateSpace().execute(cmdExact);
// Use LinkedHashSet to remove duplicates while maintaining order. // Use LinkedHashSet to remove duplicates while maintaining order.
final Set<String> completions = new LinkedHashSet<>(cmdExact.getCompletions()); final Set<String> completions = new LinkedHashSet<>(cmdExact.getCompletions());
final CompleteIdentifierCommand cmdIgnoreCase = new CompleteIdentifierCommand(prefix); final CompleteIdentifierCommand cmdIgnoreCase = new CompleteIdentifierCommand(prefix);
cmdIgnoreCase.setIgnoreCase(true); cmdIgnoreCase.setIgnoreCase(true);
cmdIgnoreCase.setIncludeKeywords(true); cmdIgnoreCase.setKeywords(CompleteIdentifierCommand.KeywordContext.ALL);
trace.getStateSpace().execute(cmdIgnoreCase); trace.getStateSpace().execute(cmdIgnoreCase);
completions.addAll(cmdIgnoreCase.getCompletions()); completions.addAll(cmdIgnoreCase.getCompletions());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment