# HG changeset patch # User dadubrow # Date 1239390142 18000 # Node ID 8839c373a1c1ff14907f4891aba0b3470745c14c # Parent 985775f74012b26edaa8c6b57fa92e13d6944fcb fix getFilterText in tester for overview tab case diff -r 985775f74012 -r 8839c373a1c1 debuggercdi/com.nokia.carbide.cpp.debug.kernelaware/src/com/nokia/carbide/cpp/debug/kernelaware/testapi/SymbianOSViewTester.java --- a/debuggercdi/com.nokia.carbide.cpp.debug.kernelaware/src/com/nokia/carbide/cpp/debug/kernelaware/testapi/SymbianOSViewTester.java Thu Apr 09 14:18:59 2009 -0500 +++ b/debuggercdi/com.nokia.carbide.cpp.debug.kernelaware/src/com/nokia/carbide/cpp/debug/kernelaware/testapi/SymbianOSViewTester.java Fri Apr 10 14:02:22 2009 -0500 @@ -19,8 +19,7 @@ import com.freescale.cdt.debug.cw.core.CWPlugin; import com.nokia.carbide.cpp.debug.kernelaware.*; -import com.nokia.carbide.cpp.debug.kernelaware.ui.GenericTableTab; -import com.nokia.carbide.cpp.debug.kernelaware.ui.SymbianOSView; +import com.nokia.carbide.cpp.debug.kernelaware.ui.*; import org.eclipse.jface.viewers.*; import org.eclipse.swt.widgets.TabFolder; @@ -123,7 +122,13 @@ */ public static Text getFilterText(IViewPart viewPart) { Viewer viewer = getCurrentViewer(viewPart); - GenericTableTab tableTab = (GenericTableTab) viewer.getData("controller"); - return tableTab.getFilterText(); + Object data = viewer.getData("controller"); + if (data instanceof GenericTableTab) { + return ((GenericTableTab) data).getFilterText(); + } + else if (data instanceof OverviewTab) { + return ((OverviewTab) data).getFilterText(); + } + return null; } } diff -r 985775f74012 -r 8839c373a1c1 debuggercdi/com.nokia.carbide.cpp.debug.kernelaware/src/com/nokia/carbide/cpp/debug/kernelaware/ui/OverviewTab.java --- a/debuggercdi/com.nokia.carbide.cpp.debug.kernelaware/src/com/nokia/carbide/cpp/debug/kernelaware/ui/OverviewTab.java Thu Apr 09 14:18:59 2009 -0500 +++ b/debuggercdi/com.nokia.carbide.cpp.debug.kernelaware/src/com/nokia/carbide/cpp/debug/kernelaware/ui/OverviewTab.java Fri Apr 10 14:02:22 2009 -0500 @@ -261,6 +261,7 @@ Tree tree = viewer.getTree(); tree.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 3, 1)); + viewer.setData("controller", this); //$NON-NLS-1$ return viewer; } @@ -277,4 +278,9 @@ viewer.refresh(); } } + + + public Text getFilterText() { + return filterText; + } }