|
|
|
@ -3,6 +3,8 @@ package com.fr.design.fun.impl;
|
|
|
|
|
import com.fr.design.beans.FurtherBasicBeanPane; |
|
|
|
|
import com.fr.design.fun.JavaScriptActionProvider; |
|
|
|
|
import com.fr.design.javascript.JavaScriptActionPane; |
|
|
|
|
import com.fr.design.mainframe.DesignerContext; |
|
|
|
|
import com.fr.design.mainframe.JTemplate; |
|
|
|
|
import com.fr.js.JavaScript; |
|
|
|
|
import com.fr.stable.fun.impl.AbstractProvider; |
|
|
|
|
import com.fr.stable.fun.mark.API; |
|
|
|
@ -27,10 +29,16 @@ public abstract class AbstractJavaScriptActionProvider extends AbstractProvider
|
|
|
|
|
return getJavaScriptActionPane(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 判断是否是支持的类型(cpt,frm),默认是 |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
public boolean accept(JTemplate template) { |
|
|
|
|
// 这里只是为了兼容原来的isSupportType方法
|
|
|
|
|
boolean result = isSupportType(); |
|
|
|
|
if (result) { |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public boolean isSupportType(){ |
|
|
|
|
return true; |
|
|
|
|