|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.ViewPart
org.eclipse.rse.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 |
|---|
| Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
|---|
PROP_TITLE |
| 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. |
Viewer |
getRSEViewer()
|
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 org.eclipse.ui.part.ViewPart |
|---|
checkSite, getViewSite, init, setContentDescription, setInitializationData, setPartName |
| Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
|---|
addPropertyListener, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy |
| Methods inherited from class org.eclipse.core.commands.common.EventManager |
|---|
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
|---|
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Constructor Detail |
public SystemSearchViewPart()
| Method Detail |
public void createPartControl(Composite parent)
createPartControl in interface IWorkbenchPartIWorkbenchPart.createPartControl(Composite)public void setFocus()
setFocus in interface IWorkbenchPartIWorkbenchPart.setFocus()
public void init(IViewSite site,
IMemento memento)
throws PartInitException
init in interface IViewPartPartInitExceptionIViewPart.init(IViewSite, IMemento)public void saveState(IMemento memento)
saveState in interface IViewPartIViewPart.saveState(IMemento)public void addSearchResult(IAdaptable resultSet)
resultSet - the search result setpublic void dispose()
dispose in interface IWorkbenchPartIWorkbenchPart.dispose()public void showSearchResult(int index)
index - the index in the result history listpublic 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)
element - the object the object for which I want the adapter.
public Shell getShell()
getShell in interface ISystemResourceChangeListenerpublic void systemResourceChanged(ISystemResourceChangeEvent event)
ISystemResourceChangeListener
systemResourceChanged in interface ISystemResourceChangeListenerISystemResourceChangeEventpublic 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)
menuAboutToShow in interface IMenuListenerpublic 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)
selectionChanged in interface ISelectionChangedListenerISelectionChangedListener.selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent)public StructuredViewer getCurrentViewer()
null if there is no current viewer.public Viewer getRSEViewer()
getRSEViewer in interface IRSEViewPartpublic void clearErrorMessage()
clearErrorMessage in interface ISystemMessageLinepublic void clearMessage()
clearMessage in interface ISystemMessageLinepublic String getErrorMessage()
getErrorMessage in interface ISystemMessageLinenull is returned.public String getMessage()
getMessage in interface ISystemMessageLinenull is returned.public void setErrorMessage(String message)
setErrorMessage in interface ISystemMessageLinepublic SystemMessage getSystemErrorMessage()
getSystemErrorMessage in interface ISystemMessageLinenull is returned.public void setErrorMessage(SystemMessage message)
setErrorMessage in interface ISystemMessageLinepublic void setErrorMessage(Throwable exc)
setErrorMessage in interface ISystemMessageLinepublic void setMessage(String message)
setMessage in interface ISystemMessageLinepublic void setMessage(SystemMessage message)
setMessage in interface ISystemMessageLine
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||