-
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-5866 Add handling UI subtypes of Transfer field, relation (#256)
- Loading branch information
1 parent
362ac30
commit 9d04ce6
Showing
22 changed files
with
329 additions
and
44 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
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
17 changes: 17 additions & 0 deletions
17
judo-tatami-jsl-jsl2psm/src/main/epsilon/operations/jsl/data/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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
@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; | ||
} | ||
return self.tag; | ||
} | ||
|
||
@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; | ||
} | ||
return null; | ||
} |
17 changes: 17 additions & 0 deletions
17
judo-tatami-jsl-jsl2psm/src/main/epsilon/operations/jsl/data/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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
@cached | ||
operation JSL!ActorLinkDeclaration getFqName(): String { | ||
if (self.eContainer.isTypeOf(JSL!ActorGroupDeclaration) or self.eContainer.isTypeOf(JSL!ActorDeclaration)) { | ||
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; | ||
} | ||
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
6 changes: 6 additions & 0 deletions
6
judo-tatami-jsl-jsl2psm/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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import "viewDeclaration.eol"; | ||
import "viewFieldDeclaration.eol"; | ||
import "viewGroupDeclaration.eol"; | ||
import "viewPanelDeclaration.eol"; | ||
import "viewTabsDeclaration.eol"; | ||
import "visibleDeclaration.eol"; |
9 changes: 9 additions & 0 deletions
9
judo-tatami-jsl-jsl2psm/src/main/epsilon/operations/jsl/ui/viewDeclaration.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,9 @@ | ||
@cached | ||
operation JSL!ViewDeclaration getId(): String { | ||
return (self.eContainer.getId() + "/" + self.name); | ||
} | ||
|
||
@cached | ||
operation JSL!ViewDeclaration getFqName(): String { | ||
return self.eContainer.getFqName() + "::" + self.name; | ||
} |
18 changes: 18 additions & 0 deletions
18
judo-tatami-jsl-jsl2psm/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 getTransferContainer(): JSL!TransferDeclaration { | ||
var to = self.eContainer; | ||
while (to.isDefined() and not to.isKindOf(JSL!TransferDeclaration)) { | ||
to = to.eContainer; | ||
} | ||
return to; | ||
} |
18 changes: 18 additions & 0 deletions
18
judo-tatami-jsl-jsl2psm/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,18 @@ | ||
@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 getTransferContainer(): JSL!TransferDeclaration { | ||
var to = self.eContainer; | ||
while (to.isDefined() and not to.isKindOf(JSL!TransferDeclaration)) { | ||
to = to.eContainer; | ||
} | ||
return to; | ||
} |
15 changes: 15 additions & 0 deletions
15
judo-tatami-jsl-jsl2psm/src/main/epsilon/operations/jsl/ui/viewPanelDeclaration.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,15 @@ | ||
@cached | ||
operation JSL!ViewPanelDeclaration getModelRoot(): JUDOPSM!Package { | ||
return self.eContainer().getModelRoot(); | ||
} | ||
|
||
@cached | ||
operation JSL!ViewPanelDeclaration getTransferContainer(): JSL!TransferDeclaration { | ||
if (self.eContainer.isKindOf(JSL!TransferDeclaration)) { | ||
return self.eContainer; | ||
} else if (self.eContainer.isKindOf(JSL!ViewPanelDeclaration)) { | ||
return self.eContainer.getTransferContainer(); | ||
} | ||
|
||
return null; | ||
} |
18 changes: 18 additions & 0 deletions
18
judo-tatami-jsl-jsl2psm/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,18 @@ | ||
@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 getTransferContainer(): JSL!TransferDeclaration { | ||
var to = self.eContainer; | ||
while (to.isDefined() and not to.isKindOf(JSL!TransferDeclaration)) { | ||
to = to.eContainer; | ||
} | ||
return to; | ||
} |
9 changes: 9 additions & 0 deletions
9
judo-tatami-jsl-jsl2psm/src/main/epsilon/operations/jsl/ui/visibleDeclaration.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,9 @@ | ||
@cached | ||
operation JSL!VisibleDeclaration getId(): String { | ||
return (self.eContainer.getId() + "/" + self.name); | ||
} | ||
|
||
@cached | ||
operation JSL!VisibleDeclaration getFqName(): String { | ||
return self.eContainer.getFqName() + "::" + self.name; | ||
} |
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
Oops, something went wrong.