|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectViewPart
com.ibm.etools.systems.core.ui.view.search.SystemSearchViewPart
This class defines the Remote Search view.
Nested Class Summary | |
---|---|
class |
SystemSearchViewPart.CancelAction
|
class |
SystemSearchViewPart.SystemSearchDoubleClickListener
Double click listener. |
Field Summary | |
---|---|
static String |
Copyright
|
Fields inherited from interface com.ibm.etools.systems.model.ISystemResourceChangeListener |
---|
copyright |
Fields inherited from interface com.ibm.etools.systems.core.ui.messages.ISystemMessageLine |
---|
copyright |
Constructor Summary | |
---|---|
SystemSearchViewPart()
Constructor for SystemSearchViewPart. |
Method Summary | |
---|---|
void |
addSearchResult(IAdaptable resultSet)
Add a search result set. |
void |
addSelectionChangedListener(ISelectionChangedListener listener)
|
void |
clearErrorMessage()
Clears the currently displayed error message and redisplayes the message which was active before the error message was set. |
void |
clearMessage()
Clears the currently displayed message. |
void |
createPartControl(Composite parent)
|
boolean |
deleteAllPages()
Deletes all the pages in the view. |
boolean |
deleteCurrentPage()
Deletes the current page. |
boolean |
deleteSelected()
Delete the selected object in the view. |
void |
dispose()
|
void |
fillContextMenu(IMenuManager menu)
Fill context for the tree view pop-up menu. |
ISystemViewElementAdapter |
getAdapter(Object element)
Get the adapter for the given object. |
StructuredViewer |
getCurrentViewer()
Gets the current viewer, i.e. the viewer whose control is being currently displayed in the view. |
String |
getErrorMessage()
Get the currently displayed error text. |
String |
getMessage()
Get the currently displayed message. |
ISelection |
getSelection()
Returns the current selection for this provider. |
Shell |
getShell()
Get the shell. |
SystemMessage |
getSystemErrorMessage()
Get the currently displayed error text. |
void |
init(IViewSite site,
IMemento memento)
|
void |
menuAboutToShow(IMenuManager menu)
Called when the context menu is about to open. |
void |
removeSelectionChangedListener(ISelectionChangedListener listener)
Removes the given selection change listener from this selection provider. |
boolean |
sameParent()
This is called to ensure all elements in a multiple-selection have the same parent in the tree viewer. |
void |
saveState(IMemento memento)
|
void |
selectionChanged(SelectionChangedEvent event)
|
void |
setErrorMessage(String message)
Display the given error message. |
void |
setErrorMessage(SystemMessage message)
Display the given error message. |
void |
setErrorMessage(Throwable exc)
Display the given error message. |
void |
setFocus()
|
void |
setMessage(String message)
Set the message text. |
void |
setMessage(SystemMessage message)
If the message line currently displays an error, the message is stored and will be shown after a call to clearErrorMessage |
void |
setSelection(ISelection selection)
Sets the current selection for this selection provider. |
void |
setViewPartTitle(String title)
Set the title of this view part |
void |
showSearchResult(int index)
Show search result with the given index. |
void |
systemResourceChanged(ISystemResourceChangeEvent event)
This is the method in your class that will be called when a system resource changes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String Copyright
Constructor Detail |
public SystemSearchViewPart()
Method Detail |
public void createPartControl(Composite parent)
IWorkbenchPart
public void setFocus()
IWorkbenchPart
public void init(IViewSite site, IMemento memento) throws PartInitException
PartInitException
IViewPart
public void saveState(IMemento memento)
IViewPart
public void addSearchResult(IAdaptable resultSet)
public void dispose()
IWorkbenchPart
public void showSearchResult(int index)
public boolean deleteSelected()
true
if the selection has been deleted, false
otherwise.public boolean deleteAllPages()
true
if all pages have been deleted, false
otherwise.public boolean deleteCurrentPage()
true
if the current page has been deleted, false
otherwise.public ISystemViewElementAdapter getAdapter(Object element)
public Shell getShell()
getShell
in interface ISystemResourceChangeListener
public void systemResourceChanged(ISystemResourceChangeEvent event)
ISystemResourceChangeListener
systemResourceChanged
in interface ISystemResourceChangeListener
ISystemResourceChangeEvent
public void fillContextMenu(IMenuManager menu)
menu
- the menu manager.public boolean sameParent()
Designed to be as fast as possible by going directly to the SWT widgets
public void menuAboutToShow(IMenuManager menu)
fillContextMenu(IMenuManager)
public void addSelectionChangedListener(ISelectionChangedListener listener)
public ISelection getSelection()
public void removeSelectionChangedListener(ISelectionChangedListener listener)
listener
- a selection changed listenerpublic void setSelection(ISelection selection)
selection
- the new selectionpublic void setViewPartTitle(String title)
title
- public void selectionChanged(SelectionChangedEvent event)
ISelectionChangedListener
public StructuredViewer getCurrentViewer()
null
if there is no current viewer.public void clearErrorMessage()
clearErrorMessage
in interface ISystemMessageLine
public void clearMessage()
clearMessage
in interface ISystemMessageLine
public String getErrorMessage()
getErrorMessage
in interface ISystemMessageLine
null
is returned.public String getMessage()
getMessage
in interface ISystemMessageLine
null is returned.
public void setErrorMessage(String message)
setErrorMessage
in interface ISystemMessageLine
public SystemMessage getSystemErrorMessage()
getSystemErrorMessage
in interface ISystemMessageLine
null
is returned.public void setErrorMessage(SystemMessage message)
setErrorMessage
in interface ISystemMessageLine
public void setErrorMessage(Throwable exc)
setErrorMessage
in interface ISystemMessageLine
public void setMessage(String message)
setMessage
in interface ISystemMessageLine
public void setMessage(SystemMessage message)
setMessage
in interface ISystemMessageLine
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |