测试禁用、启用对插件运行的影响,先安装插件,新建模板,输入测试函数:FRTest("return value"),单元格显示内容为:用html显示内容。保存预览,显示aaa链接,单击链接,正常显示return value,如果禁用、启用一下插件,或者重启设计器,就不能显示正常内容了,提示报错。
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package com.fr.plugin.cool.cartnoon;
|
|
|
|
|
|
|
|
import com.fr.intelli.record.Focus;
|
|
|
|
import com.fr.intelli.record.Original;
|
|
|
|
import com.fr.plugin.transform.FunctionRecorder;
|
|
|
|
import com.fr.record.analyzer.EnableMetrics;
|
|
|
|
import com.fr.stable.fun.impl.AbstractLocaleFinder;
|
|
|
|
|
|
|
|
@FunctionRecorder
|
|
|
|
@EnableMetrics
|
|
|
|
public class FunLocaleFinder extends AbstractLocaleFinder {
|
|
|
|
@Override
|
|
|
|
@Focus(id = CartUtils.PLUGIN_ID, text = "Plugin-Test_Function_coolCartNoon", source = Original.PLUGIN)
|
|
|
|
public String find() {
|
|
|
|
return "com/fr/plugin/cool/cartnoon/local/coolCartNoon";
|
|
|
|
}
|
|
|
|
}
|