Package com.iizigo.editor
Class ReferencesView
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.ViewPart
com.iizigo.editor.ReferencesView
- All Implemented Interfaces:
IAdaptable
,IExecutableExtension
,ISelectionProvider
,IPersistable
,IViewPart
,IWorkbenchPart
,IWorkbenchPart2
,IWorkbenchPart3
,IWorkbenchPartOrientation
The References View Part.
- Author:
- Christopher Mindus
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The View Part ID "com.iizigo.editor.ReferencesView".Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
Constructor Summary
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a listener for selection changes in this selection provider.void
createPartControl
(Composite parent) Create contents of the view part.void
dispose()
Disposes of the view part.void
findReferences
(ISelection selection) Finds the references from a selection.Returns the current selection for this provider.void
Initializes the part with a memento.void
Removes the given selection change listener from this selection provider.void
Save the state.void
setFocus()
Sets focus to the table.void
setSelection
(ISelection selection) Sets the current selection for this selection provider.Methods inherited from class org.eclipse.ui.part.ViewPart
checkSite, getViewSite, init, setContentDescription, setInitializationData, setPartName
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, 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.core.runtime.IAdaptable
getAdapter
Methods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
Field Details
ID
The View Part ID "com.iizigo.editor.ReferencesView".
Constructor Details
ReferencesView
public ReferencesView()Eclipse constructor.
Method Details
createPartControl
Create contents of the view part.- Specified by:
createPartControl
in interfaceIWorkbenchPart
- Specified by:
createPartControl
in classWorkbenchPart
- Parameters:
parent
-
init
Initializes the part with a memento.- Specified by:
init
in interfaceIViewPart
- Overrides:
init
in classViewPart
- Throws:
PartInitException
saveState
Save the state.dispose
public void dispose()Disposes of the view part.- Specified by:
dispose
in interfaceIWorkbenchPart
- Overrides:
dispose
in classWorkbenchPart
setFocus
public void setFocus()Sets focus to the table.- Specified by:
setFocus
in interfaceIWorkbenchPart
- Specified by:
setFocus
in classWorkbenchPart
addSelectionChangedListener
Adds a listener for selection changes in this selection provider. Has no effect if an identical listener is already registered.- Specified by:
addSelectionChangedListener
in interfaceISelectionProvider
- Parameters:
listener
- A selection changed listener.
getSelection
Returns the current selection for this provider.- Specified by:
getSelection
in interfaceISelectionProvider
- Returns:
- The current selection.
removeSelectionChangedListener
Removes the given selection change listener from this selection provider. Has no effect if an identical listener is not registered.- Specified by:
removeSelectionChangedListener
in interfaceISelectionProvider
- Parameters:
listener
- A selection changed listener.
setSelection
Sets the current selection for this selection provider.- Specified by:
setSelection
in interfaceISelectionProvider
- Parameters:
selection
- The new selection.
findReferences
Finds the references from a selection.