diff --git a/plugin.xml b/plugin.xml
index 4a774df..45bc827 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -10,9 +10,9 @@
-
+
-
+
diff --git a/src/main/java/com/fr/plugin/topparameterstyle/LocationAttrDefine.java b/src/main/java/com/fr/plugin/topparameterstyle/LocationAttrDefine.java
index c618742..43dcf4d 100644
--- a/src/main/java/com/fr/plugin/topparameterstyle/LocationAttrDefine.java
+++ b/src/main/java/com/fr/plugin/topparameterstyle/LocationAttrDefine.java
@@ -1,13 +1,18 @@
package com.fr.plugin.topparameterstyle;
-import com.fr.design.fun.impl.AbstractLocationAttrProvider;
import com.fr.intelli.record.Focus;
import com.fr.intelli.record.Original;
+import com.fr.json.JSONException;
+import com.fr.json.JSONObject;
+import com.fr.log.FineLoggerFactory;
import com.fr.record.analyzer.EnableMetrics;
+import com.fr.report.fun.impl.AbstractLocationAttrProvider;
@EnableMetrics
public class LocationAttrDefine extends AbstractLocationAttrProvider {
+ private String queryType = "topbar";
+
@Override
@Focus(id = "com.fr.solution.plugin.topparameterstyle", text = "FR_Plugin_TOP_Parameter_Style", source = Original.PLUGIN)
public String descriptor() {
@@ -15,9 +20,13 @@ public class LocationAttrDefine extends AbstractLocationAttrProvider {
}
@Override
- public String getStyleType() {
- return "topbar";
+ public JSONObject createJSON() {
+ JSONObject jo = JSONObject.create();
+ try {
+ jo.put("queryType", this.queryType);
+ } catch (JSONException e) {
+ FineLoggerFactory.getLogger().error(e.getMessage(), e);
+ }
+ return jo;
}
-
-
}