Skip to content

Commit

Permalink
JNG-5859 fix whitespace inconsistencies
Browse files Browse the repository at this point in the history
  • Loading branch information
noherczeg committed Aug 7, 2024
1 parent 70aae94 commit cb7541e
Show file tree
Hide file tree
Showing 11 changed files with 202 additions and 202 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ operation JSL!TransferDeclaration isRefreshSupported(): Boolean {

@cached
operation JSL!TransferDeclaration isGenerated() : Boolean {
return actorDeclaration.getExposedTransferObjects().includes(self);
return actorDeclaration.getExposedTransferObjects().includes(self);
}

operation JSL!TransferDeclaration uiContainer() : UI!ui::VisualElement {
Expand All @@ -180,20 +180,20 @@ operation JSL!TransferDeclaration uiContainer() : UI!ui::VisualElement {

@cached
operation JSL!TransferDeclaration getCreateEventDeclaration() : JSL!TransferCreateDeclaration {
return self.members.selectOne(m | m.isKindOf(JSL!TransferCreateDeclaration));
return self.members.selectOne(m | m.isKindOf(JSL!TransferCreateDeclaration));
}

@cached
operation JSL!TransferDeclaration getFetchEventDeclaration() : JSL!TransferFetchDeclaration {
return self.members.selectOne(m | m.isKindOf(JSL!TransferFetchDeclaration));
return self.members.selectOne(m | m.isKindOf(JSL!TransferFetchDeclaration));
}

@cached
operation JSL!TransferDeclaration getUpdateEventDeclaration() : JSL!TransferUpdateDeclaration {
return self.members.selectOne(m | m.isKindOf(JSL!TransferUpdateDeclaration));
return self.members.selectOne(m | m.isKindOf(JSL!TransferUpdateDeclaration));
}

@cached
operation JSL!TransferDeclaration getDeleteEventDeclaration() : JSL!TransferDeleteDeclaration {
return self.members.selectOne(m | m.isKindOf(JSL!TransferDeleteDeclaration));
return self.members.selectOne(m | m.isKindOf(JSL!TransferDeleteDeclaration));
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ pre {
group.~pos = container.groups.indexOf(group) + 1;
}
}
}
for (visible : JSL!VisibleDeclaration in JSL!VisibleDeclaration.all()) {
}
for (visible : JSL!VisibleDeclaration in JSL!VisibleDeclaration.all()) {
if (visible.isTypeOf(JSL!ViewDeclaration) or visible.isTypeOf(JSL!RowDeclaration)) {
for (member in visible.members) {
member.~pos = visible.members.indexOf(member) + 1;
}
}
}
}
}

post {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ rule EmptyDashboardPageDefinition
to t: UI!ui::PageDefinition {
guard: s = actorDeclaration

t.setId(actorDeclaration.name + "/(jsl/" + s.getId() + ")/EmptyDashboardPageDefinition");
t.name = s.getFqName() + "::DashboardPage";
t.dashboard = true;
t.dataElement = s.equivalent("Actor");
t.setId(actorDeclaration.name + "/(jsl/" + s.getId() + ")/EmptyDashboardPageDefinition");
t.name = s.getFqName() + "::DashboardPage";
t.dashboard = true;
t.dataElement = s.equivalent("Actor");

t.container = s.equivalent("EmptyDashboardPageContainer");
actorDeclaration.equivalent("Application").pages.add(t);
Expand All @@ -130,12 +130,12 @@ rule EmptyDashboardPageContainer
guard: s = actorDeclaration

t.setId(actorDeclaration.name + "/(jsl/" + s.getId() + ")/EmptyDashboardPageContainer");
t.name = s.getFqName() + "::Dashboard";
t.label = "Dashboard";
t.type = UI!ui::PageContainerType#TABLE;
t.dataElement = s.equivalent("Actor");
t.name = s.getFqName() + "::Dashboard";
t.label = "Dashboard";
t.type = UI!ui::PageContainerType#TABLE;
t.dataElement = s.equivalent("Actor");

actorDeclaration.equivalent("Application").pageContainers.add(t);
actorDeclaration.equivalent("Application").pageContainers.add(t);

log.debug("EmptyDashboardPageContainer [" + t.name + "]");
log.debug("EmptyDashboardPageContainer [" + t.name + "]");
}
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ rule TransferDeclarationVisualElement
to t: UI!ui::Flex {
guard: actorDeclaration.getExposedTransferObjects().contains(s)

t.setId(actorDeclaration.name + "/(jsl/" + s.getId() + ")/TransferDeclarationVisualElement");
t.name = s.name;
t.~pos = 0;
t.col = 12d;
t.direction = UI!Axis#VERTICAL;
t.label = null; // we don't need labels for root visual elements
t.setId(actorDeclaration.name + "/(jsl/" + s.getId() + ")/TransferDeclarationVisualElement");
t.name = s.name;
t.~pos = 0;
t.col = 12d;
t.direction = UI!Axis#VERTICAL;
t.label = null; // we don't need labels for root visual elements
log.debug("TransferDeclarationVisualElement: " + t.name);
}

Expand All @@ -114,7 +114,7 @@ rule TransferDeclarationVisualElement
rule TransferDeclarationCreateButton
transform s: JSL!TransferDeclaration
to t: UI!ui::Button {
t.setId(actorDeclaration.name + "/(jsl/" + s.getId() + ")/TransferDeclarationCreateButton");
t.setId(actorDeclaration.name + "/(jsl/" + s.getId() + ")/TransferDeclarationCreateButton");
t.name = s.getFqName() + "::Create::Submit";
t.buttonStyle = "contained";
t.actionDefinition = s.equivalent("TransferDeclarationCreateActionDefinition");
Expand Down Expand Up @@ -147,7 +147,7 @@ rule TransferDeclarationCreateActionDefinition
rule TransferDeclarationRefreshButton
transform s: JSL!TransferDeclaration
to t: UI!ui::Button {
t.setId(actorDeclaration.name + "/(jsl/" + s.getId() + ")/TransferDeclarationRefreshButton");
t.setId(actorDeclaration.name + "/(jsl/" + s.getId() + ")/TransferDeclarationRefreshButton");
t.name = s.getFqName() + "::Refresh";
t.buttonStyle = "contained";
t.actionDefinition = s.equivalent("TransferDeclarationRefreshActionDefinition");
Expand All @@ -174,7 +174,7 @@ rule TransferDeclarationRefreshActionDefinition
rule TransferDeclarationUpdateButton
transform s: JSL!TransferDeclaration
to t: UI!ui::Button {
t.setId(actorDeclaration.name + "/(jsl/" + s.getId() + ")/TransferDeclarationUpdateButton");
t.setId(actorDeclaration.name + "/(jsl/" + s.getId() + ")/TransferDeclarationUpdateButton");
t.name = s.getFqName() + "::Update";
t.buttonStyle = "contained";
t.actionDefinition = s.equivalent("TransferDeclarationUpdateActionDefinition");
Expand All @@ -201,7 +201,7 @@ rule TransferDeclarationUpdateActionDefinition
rule TransferDeclarationDeleteButton
transform s: JSL!TransferDeclaration
to t: UI!ui::Button {
t.setId(actorDeclaration.name + "/(jsl/" + s.getId() + ")/TransferDeclarationDeleteButton");
t.setId(actorDeclaration.name + "/(jsl/" + s.getId() + ")/TransferDeclarationDeleteButton");
t.name = s.getFqName() + "::Delete";
t.buttonStyle = "contained";
t.actionDefinition = s.equivalent("TransferDeclarationDeleteActionDefinition");
Expand Down Expand Up @@ -229,7 +229,7 @@ rule TransferDeclarationBackButton
to t: UI!ui::Button {
guard: actorDeclaration.getExposedTransferObjects().contains(s)

t.setId(actorDeclaration.name + "/(jsl/" + s.getId() + ")/TransferDeclarationBackButton");
t.setId(actorDeclaration.name + "/(jsl/" + s.getId() + ")/TransferDeclarationBackButton");
t.name = s.getFqName() + "::Create::Back";
t.buttonStyle = "text";
t.actionDefinition = s.equivalent("TransferDeclarationBackActionDefinition");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
rule EnumerationMemberOption
transform s: JSL!EnumLiteral
to t: UI!ui::Option {
t.setId(actorDeclaration.name + "/(jsl/" + s.getId() + ")/EnumerationMemberOption");
t.setId(actorDeclaration.name + "/(jsl/" + s.getId() + ")/EnumerationMemberOption");
t.selected = false;
t.name = s.name;
t.enumerationMember = s.equivalent("CreateEnumerationMember");
t.name = s.name;
t.enumerationMember = s.equivalent("CreateEnumerationMember");
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ rule RowLinkPageDefinitionRefreshAction
guard: actorDeclaration.getAllRelations().contains(s)

t.setId(actorDeclaration.name + "/(jsl/" + s.getId() + ")/RowLinkPageDefinitionRefreshAction");
t.name = s.name + "::Refresh";
t.name = s.name + "::Refresh";
t.actionDefinition = s.referenceType.equivalent("TransferDeclarationRefreshActionDefinition");

log.debug("RowLinkPageDefinitionRefreshAction: " + t.name);
Expand All @@ -104,7 +104,7 @@ rule RowLinkPageDefinitionUpdateAction
to t: UI!ui::Action {
t.setId(actorDeclaration.name + "/(jsl/" + s.getId() + ")/RowLinkPageDefinitionUpdateAction");

t.name = s.name + "::Update";
t.name = s.name + "::Update";
t.actionDefinition = s.referenceType.equivalent("TransferDeclarationUpdateActionDefinition");

log.debug("RowLinkPageDefinitionUpdateAction: " + t.name);
Expand All @@ -117,7 +117,7 @@ rule RowLinkPageDefinitionDeleteAction
to t: UI!ui::Action {
t.setId(actorDeclaration.name + "/(jsl/" + s.getId() + ")/RowLinkPageDefinitionDeleteAction");

t.name = s.name + "::Delete";
t.name = s.name + "::Delete";
t.actionDefinition = s.referenceType.equivalent("TransferDeclarationDeleteActionDefinition");

log.debug("RowLinkPageDefinitionDeleteAction: " + t.name);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ rule AbstractViewFieldDeclaration
rule ViewFieldIcon
transform s: JSL!ViewFieldDeclaration
to t: UI!ui::Icon {
t.iconName = s.getIconModifier().value.value;
t.name = s.name + "FieldIcon";
t.setId(actorDeclaration.name + "/(jsl/" + s.getId() + ")/ViewFieldIcon");
t.iconName = s.getIconModifier().value.value;
t.name = s.name + "FieldIcon";
t.setId(actorDeclaration.name + "/(jsl/" + s.getId() + ")/ViewFieldIcon");
}

@greedy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ rule GroupFrame
rule GroupIcon
transform s: JSL!ViewGroupDeclaration
to t: UI!ui::Icon {
t.iconName = s.getIconModifier().value.value;
t.name = s.name + "GroupIcon";
t.setId(actorDeclaration.name + "/(jsl/" + s.getId() + ")/GroupIcon");
t.iconName = s.getIconModifier().value.value;
t.name = s.name + "GroupIcon";
t.setId(actorDeclaration.name + "/(jsl/" + s.getId() + ")/GroupIcon");
}
Loading

0 comments on commit cb7541e

Please sign in to comment.