-
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-5852 JNG-5853 JNG-5855 transform UI elements (#255)
- Loading branch information
Showing
24 changed files
with
991 additions
and
124 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
judo-tatami-jsl-jsl2ui/src/main/epsilon/operations/_importAll.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,4 +1,6 @@ | ||
import "id.eol"; | ||
import "equivalentDiscriminated.eol"; | ||
|
||
import "ui/namedElement.eol"; | ||
|
||
import "jsl/_importAll.eol"; |
5 changes: 5 additions & 0 deletions
5
judo-tatami-jsl-jsl2ui/src/main/epsilon/operations/jsl/data/enumDeclaration.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
5 changes: 5 additions & 0 deletions
5
judo-tatami-jsl-jsl2ui/src/main/epsilon/operations/jsl/data/enumLiteral.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
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
3 changes: 3 additions & 0 deletions
3
judo-tatami-jsl-jsl2ui/src/main/epsilon/operations/jsl/ui/_importUI.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,3 +1,6 @@ | ||
import "viewDeclaration.eol"; | ||
import "viewFieldDeclaration.eol"; | ||
import "viewGroupDeclaration.eol"; | ||
import "viewPanelDeclaration.eol"; | ||
import "viewTabsDeclaration.eol"; | ||
import "visibleDeclaration.eol"; |
18 changes: 18 additions & 0 deletions
18
judo-tatami-jsl-jsl2ui/src/main/epsilon/operations/jsl/ui/viewFieldDeclaration.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,18 @@ | ||
@cached | ||
operation JSL!ViewFieldDeclaration getId(): String { | ||
return (self.eContainer.getId() + "/" + self.name); | ||
} | ||
|
||
@cached | ||
operation JSL!ViewFieldDeclaration getFqName(): String { | ||
return self.eContainer.getFqName() + "::" + self.name; | ||
} | ||
|
||
@cached | ||
operation JSL!ViewFieldDeclaration getTransferObjectType(): JSL!TransferDeclaration { | ||
var to = self.eContainer; | ||
while (to.isDefined() and not to.isKindOf(JSL!TransferDeclaration)) { | ||
to = to.eContainer; | ||
} | ||
return to; | ||
} |
28 changes: 28 additions & 0 deletions
28
judo-tatami-jsl-jsl2ui/src/main/epsilon/operations/jsl/ui/viewGroupDeclaration.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,28 @@ | ||
@cached | ||
operation JSL!ViewGroupDeclaration getId(): String { | ||
return (self.eContainer.getId() + "/" + self.name); | ||
} | ||
|
||
@cached | ||
operation JSL!ViewGroupDeclaration getFqName(): String { | ||
return self.eContainer.getFqName() + "::" + self.name; | ||
} | ||
|
||
@cached | ||
operation JSL!ViewGroupDeclaration getTransferObjectType(): JSL!TransferDeclaration { | ||
var to = self.eContainer; | ||
while (to.isDefined() and not to.isKindOf(JSL!TransferDeclaration)) { | ||
to = to.eContainer; | ||
} | ||
return to; | ||
} | ||
|
||
@cached | ||
operation JSL!ViewGroupDeclaration isFrame(): Boolean { | ||
var frame = self.getFrame(); | ||
return frame.isDefined() and frame.isTrue(); | ||
} | ||
|
||
operation JSL!ViewGroupDeclaration uiContainer() : UI!ui::VisualElement { | ||
return self.equivalent("GroupVisualElement"); | ||
} |
27 changes: 27 additions & 0 deletions
27
judo-tatami-jsl-jsl2ui/src/main/epsilon/operations/jsl/ui/viewTabsDeclaration.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,27 @@ | ||
@cached | ||
operation JSL!ViewTabsDeclaration getId(): String { | ||
return (self.eContainer.getId() + "/" + self.name); | ||
} | ||
|
||
@cached | ||
operation JSL!ViewTabsDeclaration getFqName(): String { | ||
return self.eContainer.getFqName() + "::" + self.name; | ||
} | ||
|
||
@cached | ||
operation JSL!ViewTabsDeclaration getTransferObjectType(): JSL!TransferDeclaration { | ||
var to = self.eContainer; | ||
while (to.isDefined() and not to.isKindOf(JSL!TransferDeclaration)) { | ||
to = to.eContainer; | ||
} | ||
return to; | ||
} | ||
|
||
@cached | ||
operation JSL!ViewTabsDeclaration isFrame(): Boolean { | ||
return false; | ||
} | ||
|
||
operation JSL!ViewTabsDeclaration uiContainer() : UI!ui::VisualElement { | ||
return self.equivalent("TabBarVisualElement"); | ||
} |
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
10 changes: 10 additions & 0 deletions
10
judo-tatami-jsl-jsl2ui/src/main/epsilon/transformations/ui/modules/view/enumLiteral.etl
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,10 @@ | ||
@lazy | ||
@greedy | ||
rule EnumerationMemberOption | ||
transform s: JSL!EnumLiteral | ||
to t: UI!ui::Option { | ||
t.setId(actorDeclaration.name + "/(jsl/" + s.getId() + ")/EnumerationMemberOption"); | ||
t.selected = false; | ||
t.name = s.name; | ||
t.enumerationMember = s.equivalent("CreateEnumerationMember"); | ||
} |
Oops, something went wrong.