diff options
author | 2021-10-05 00:36:47 +0200 | |
---|---|---|
committer | 2021-10-05 00:36:47 +0200 | |
commit | c3e27396c62f191b4343df151e5a86bfa63a32f3 (patch) | |
tree | 4f698c9ba0320a5c740c53877c3f75c00240dca4 /language-ide | |
parent | fix(web): improve accessibility (diff) | |
download | refinery-c3e27396c62f191b4343df151e5a86bfa63a32f3.tar.gz refinery-c3e27396c62f191b4343df151e5a86bfa63a32f3.tar.zst refinery-c3e27396c62f191b4343df151e5a86bfa63a32f3.zip |
chore: change package name
Diffstat (limited to 'language-ide')
-rw-r--r-- | language-ide/src/main/java/tools/refinery/language/ide/ProblemIdeModule.java (renamed from language-ide/src/main/java/org/eclipse/viatra/solver/language/ide/ProblemIdeModule.java) | 5 | ||||
-rw-r--r-- | language-ide/src/main/java/tools/refinery/language/ide/ProblemIdeSetup.java (renamed from language-ide/src/main/java/org/eclipse/viatra/solver/language/ide/ProblemIdeSetup.java) | 10 | ||||
-rw-r--r-- | language-ide/src/main/java/tools/refinery/language/ide/syntaxcoloring/ProblemSemanticHighlightingCalculator.java (renamed from language-ide/src/main/java/org/eclipse/viatra/solver/language/ide/syntaxcoloring/ProblemSemanticHighlightingCalculator.java) | 23 |
3 files changed, 21 insertions, 17 deletions
diff --git a/language-ide/src/main/java/org/eclipse/viatra/solver/language/ide/ProblemIdeModule.java b/language-ide/src/main/java/tools/refinery/language/ide/ProblemIdeModule.java index c6e41049..5327f7b4 100644 --- a/language-ide/src/main/java/org/eclipse/viatra/solver/language/ide/ProblemIdeModule.java +++ b/language-ide/src/main/java/tools/refinery/language/ide/ProblemIdeModule.java | |||
@@ -1,11 +1,12 @@ | |||
1 | /* | 1 | /* |
2 | * generated by Xtext 2.25.0 | 2 | * generated by Xtext 2.25.0 |
3 | */ | 3 | */ |
4 | package org.eclipse.viatra.solver.language.ide; | 4 | package tools.refinery.language.ide; |
5 | 5 | ||
6 | import org.eclipse.viatra.solver.language.ide.syntaxcoloring.ProblemSemanticHighlightingCalculator; | ||
7 | import org.eclipse.xtext.ide.editor.syntaxcoloring.ISemanticHighlightingCalculator; | 6 | import org.eclipse.xtext.ide.editor.syntaxcoloring.ISemanticHighlightingCalculator; |
8 | 7 | ||
8 | import tools.refinery.language.ide.syntaxcoloring.ProblemSemanticHighlightingCalculator; | ||
9 | |||
9 | /** | 10 | /** |
10 | * Use this class to register ide components. | 11 | * Use this class to register ide components. |
11 | */ | 12 | */ |
diff --git a/language-ide/src/main/java/org/eclipse/viatra/solver/language/ide/ProblemIdeSetup.java b/language-ide/src/main/java/tools/refinery/language/ide/ProblemIdeSetup.java index ca1fec30..5b88d41f 100644 --- a/language-ide/src/main/java/org/eclipse/viatra/solver/language/ide/ProblemIdeSetup.java +++ b/language-ide/src/main/java/tools/refinery/language/ide/ProblemIdeSetup.java | |||
@@ -1,13 +1,15 @@ | |||
1 | /* | 1 | /* |
2 | * generated by Xtext 2.25.0 | 2 | * generated by Xtext 2.25.0 |
3 | */ | 3 | */ |
4 | package org.eclipse.viatra.solver.language.ide; | 4 | package tools.refinery.language.ide; |
5 | |||
6 | import org.eclipse.xtext.util.Modules2; | ||
5 | 7 | ||
6 | import com.google.inject.Guice; | 8 | import com.google.inject.Guice; |
7 | import com.google.inject.Injector; | 9 | import com.google.inject.Injector; |
8 | import org.eclipse.viatra.solver.language.ProblemRuntimeModule; | 10 | |
9 | import org.eclipse.viatra.solver.language.ProblemStandaloneSetup; | 11 | import tools.refinery.language.ProblemRuntimeModule; |
10 | import org.eclipse.xtext.util.Modules2; | 12 | import tools.refinery.language.ProblemStandaloneSetup; |
11 | 13 | ||
12 | /** | 14 | /** |
13 | * Initialization support for running Xtext languages as language servers. | 15 | * Initialization support for running Xtext languages as language servers. |
diff --git a/language-ide/src/main/java/org/eclipse/viatra/solver/language/ide/syntaxcoloring/ProblemSemanticHighlightingCalculator.java b/language-ide/src/main/java/tools/refinery/language/ide/syntaxcoloring/ProblemSemanticHighlightingCalculator.java index 1de73912..b2e3c90b 100644 --- a/language-ide/src/main/java/org/eclipse/viatra/solver/language/ide/syntaxcoloring/ProblemSemanticHighlightingCalculator.java +++ b/language-ide/src/main/java/tools/refinery/language/ide/syntaxcoloring/ProblemSemanticHighlightingCalculator.java | |||
@@ -1,20 +1,10 @@ | |||
1 | package org.eclipse.viatra.solver.language.ide.syntaxcoloring; | 1 | package tools.refinery.language.ide.syntaxcoloring; |
2 | 2 | ||
3 | import java.util.List; | 3 | import java.util.List; |
4 | 4 | ||
5 | import org.eclipse.emf.common.util.EList; | 5 | import org.eclipse.emf.common.util.EList; |
6 | import org.eclipse.emf.ecore.EObject; | 6 | import org.eclipse.emf.ecore.EObject; |
7 | import org.eclipse.emf.ecore.EReference; | 7 | import org.eclipse.emf.ecore.EReference; |
8 | import org.eclipse.viatra.solver.language.ProblemUtil; | ||
9 | import org.eclipse.viatra.solver.language.model.problem.ClassDeclaration; | ||
10 | import org.eclipse.viatra.solver.language.model.problem.EnumDeclaration; | ||
11 | import org.eclipse.viatra.solver.language.model.problem.NamedElement; | ||
12 | import org.eclipse.viatra.solver.language.model.problem.Node; | ||
13 | import org.eclipse.viatra.solver.language.model.problem.Parameter; | ||
14 | import org.eclipse.viatra.solver.language.model.problem.PredicateDefinition; | ||
15 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
16 | import org.eclipse.viatra.solver.language.model.problem.ReferenceDeclaration; | ||
17 | import org.eclipse.viatra.solver.language.model.problem.Variable; | ||
18 | import org.eclipse.xtext.ide.editor.syntaxcoloring.DefaultSemanticHighlightingCalculator; | 8 | import org.eclipse.xtext.ide.editor.syntaxcoloring.DefaultSemanticHighlightingCalculator; |
19 | import org.eclipse.xtext.ide.editor.syntaxcoloring.IHighlightedPositionAcceptor; | 9 | import org.eclipse.xtext.ide.editor.syntaxcoloring.IHighlightedPositionAcceptor; |
20 | import org.eclipse.xtext.nodemodel.INode; | 10 | import org.eclipse.xtext.nodemodel.INode; |
@@ -25,6 +15,17 @@ import org.eclipse.xtext.util.CancelIndicator; | |||
25 | import com.google.common.collect.ImmutableList; | 15 | import com.google.common.collect.ImmutableList; |
26 | import com.google.inject.Inject; | 16 | import com.google.inject.Inject; |
27 | 17 | ||
18 | import tools.refinery.language.ProblemUtil; | ||
19 | import tools.refinery.language.model.problem.ClassDeclaration; | ||
20 | import tools.refinery.language.model.problem.EnumDeclaration; | ||
21 | import tools.refinery.language.model.problem.NamedElement; | ||
22 | import tools.refinery.language.model.problem.Node; | ||
23 | import tools.refinery.language.model.problem.Parameter; | ||
24 | import tools.refinery.language.model.problem.PredicateDefinition; | ||
25 | import tools.refinery.language.model.problem.ProblemPackage; | ||
26 | import tools.refinery.language.model.problem.ReferenceDeclaration; | ||
27 | import tools.refinery.language.model.problem.Variable; | ||
28 | |||
28 | public class ProblemSemanticHighlightingCalculator extends DefaultSemanticHighlightingCalculator { | 29 | public class ProblemSemanticHighlightingCalculator extends DefaultSemanticHighlightingCalculator { |
29 | private static final String BUILTIN_CLASS = "cm-keyword"; | 30 | private static final String BUILTIN_CLASS = "cm-keyword"; |
30 | private static final String CLASS_CLASS = "problem-class"; | 31 | private static final String CLASS_CLASS = "problem-class"; |