diff --git a/sdk/jme3-core/src/com/jme3/gde/core/filters/FilterPostProcessorNode.java b/sdk/jme3-core/src/com/jme3/gde/core/filters/FilterPostProcessorNode.java index 76c9c7e78..56c137905 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/filters/FilterPostProcessorNode.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/filters/FilterPostProcessorNode.java @@ -75,8 +75,6 @@ public class FilterPostProcessorNode extends AbstractNode { getLookup().lookup(FilterIndexSupport.class).setFilterPostProcessorNode(this); ((FilterChildren) getChildren()).setFilterPostProcessorNode(this); - - } @Override @@ -165,8 +163,8 @@ public class FilterPostProcessorNode extends AbstractNode { public Action[] getActions(boolean context) { // return super.getActions(context); return new Action[]{ - new NewFilterPopup(this) - }; + new NewFilterPopup(this) + }; } public static class FilterChildren extends Children.Keys { @@ -221,15 +219,10 @@ public class FilterPostProcessorNode extends AbstractNode { @Override protected Node[] createNodes(Object t) { Filter filter = (Filter) t; - for (FilterNode di : Lookup.getDefault().lookupAll(FilterNode.class)) { - if (di.getExplorerObjectClass().getName().equals(filter.getClass().getName())) { - Node[] ret = di.createNodes(filter, dataObject, readOnly); - if (ret != null) { - return ret; - } - } - } - return new Node[]{}; + //get JmeFilter, the only FilterNode spi + FilterNode di = Lookup.getDefault().lookup(FilterNode.class); + Node[] ret = di.createNodes(filter, dataObject, readOnly); + return ret; } } }