|
Lines 1-5
Link Here
|
| 1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2000, 2007 IBM Corporation and others. |
2 |
* Copyright (c) 2000, 2008 IBM Corporation and others. |
| 3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
|
Lines 246-252
Link Here
|
| 246 |
return super.isExpandable(parent); |
246 |
return super.isExpandable(parent); |
| 247 |
} |
247 |
} |
| 248 |
|
248 |
|
| 249 |
protected final boolean hasFilteredChildren(Object parent) { |
249 |
/** |
|
|
250 |
* Public method to test if a element has any children that passed the filters |
| 251 |
* @param parent the element to test |
| 252 |
* @return return <code>true</code> if the element has at least a child that passed the filters |
| 253 |
*/ |
| 254 |
public final boolean hasFilteredChildren(Object parent) { |
| 250 |
Object[] rawChildren= getRawChildren(parent); |
255 |
Object[] rawChildren= getRawChildren(parent); |
| 251 |
return containsNonFiltered(rawChildren, parent); |
256 |
return containsNonFiltered(rawChildren, parent); |
| 252 |
} |
257 |
} |
|
Lines 323-329
Link Here
|
| 323 |
* Public method to test if a element is filtered by the views active filters |
328 |
* Public method to test if a element is filtered by the views active filters |
| 324 |
* @param object the element to test for |
329 |
* @param object the element to test for |
| 325 |
* @param parent the parent element |
330 |
* @param parent the parent element |
| 326 |
* @return return <code>true if the element is filtered</code> |
331 |
* @return return <code>true</code> if the element is filtered |
| 327 |
*/ |
332 |
*/ |
| 328 |
public boolean isFiltered(Object object, Object parent) { |
333 |
public boolean isFiltered(Object object, Object parent) { |
| 329 |
return isFiltered(object, parent, getFilters()); |
334 |
return isFiltered(object, parent, getFilters()); |