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
FieldsModifier and TypeFieldDescriptionstatic final StringThe View Part ID "com.iizigo.editor.ReferencesView".Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLEConstructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionvoidAdds a listener for selection changes in this selection provider.voidcreatePartControl(Composite parent) Create contents of the view part.voiddispose()Disposes of the view part.voidfindReferences(ISelection selection) Finds the references from a selection.Returns the current selection for this provider.voidInitializes the part with a memento.voidRemoves the given selection change listener from this selection provider.voidSave the state.voidsetFocus()Sets focus to the table.voidsetSelection(ISelection selection) Sets the current selection for this selection provider.Methods inherited from class org.eclipse.ui.part.ViewPart
checkSite, getViewSite, init, setContentDescription, setInitializationData, setPartNameMethods 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, showBusyMethods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapterMethods 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:
createPartControlin interfaceIWorkbenchPart- Specified by:
createPartControlin classWorkbenchPart- Parameters:
parent-
init
Initializes the part with a memento.- Specified by:
initin interfaceIViewPart- Overrides:
initin classViewPart- Throws:
PartInitException
saveState
Save the state.dispose
public void dispose()Disposes of the view part.- Specified by:
disposein interfaceIWorkbenchPart- Overrides:
disposein classWorkbenchPart
setFocus
public void setFocus()Sets focus to the table.- Specified by:
setFocusin interfaceIWorkbenchPart- Specified by:
setFocusin classWorkbenchPart
addSelectionChangedListener
Adds a listener for selection changes in this selection provider. Has no effect if an identical listener is already registered.- Specified by:
addSelectionChangedListenerin interfaceISelectionProvider- Parameters:
listener- A selection changed listener.
getSelection
Returns the current selection for this provider.- Specified by:
getSelectionin 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:
removeSelectionChangedListenerin interfaceISelectionProvider- Parameters:
listener- A selection changed listener.
setSelection
Sets the current selection for this selection provider.- Specified by:
setSelectionin interfaceISelectionProvider- Parameters:
selection- The new selection.
findReferences
Finds the references from a selection.