Browse Source

修改

master
loy 8 years ago
parent
commit
a7a54cd2b5
  1. 6
      designer_base/src/com/fr/design/fun/JavaScriptActionProvider.java
  2. 15
      designer_base/src/com/fr/design/fun/impl/AbstractJavaScriptActionExtensionProvider.java
  3. 5
      designer_base/src/com/fr/design/fun/impl/AbstractJavaScriptActionProvider.java
  4. 5
      designer_base/src/com/fr/design/javascript/JavaScriptActionPane.java

6
designer_base/src/com/fr/design/fun/JavaScriptActionProvider.java

@ -1,6 +1,7 @@
package com.fr.design.fun;
import com.fr.design.beans.FurtherBasicBeanPane;
import com.fr.design.javascript.JavaScriptActionPane;
import com.fr.js.JavaScript;
import com.fr.stable.fun.mark.Mutable;
@ -13,6 +14,11 @@ public interface JavaScriptActionProvider extends Mutable{
int CURRENT_LEVEL = 1;
/**
* 传给插件额外参数
* @param pane
*/
void setJavaScriptActionPane(JavaScriptActionPane pane);
FurtherBasicBeanPane<? extends JavaScript> getJavaScriptActionPane();
}

15
designer_base/src/com/fr/design/fun/impl/AbstractJavaScriptActionExtensionProvider.java

@ -1,15 +0,0 @@
package com.fr.design.fun.impl;
import com.fr.design.javascript.JavaScriptActionPane;
/**
* Created by loy on 16/8/23.
*/
public abstract class AbstractJavaScriptActionExtensionProvider extends AbstractJavaScriptActionProvider {
/**
* 传给插件额外参数
* @param pane
*/
public abstract void setJavaScriptActionPane(JavaScriptActionPane pane);
}

5
designer_base/src/com/fr/design/fun/impl/AbstractJavaScriptActionProvider.java

@ -1,6 +1,7 @@
package com.fr.design.fun.impl;
import com.fr.design.fun.JavaScriptActionProvider;
import com.fr.design.javascript.JavaScriptActionPane;
import com.fr.stable.fun.impl.AbstractProvider;
import com.fr.stable.fun.mark.API;
@ -18,4 +19,8 @@ public abstract class AbstractJavaScriptActionProvider extends AbstractProvider
public String mark4Provider() {
return getClass().getName();
}
@Override
public void setJavaScriptActionPane(JavaScriptActionPane pane) {
}
}

5
designer_base/src/com/fr/design/javascript/JavaScriptActionPane.java

@ -3,7 +3,6 @@ package com.fr.design.javascript;
import com.fr.design.ExtraDesignClassManager;
import com.fr.design.beans.FurtherBasicBeanPane;
import com.fr.design.fun.JavaScriptActionProvider;
import com.fr.design.fun.impl.AbstractJavaScriptActionExtensionProvider;
import com.fr.design.gui.frpane.UIComboBoxPane;
import com.fr.design.gui.ibutton.UIButton;
import com.fr.design.mainframe.DesignerContext;
@ -57,9 +56,7 @@ public abstract class JavaScriptActionPane extends UIComboBoxPane<JavaScript> {
Set<JavaScriptActionProvider> javaScriptActionProviders = ExtraDesignClassManager.getInstance().getArray(JavaScriptActionProvider.XML_TAG);
if (javaScriptActionProviders != null) {
for (JavaScriptActionProvider jsp : javaScriptActionProviders) {
if (jsp instanceof AbstractJavaScriptActionExtensionProvider) {
((AbstractJavaScriptActionExtensionProvider) jsp).setJavaScriptActionPane(this);
}
jsp.setJavaScriptActionPane(this);
paneList.add(jsp.getJavaScriptActionPane());
}
}

Loading…
Cancel
Save