--- 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;
}
}
--- 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;
+ }
}