sdk filters : modification of the lookup for JmeFilter
This commit is contained in:
parent
bc6ced1ed4
commit
01a6a0e8a0
@ -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<Object> {
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user