summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Hoellering2012-06-08 17:36:06 (EDT)
committer Fabian Steeg2012-06-08 17:36:06 (EDT)
commit240d714192eb6e5017007e7aa99deea997553649 (patch)
tree050ddd441a684641d6233cd77fc3467046eb45c3
parentd09233adb17b0b3990157d85b831d7b7911e5c82 (diff)
downloadorg.eclipse.gef4-240d714192eb6e5017007e7aa99deea997553649.zip
org.eclipse.gef4-240d714192eb6e5017007e7aa99deea997553649.tar.gz
org.eclipse.gef4-240d714192eb6e5017007e7aa99deea997553649.tar.bz2
[381852] Create nodes only if they aren't filtered
-rw-r--r--org.eclipse.zest.jface/src/org/eclipse/zest/core/viewers/internal/GraphModelEntityFactory.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.zest.jface/src/org/eclipse/zest/core/viewers/internal/GraphModelEntityFactory.java b/org.eclipse.zest.jface/src/org/eclipse/zest/core/viewers/internal/GraphModelEntityFactory.java
index 3d615a6..d5c0d38 100644
--- a/org.eclipse.zest.jface/src/org/eclipse/zest/core/viewers/internal/GraphModelEntityFactory.java
+++ b/org.eclipse.zest.jface/src/org/eclipse/zest/core/viewers/internal/GraphModelEntityFactory.java
@@ -63,7 +63,9 @@ public class GraphModelEntityFactory extends AbstractStylingModelFactory {
}
for (int i = 0; i < entities.length; i++) {
Object data = entities[i];
- createNode(model, data);
+ if (!filterElement(inputElement, data)) {
+ createNode(model, data);
+ }
}
// We may have other entities (such as children of containers)