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 SummaryFieldsModifier and TypeFieldDescription- static final StringThe View Part ID "com.iizigo.editor.ReferencesView".- Fields inherited from interface org.eclipse.ui.IWorkbenchPart- PROP_TITLE
- Constructor SummaryConstructors
- Method SummaryModifier and TypeMethodDescription- voidAdds 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.- voidInitializes the part with a memento.- voidRemoves the given selection change listener from this selection provider.- voidSave 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- IDThe View Part ID "com.iizigo.editor.ReferencesView".
 
- Constructor Details- ReferencesViewpublic ReferencesView()Eclipse constructor.
 
- Method Details- createPartControlCreate contents of the view part.- Specified by:
- createPartControlin interface- IWorkbenchPart
- Specified by:
- createPartControlin class- WorkbenchPart
- Parameters:
- parent-
 
- initInitializes the part with a memento.- Specified by:
- initin interface- IViewPart
- Overrides:
- initin class- ViewPart
- Throws:
- PartInitException
 
- saveStateSave the state.
- disposepublic void dispose()Disposes of the view part.- Specified by:
- disposein interface- IWorkbenchPart
- Overrides:
- disposein class- WorkbenchPart
 
- setFocuspublic void setFocus()Sets focus to the table.- Specified by:
- setFocusin interface- IWorkbenchPart
- Specified by:
- setFocusin class- WorkbenchPart
 
- addSelectionChangedListenerAdds a listener for selection changes in this selection provider. Has no effect if an identical listener is already registered.- Specified by:
- addSelectionChangedListenerin interface- ISelectionProvider
- Parameters:
- listener- A selection changed listener.
 
- getSelectionReturns the current selection for this provider.- Specified by:
- getSelectionin interface- ISelectionProvider
- Returns:
- The current selection.
 
- removeSelectionChangedListenerRemoves the given selection change listener from this selection provider. Has no effect if an identical listener is not registered.- Specified by:
- removeSelectionChangedListenerin interface- ISelectionProvider
- Parameters:
- listener- A selection changed listener.
 
- setSelectionSets the current selection for this selection provider.- Specified by:
- setSelectionin interface- ISelectionProvider
- Parameters:
- selection- The new selection.
 
- findReferencesFinds the references from a selection.