comparison src/share/tools/IdealGraphVisualizer/Filter/src/com/sun/hotspot/igv/filter/helper.js @ 3217:064ebe531f9e

IdealGraphVisualizer: modify RemoveFilter to optionally remove all nodes that became orphans as result of the remove and add a JavaScript removeIncludeOrphans() filter function
author Peter Hofer <peter.hofer@jku.at>
date Wed, 13 Jul 2011 17:20:53 +0200
parents 53ddfe305645
children be914c1e065a
comparison
equal deleted inserted replaced
3216:93b74afbd379 3217:064ebe531f9e
33 f.apply(graph); 33 f.apply(graph);
34 } 34 }
35 35
36 function remove(property, regexp) { 36 function remove(property, regexp) {
37 var f = new RemoveFilter(""); 37 var f = new RemoveFilter("");
38 f.addRule(new RemoveFilter.RemoveRule(new MatcherSelector(new Properties.RegexpPropertyMatcher(property, regexp)), false, false)); 38 f.addRule(new RemoveFilter.RemoveRule(new MatcherSelector(new Properties.RegexpPropertyMatcher(property, regexp))));
39 f.apply(graph);
40 }
41
42 function removeIncludingOrphans(property, regexp) {
43 var f = new RemoveFilter("");
44 f.addRule(new RemoveFilter.RemoveRule(new MatcherSelector(new Properties.RegexpPropertyMatcher(property, regexp)), true));
39 f.apply(graph); 45 f.apply(graph);
40 } 46 }
41 47
42 function split(property, regexp, propertyName) { 48 function split(property, regexp, propertyName) {
43 if (propertyName == undefined) { 49 if (propertyName == undefined) {