diff options
author | 2018-02-15 23:06:11 +0100 | |
---|---|---|
committer | 2018-02-15 23:06:11 +0100 | |
commit | 16b5e5555e5e138b79442942c1c9c0dd6f33dd20 (patch) | |
tree | ab355496088aa2598ddd71c5204acf57183b44fc /Application/hu.bme.mit.inf.dslreasoner.application.ui/src/hu/bme/mit/inf/dslreasoner/application/ui/highlight/ColorCalculator.xtend | |
parent | Generation specification -> execution (diff) | |
download | VIATRA-Generator-16b5e5555e5e138b79442942c1c9c0dd6f33dd20.tar.gz VIATRA-Generator-16b5e5555e5e138b79442942c1c9c0dd6f33dd20.tar.zst VIATRA-Generator-16b5e5555e5e138b79442942c1c9c0dd6f33dd20.zip |
coloring refined
Diffstat (limited to 'Application/hu.bme.mit.inf.dslreasoner.application.ui/src/hu/bme/mit/inf/dslreasoner/application/ui/highlight/ColorCalculator.xtend')
-rw-r--r-- | Application/hu.bme.mit.inf.dslreasoner.application.ui/src/hu/bme/mit/inf/dslreasoner/application/ui/highlight/ColorCalculator.xtend | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application.ui/src/hu/bme/mit/inf/dslreasoner/application/ui/highlight/ColorCalculator.xtend b/Application/hu.bme.mit.inf.dslreasoner.application.ui/src/hu/bme/mit/inf/dslreasoner/application/ui/highlight/ColorCalculator.xtend index d0f9db88..5c871a78 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application.ui/src/hu/bme/mit/inf/dslreasoner/application/ui/highlight/ColorCalculator.xtend +++ b/Application/hu.bme.mit.inf.dslreasoner.application.ui/src/hu/bme/mit/inf/dslreasoner/application/ui/highlight/ColorCalculator.xtend | |||
@@ -9,7 +9,7 @@ class ColorCalculator { | |||
9 | 9 | ||
10 | public def dispatch getColor(EClass c) { | 10 | public def dispatch getColor(EClass c) { |
11 | val supertypes = (c.getEAllSuperTypes + #[c]) | 11 | val supertypes = (c.getEAllSuperTypes + #[c]) |
12 | val typeHashcodes = supertypes.map[(c.getEPackage.nsURI->c.name).hashCode] | 12 | val typeHashcodes = supertypes.map[(c.getEPackage.nsURI->c.name).hashCode+2] |
13 | return randomColor(typeHashcodes) | 13 | return randomColor(typeHashcodes) |
14 | } | 14 | } |
15 | public def dispatch getColor(EEnum e) { | 15 | public def dispatch getColor(EEnum e) { |