Skip to content

Commit 97dbbed

Browse files
committed
ACTIVE PROPERTY support
1 parent 8ca22e0 commit 97dbbed

File tree

3 files changed

+11
-15
lines changed

3 files changed

+11
-15
lines changed

META-INF/plugin.xml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,9 @@
88
<description>Plugin provides lsFusion language support.</description>
99

1010
<change-notes><![CDATA[
11-
<b>Version 1.0.300</b><br>
11+
<b>Version 1.0.301</b><br>
1212
<ul>
13-
<li>UML Diagram improvements</li>
14-
<li>NEWTHREAD: implement notify action</li>
15-
<li>NAVIGATOR SCHEDULE support</li>
16-
<li>FindImplementations optimisation</li>
17-
<li>TREE hierarchicalCaption support</li>
13+
<li>ACTIVE PROPERTY support</li>
1814
</ul>
1915
]]>
2016
</change-notes>

src/com/lsfusion/lang/LSF.bnf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ expressionFriendlyPD ::= joinPropertyDefinition
365365
| castPropertyDefinition
366366
| sessionPropertyDefinition
367367
| signaturePropertyDefinition
368-
| activeTabPropertyDefinition
368+
| activePropertyDefinition
369369
| roundPropertyDefinition
370370
| expressionLiteral
371371
| objectPropertyDefinition
@@ -519,7 +519,7 @@ sessionPropertyDefinition ::= sessionPropertyType LBRAC propertyExpression RBRAC
519519
signaturePropertyDefinition ::= ISCLASS LBRAC propertyExpression RBRAC
520520
{pin = 2 implements = "com.lsfusion.lang.psi.context.LSFExpression" methods = [ resolveInferredValueClass inferParamClasses getValueClassNames getValuePropertyNames ]}
521521

522-
activeTabPropertyDefinition ::= ACTIVE TAB componentID
522+
activePropertyDefinition ::= ACTIVE (TAB componentID | PROPERTY formPropertyDrawID)
523523
{
524524
pin = 1
525525
implements = "com.lsfusion.lang.psi.context.LSFExpression"

src/com/lsfusion/lang/psi/LSFPsiImplUtil.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1437,7 +1437,7 @@ public static LSFExClassSet resolveInferredValueClass(@NotNull LSFSignaturePrope
14371437
}
14381438

14391439
@Nullable
1440-
public static LSFExClassSet resolveInferredValueClass(@NotNull LSFActiveTabPropertyDefinition sourceStatement, @Nullable InferExResult inferred) {
1440+
public static LSFExClassSet resolveInferredValueClass(@NotNull LSFActivePropertyDefinition sourceStatement, @Nullable InferExResult inferred) {
14411441
return LSFExClassSet.logical;
14421442
}
14431443

@@ -2000,7 +2000,7 @@ public static List<String> getValueClassNames(@NotNull LSFSignaturePropertyDefin
20002000
return singletonList(LogicalClass.instance.getName());
20012001
}
20022002

2003-
public static List<String> getValueClassNames(@NotNull LSFActiveTabPropertyDefinition sourceStatement) {
2003+
public static List<String> getValueClassNames(@NotNull LSFActivePropertyDefinition sourceStatement) {
20042004
return singletonList(LogicalClass.instance.getName());
20052005
}
20062006

@@ -2367,7 +2367,7 @@ public static List<String> getValuePropertyNames(@NotNull LSFSignaturePropertyDe
23672367
return Collections.EMPTY_LIST;
23682368
}
23692369

2370-
public static List<String> getValuePropertyNames(@NotNull LSFActiveTabPropertyDefinition sourceStatement) {
2370+
public static List<String> getValuePropertyNames(@NotNull LSFActivePropertyDefinition sourceStatement) {
23712371
return Collections.EMPTY_LIST;
23722372
}
23732373

@@ -3789,8 +3789,8 @@ public static Inferred inferParamClasses(@NotNull LSFSignaturePropertyDefinition
37893789
return inferParamClasses(sourceStatement.getPropertyExpression(), null);
37903790
}
37913791

3792-
public
3793-
@NotNull static Inferred inferParamClasses(@NotNull LSFActiveTabPropertyDefinition sourceStatement, @Nullable LSFExClassSet valueClass) {
3792+
@NotNull
3793+
public static Inferred inferParamClasses(@NotNull LSFActivePropertyDefinition sourceStatement, @Nullable LSFExClassSet valueClass) {
37943794
return Inferred.EMPTY;
37953795
}
37963796

@@ -4834,8 +4834,8 @@ public static String getDocumentation(LSFSessionPropertyDefinition lsfSessionPro
48344834
return "Change_operators_SET_CHANGED_etc";
48354835
}
48364836

4837-
public static String getDocumentation(LSFActiveTabPropertyDefinition lsfActiveTabPropertyDefinition, PsiElement child) {
4838-
return "ACTIVE_TAB_operator";
4837+
public static String getDocumentation(LSFActivePropertyDefinition lsfActivePropertyDefinition, PsiElement child) {
4838+
return lsfActivePropertyDefinition.getComponentID() != null ? "ACTIVE_TAB_operator" : "ACTIVE_PROPERTY_operator";
48394839
}
48404840

48414841
public static String getDocumentation(LSFDataPropertyDefinition lsfDataPropertyDefinition, PsiElement child) {

0 commit comments

Comments
 (0)