-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JNG-5928 groups to views in jsl (#270)
- Loading branch information
Showing
59 changed files
with
6,281 additions
and
5,464 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 44 additions & 11 deletions
55
judo-tatami-jsl-jsl2ui/src/main/epsilon/operations/jsl/actor/actorGroupDeclaration.eol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,52 @@ | ||
/* | ||
@cached | ||
operation JSL!ActorGroupDeclaration getFqName(): String { | ||
if (self.eContainer.isTypeOf(JSL!ActorGroupDeclaration) or self.eContainer.isTypeOf(JSL!ActorDeclaration)) { | ||
return self.eContainer.getFqName() + "::MenuItemGroup::" + self.name; | ||
operation JSL!UIMenuGroupDeclaration getFqName(): String { | ||
if (self.eContainer.isTypeOf(JSL!UIMenuGroupDeclaration) or self.eContainer.isTypeOf(JSL!UIMenuDeclaration)) { | ||
return self.eContainer.getFqName() + "::" + self.name; | ||
} | ||
return self.tag; | ||
return self.name; | ||
} | ||
|
||
@cached | ||
operation JSL!ActorGroupDeclaration getActorDeclaration(): JSL!ActorDeclaration { | ||
if (self.eContainer.isTypeOf(JSL!ActorGroupDeclaration)) { | ||
return self.eContainer.getActorDeclaration(); | ||
} else if (self.eContainer.isTypeOf(JSL!ActorDeclaration)) { | ||
return self.eContainer; | ||
operation JSL!UIMenuGroupDeclaration getRootMenu(): JSL!UIMenuDeclaration { | ||
if (self.eContainer.isDefined()) { | ||
if (self.eContainer.isTypeOf(JSL!UIMenuGroupDeclaration)) { | ||
return self.eContainer.getRootMenu(); | ||
} else if (self.eContainer.isTypeOf(JSL!UIMenuDeclaration)) { | ||
return self.eContainer; | ||
} | ||
} | ||
return null; | ||
} | ||
*/ | ||
|
||
@cached | ||
operation JSL!UIMenuGroupDeclaration getActorDeclaration(): JSL!ActorDeclaration { | ||
var root = self.getRootMenu(); | ||
if (root.isDefined()) { | ||
return root.getActorDeclaration(); | ||
} | ||
return null; | ||
} | ||
|
||
@cached | ||
operation JSL!UIMenuGroupDeclaration getExposedVisualElements(): Set { | ||
var ves = new Set(); | ||
|
||
ves.add(self); | ||
|
||
for (link in self.members.select(m | m.isTypeOf(JSL!UIMenuLinkDeclaration)).asSet()) { | ||
ves.add(link); | ||
ves.addAll(link.getExposedVisualElements()); | ||
} | ||
|
||
for (table in self.members.select(m | m.isTypeOf(JSL!UIMenuTableDeclaration)).asSet()) { | ||
ves.add(table); | ||
ves.addAll(table.getExposedVisualElements()); | ||
} | ||
|
||
for (group in self.members.select(m | m.isTypeOf(JSL!UIMenuGroupDeclaration)).asSet()) { | ||
ves.add(group); | ||
ves.addAll(group.getExposedVisualElements()); | ||
} | ||
|
||
return ves; | ||
} |
29 changes: 19 additions & 10 deletions
29
judo-tatami-jsl-jsl2ui/src/main/epsilon/operations/jsl/actor/actorLinkDeclaration.eol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,28 @@ | ||
/* | ||
@cached | ||
operation JSL!ActorLinkDeclaration getFqName(): String { | ||
if (self.getTransferContainer().isDefined()) { | ||
return self.getTransferContainer().getFqName() + "::" + self.name; | ||
operation JSL!UIMenuLinkDeclaration getFqName(): String { | ||
if (self.eContainer.isTypeOf(JSL!UIMenuGroupDeclaration) or self.eContainer.isTypeOf(JSL!UIMenuDeclaration)) { | ||
return self.eContainer.getFqName() + "::" + self.name; | ||
} | ||
return self.name; | ||
} | ||
|
||
@cached | ||
operation JSL!ActorLinkDeclaration getActorDeclaration(): JSL!ActorDeclaration { | ||
if (self.eContainer.isTypeOf(JSL!ActorGroupDeclaration)) { | ||
return self.eContainer.getActorDeclaration(); | ||
} else if (self.eContainer.isTypeOf(JSL!ActorDeclaration)) { | ||
return self.eContainer; | ||
operation JSL!UIMenuLinkDeclaration getRootMenu(): JSL!UIMenuDeclaration { | ||
if (self.eContainer.isDefined()) { | ||
if (self.eContainer.isTypeOf(JSL!UIMenuGroupDeclaration)) { | ||
return self.eContainer.getRootMenu(); | ||
} else if (self.eContainer.isTypeOf(JSL!UIMenuDeclaration)) { | ||
return self.eContainer; | ||
} | ||
} | ||
return null; | ||
} | ||
*/ | ||
|
||
@cached | ||
operation JSL!UIMenuLinkDeclaration getActorDeclaration(): JSL!ActorDeclaration { | ||
var root = self.getRootMenu(); | ||
if (root.isDefined()) { | ||
return root.getActorDeclaration(); | ||
} | ||
return null; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
judo-tatami-jsl-jsl2ui/src/main/epsilon/operations/jsl/ui/rowDeclaration.eol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
@cached | ||
operation JSL!UIRowDeclaration getId(): String { | ||
return (self.eContainer.getId() + "/" + self.name); | ||
} | ||
|
||
@cached | ||
operation JSL!UIRowDeclaration getFqName(): String { | ||
if (self.eContainer.isDefined()) { | ||
return self.eContainer.getFqName() + "::" + self.name; | ||
} | ||
return self.name; | ||
} | ||
|
||
@cached | ||
operation JSL!UIRowDeclaration getExposedVisualElements(): Set { | ||
var ves = new Set(); | ||
|
||
ves.add(self); | ||
ves.addAll(self.members.select(m | m.isTypeOf(JSL!UIRowColumnDeclaration)).asSet()); | ||
|
||
return ves; | ||
} |
14 changes: 0 additions & 14 deletions
14
judo-tatami-jsl-jsl2ui/src/main/epsilon/operations/jsl/ui/rowLinkDeclaration.eol
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.