com.ibm.rational.common.test.editor.framework.search
Class SearchForTypeHandler
java.lang.Object
com.ibm.rational.common.test.editor.framework.search.SearchForTypeHandler
- All Implemented Interfaces:
- com.ibm.rational.common.test.editor.framework.kernel.search.IExtensionPointPropertiesNames
public abstract class SearchForTypeHandler
- extends Object
- implements com.ibm.rational.common.test.editor.framework.kernel.search.IExtensionPointPropertiesNames
Fields inherited from interface com.ibm.rational.common.test.editor.framework.kernel.search.IExtensionPointPropertiesNames |
_CONTRIBUTOR_CLASS, _ID, _OPTIONS_CONTRIBUTOR, _OPTIONS_CONTRIBUTOR_ID, _TYPE_SEARCH_ID, DISCOVERY_INSTANCE, DISCOVERY_METHOD, DISCOVERY_TYPE, EDITOR_OBJECT_TYPE, EDITOR_TYPE, ENABLED, HANDLER_CLASS, ICON, LABEL, OBJECT_TYPE, SEARCHABLE_TYPE, SUB_ID |
Constructor Summary |
SearchForTypeHandler(com.ibm.rational.common.test.editor.framework.kernel.search.ISearchComparator comparator)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_NAME_KEY
protected static final String _NAME_KEY
- See Also:
- Constant Field Values
SearchForTypeHandler
public SearchForTypeHandler(com.ibm.rational.common.test.editor.framework.kernel.search.ISearchComparator comparator)
getID
public String getID()
- Returns:
- String
setID
public void setID(String id)
- Set the ID of this handler.
canSearch
public boolean canSearch(com.ibm.rational.common.test.editor.framework.kernel.search.SearchPage page)
- Parameters:
page
-
- Returns:
- boolean
getSearchPage
public com.ibm.rational.common.test.editor.framework.kernel.search.SearchPage getSearchPage()
setSearchPage
public void setSearchPage(com.ibm.rational.common.test.editor.framework.kernel.search.SearchPage searchDialog)
- Initializes or de-initializes the searcher.
- Parameters:
searchDialog
- SearchPage. The host SearchPage when the UI is ablut to be displayed, or null
when the dialog is closing. Extension classes need to clear any cached information when this argument is null
.
handlerEnabled
public void handlerEnabled(boolean b)
- Parameters:
b
-
isEnabled
public boolean isEnabled()
setEnabled
public void setEnabled(boolean enabled)
loadOptionsContributors
public Vector<SearchOptionsContibutor> loadOptionsContributors(String id,
String myEditorType)
loadOptionsContributors
public static Vector<SearchOptionsContibutor> loadOptionsContributors(String id,
String myEditorType,
Vector<SearchOptionsContibutor> loaded_contributors)
getComparator
public com.ibm.rational.common.test.editor.framework.kernel.search.ISearchComparator getComparator()
setComparator
public void setComparator(com.ibm.rational.common.test.editor.framework.kernel.search.ISearchComparator comparator)
isEnabledAtRuntime
public boolean isEnabledAtRuntime()
enableSearchButton
protected void enableSearchButton()
getContributors
public Vector getContributors()
contributorsLoaded
public boolean contributorsLoaded()
createOptionButton
protected Button createOptionButton(Composite fieldsParent,
String label,
String akey)
- Parameters:
fieldsParent
-
createLabel
public void createLabel(Composite parent,
int span)
- Parameters:
parent
- Compositespan
- int
hookComboBox
protected void hookComboBox(Combo cmbTextSearch)
- Parameters:
cmbTextSearch
-
searchTextModified
protected void searchTextModified(Combo combo)
© Copyright IBM Corp. 2012. All rights reserved.