feat: comprehensive cross-file support and performance optimization (v3.3.0)

- Implemented cross-file completion, references, and validation for .frml files.
- Optimized resource discovery using IntelliJ indexing (ReferencesSearch) to fix IDE freeze.
- Refactored shared search logic into DynFormPathUtils.
- Excluded <ROW> tags from field definition requirements.
- Updated plugin version to 3.3.0.
This commit is contained in:
2026-05-14 18:27:57 +07:00
parent b6dc46d775
commit 431e51079c
35 changed files with 4693 additions and 565 deletions

View File

@@ -11,7 +11,7 @@
SDKLogger logger = new SDKLogger("Operate-actions");
public boolean bgt0102010_add(SystemFactory factory, JSONObject jsData) {
public boolean flowAdd(SystemFactory factory, JSONObject jsData) {
if (!jsData.getString("-- some important field --").isBlank()) {
DBConnector dbConn = factory.appDatabase.getXConnector();
try {
@@ -45,6 +45,14 @@
return true;
}
public boolean flowUpdate(SystemFactory factory, JSONObject jsData) {
return true;
}
public boolean flowDelete(SystemFactory factory, JSONObject jsData) {
return true;
}
public boolean _action_skeleton(SystemFactory factory, JSONObject jsData) {
if (!jsData.getString("-- some important field --").isBlank()) {
DBConnector dbConn = factory.appDatabase.getXConnector();
@@ -62,7 +70,7 @@
return true;
}
public boolean execute(String action, SystemFactory factory) {
private boolean execute(String action, SystemFactory factory) {
try {
Class<?> thisClass = getClass();
Method mtAction = thisClass.getMethod(action, SystemFactory.class, JSONObject.class);

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<FORMS xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="xsd/#dynf_form_def.xsd">
<FORMS xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../xsd/dynf-form-def.xsd">
<INCLUDES>
<INCLUDE FILE="#grids/grid-construct-budget.frml"></INCLUDE>
</INCLUDES>
@@ -94,6 +94,7 @@
</DATASETS>
<FORM>
<EXECUTOR NAME="bdgt04-actions" ADD-ACTION="flowAdd" UPDATE-ACTION="flowUpdate" DELETE-ACTION="flowDelete"/>
<FORM_BROWSE DATAID="DS-MASTER">
<HEADER NAVI="N" EDIT="N" ADD="N" DELETE="N" VIEW="N"/>
<PAGESIZE>0</PAGESIZE>

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<FORMS xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="xsd/#dynf_form_def.xsd">
<FORMS xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="/xsd/#dynf_form_def.xsd">
<DATASETS>
<DATASET ID="DS-PROJECT-STTGYS">
<SCHEMA>APP</SCHEMA>