debuggercdi/com.nokia.carbide.cpp.debug.kernelaware/src/com/nokia/carbide/cpp/debug/kernelaware/testapi/SymbianOSViewTester.java
author dadubrow
Wed, 01 Apr 2009 14:49:26 -0500
changeset 20 5c466f93ffe1
child 82 8839c373a1c1
permissions -rw-r--r--
[Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
20
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
     1
/*
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
     2
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
     3
* All rights reserved.
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
     4
* This component and the accompanying materials are made available
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
     5
* under the terms of the License "Eclipse Public License v1.0"
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
     6
* which accompanies this distribution, and is available
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
     8
*
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
     9
* Initial Contributors:
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    11
*
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    12
* Contributors:
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    13
*
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    14
* Description: 
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    15
*
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    16
*/
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    17
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    18
package com.nokia.carbide.cpp.debug.kernelaware.testapi;
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    19
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    20
import com.freescale.cdt.debug.cw.core.CWPlugin;
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    21
import com.nokia.carbide.cpp.debug.kernelaware.*;
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    22
import com.nokia.carbide.cpp.debug.kernelaware.ui.GenericTableTab;
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    23
import com.nokia.carbide.cpp.debug.kernelaware.ui.SymbianOSView;
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    24
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    25
import org.eclipse.jface.viewers.*;
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    26
import org.eclipse.swt.widgets.TabFolder;
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    27
import org.eclipse.swt.widgets.Text;
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    28
import org.eclipse.ui.IViewPart;
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    29
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    30
/**
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    31
 * An interface for testing the Symbian OS View
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    32
 */
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    33
public class SymbianOSViewTester {
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    34
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    35
	/**
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    36
	 * Select a tab by id
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    37
	 * @param viewPart IViewPart
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    38
	 * @param tabId int
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    39
	 */
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    40
	public static void selectTab(IViewPart viewPart, int tabId) {
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    41
		TabFolder tabFolder = (TabFolder) viewPart.getAdapter(TabFolder.class);
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    42
		tabFolder.setSelection(tabId);
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    43
		// can't force this to notify so explicitly call notification routine
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    44
		SymbianOSView symbianOSView = (SymbianOSView) viewPart.getAdapter(SymbianOSView.class);
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    45
		symbianOSView.DoAction_TabSelection(tabFolder.getItem(tabId));
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    46
	}
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    47
	
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    48
	/**
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    49
	 * Do refresh
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    50
	 * @param viewPart IViewPart
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    51
	 */
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    52
	public static void refresh(IViewPart viewPart) {
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    53
		SymbianOSView symbianOSView = (SymbianOSView) viewPart.getAdapter(SymbianOSView.class);
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    54
		symbianOSView.DoAction_Refresh();
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    55
	}
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    56
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    57
	/**
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    58
	 * Enable or disable auto refresh
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    59
	 * @param viewPart IViewPart
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    60
	 * @param enabled boolean
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    61
	 */
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    62
	public static void setAutoRefreshEnabled(IViewPart viewPart, boolean enabled) {
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    63
		SymbianOSView symbianOSView = (SymbianOSView) viewPart.getAdapter(SymbianOSView.class);
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    64
		symbianOSView.setAutoRefresh(enabled);
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    65
	}
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    66
	
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    67
	/**
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    68
	 * Do collapse all
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    69
	 * @param viewPart IViewPart
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    70
	 */
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    71
	public static void collapseAll(IViewPart viewPart) {
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    72
		SymbianOSView symbianOSView = (SymbianOSView) viewPart.getAdapter(SymbianOSView.class);
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    73
		symbianOSView.DoAction_CollapseAll();
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    74
	}
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    75
	
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    76
	/**
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    77
	 * Debug the process or thread
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    78
	 * @param viewPart IViewPart
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    79
	 * @param object OSObject
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    80
	 * @see OSObjectProcess
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    81
	 * @see OSObjectThread
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    82
	 */
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    83
	public static void debug(IViewPart viewPart, OSObject object) {
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    84
		SymbianOSView symbianOSView = (SymbianOSView) viewPart.getAdapter(SymbianOSView.class);
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    85
		getCurrentViewer(viewPart).setSelection(new StructuredSelection(object));
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    86
		symbianOSView.DoAction_Debug();
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    87
	}
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    88
	
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    89
	/**
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    90
	 * Set the auto refresh interval
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    91
	 * @param secs int
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    92
	 */
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    93
	public static void setAutoRefreshInterval(int secs) {
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    94
		CWPlugin.getDefault().getPluginPreferences().setValue(
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    95
				cwdbg.PreferenceConstants.J_PN_OSViewAutoRefreshInterval, secs);
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    96
	}
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    97
	
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    98
	/**
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
    99
	 * Get the current refresh count (increments on every refresh)
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
   100
	 * @param viewPart IViewPart
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
   101
	 * @return int
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
   102
	 */
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
   103
	public static int getRefreshCount(IViewPart viewPart) {
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
   104
		SymbianOSView symbianOSView = (SymbianOSView) viewPart.getAdapter(SymbianOSView.class);
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
   105
		return symbianOSView.getRefreshCount();
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
   106
	}
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
   107
	
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
   108
	/**
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
   109
	 * Get the current viewer (TableViewer or TreeViewer depending on the selected tab)
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
   110
	 * @param viewPart IViewPart
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
   111
	 * @return Viewer
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
   112
	 */
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
   113
	public static Viewer getCurrentViewer(IViewPart viewPart) {
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
   114
		return (Viewer) viewPart.getAdapter(Viewer.class);
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
   115
	}
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
   116
	
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
   117
	/**
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
   118
	 * Get the Text for the filter of the current tab
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
   119
	 * This can be used with EclipseUtils.enterText(Text, String) to set the filter
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
   120
	 * @param viewPart IViewPart
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
   121
	 * @return Text
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
   122
	 * @see EclipseUtils#enterText(Text, String)
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
   123
	 */
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
   124
	public static Text getFilterText(IViewPart viewPart) {
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
   125
		Viewer viewer = getCurrentViewer(viewPart);
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
   126
		GenericTableTab tableTab = (GenericTableTab) viewer.getData("controller");
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
   127
		return tableTab.getFilterText();
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
   128
	}
5c466f93ffe1 [Bug 8691] Add code to allow access to functional testing of SymbianOSView from automation.utils plugin
dadubrow
parents:
diff changeset
   129
}