public abstract class AbstractSourceView
extends org.eclipse.ui.part.ViewPart
implements org.eclipse.ui.IPartListener2, org.eclipse.ui.ISelectionListener, org.eclipse.jface.util.IPropertyChangeListener
Constructor and Description |
---|
AbstractSourceView() |
Modifier and Type | Method and Description |
---|---|
protected void |
addPostSelectionListener() |
void |
computeAndSetInput(IWorkbenchPartSelection workbenchPartSelection) |
void |
computeAndSetInput(IWorkbenchPartSelection workbenchPartSelection,
boolean forceSelection) |
protected java.lang.String |
computeDescription(IWorkbenchPartSelection workbenchPartSelection) |
protected java.lang.String |
computeInput(IWorkbenchPartSelection workbenchPartSelection) |
protected ITextRegion |
computeSelectedText(IWorkbenchPartSelection workbenchPartSelection) |
protected org.eclipse.jface.text.source.AnnotationModel |
createAnnotationModel() |
protected org.eclipse.jface.text.IDocument |
createDocument(java.lang.String input) |
void |
createPartControl(org.eclipse.swt.widgets.Composite parent) |
protected abstract org.eclipse.jface.text.source.SourceViewer |
createSourceViewer(org.eclipse.swt.widgets.Composite parent) |
void |
dispose() |
protected java.lang.String |
getBackgroundColorKey() |
protected org.eclipse.swt.widgets.Display |
getDisplay() |
protected org.eclipse.core.resources.IStorage |
getEditorResource(IWorkbenchPartSelection workbenchPartSelection) |
java.lang.String |
getLanguageName() |
protected org.eclipse.jface.text.source.SourceViewer |
getSourceViewer() |
protected java.lang.String |
getViewerFontName() |
IWorkbenchPartSelection |
getWorkbenchPartSelection() |
protected void |
inititalizeColors() |
protected void |
inititalizeFont() |
protected void |
internalComputeAndSetInput(IWorkbenchPartSelection workbenchPartSelection,
boolean forceSelection) |
protected boolean |
isIgnored(IWorkbenchPartSelection workbenchPartSelection) |
protected boolean |
isValidSelection(IWorkbenchPartSelection workbenchPartSelection) |
void |
partActivated(org.eclipse.ui.IWorkbenchPartReference ref) |
void |
partBroughtToTop(org.eclipse.ui.IWorkbenchPartReference ref) |
void |
partClosed(org.eclipse.ui.IWorkbenchPartReference ref) |
void |
partDeactivated(org.eclipse.ui.IWorkbenchPartReference ref) |
void |
partHidden(org.eclipse.ui.IWorkbenchPartReference ref) |
void |
partInputChanged(org.eclipse.ui.IWorkbenchPartReference ref) |
void |
partOpened(org.eclipse.ui.IWorkbenchPartReference ref) |
void |
partVisible(org.eclipse.ui.IWorkbenchPartReference ref) |
void |
propertyChange(org.eclipse.jface.util.PropertyChangeEvent event) |
protected void |
removePostSelectionListener() |
protected void |
selectAndReveal(IWorkbenchPartSelection workbenchPartSelection) |
void |
selectionChanged(org.eclipse.ui.IWorkbenchPart workbenchPart,
org.eclipse.jface.viewers.ISelection selection) |
void |
setFocus() |
protected void |
setInput(java.lang.String input) |
protected void |
setSelection(ITextRegion textSelection,
boolean reveal) |
protected void |
setWorkbenchPartSelection(IWorkbenchPartSelection workbenchPartSelection) |
checkSite, getViewSite, init, init, saveState, setContentDescription, setInitializationData, setPartName
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public IWorkbenchPartSelection getWorkbenchPartSelection()
protected void setWorkbenchPartSelection(IWorkbenchPartSelection workbenchPartSelection)
protected org.eclipse.jface.text.source.SourceViewer getSourceViewer()
public java.lang.String getLanguageName()
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
createPartControl
in interface org.eclipse.ui.IWorkbenchPart
createPartControl
in class org.eclipse.ui.part.WorkbenchPart
protected abstract org.eclipse.jface.text.source.SourceViewer createSourceViewer(org.eclipse.swt.widgets.Composite parent)
protected void inititalizeColors()
protected java.lang.String getBackgroundColorKey()
protected void inititalizeFont()
protected java.lang.String getViewerFontName()
public void selectionChanged(org.eclipse.ui.IWorkbenchPart workbenchPart, org.eclipse.jface.viewers.ISelection selection)
selectionChanged
in interface org.eclipse.ui.ISelectionListener
public void propertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
propertyChange
in interface org.eclipse.jface.util.IPropertyChangeListener
public void partVisible(org.eclipse.ui.IWorkbenchPartReference ref)
partVisible
in interface org.eclipse.ui.IPartListener2
public void partHidden(org.eclipse.ui.IWorkbenchPartReference ref)
partHidden
in interface org.eclipse.ui.IPartListener2
public void partInputChanged(org.eclipse.ui.IWorkbenchPartReference ref)
partInputChanged
in interface org.eclipse.ui.IPartListener2
public void partActivated(org.eclipse.ui.IWorkbenchPartReference ref)
partActivated
in interface org.eclipse.ui.IPartListener2
public void partBroughtToTop(org.eclipse.ui.IWorkbenchPartReference ref)
partBroughtToTop
in interface org.eclipse.ui.IPartListener2
public void partClosed(org.eclipse.ui.IWorkbenchPartReference ref)
partClosed
in interface org.eclipse.ui.IPartListener2
public void partDeactivated(org.eclipse.ui.IWorkbenchPartReference ref)
partDeactivated
in interface org.eclipse.ui.IPartListener2
public void partOpened(org.eclipse.ui.IWorkbenchPartReference ref)
partOpened
in interface org.eclipse.ui.IPartListener2
protected void addPostSelectionListener()
protected void removePostSelectionListener()
public void computeAndSetInput(IWorkbenchPartSelection workbenchPartSelection)
public void computeAndSetInput(IWorkbenchPartSelection workbenchPartSelection, boolean forceSelection)
protected void internalComputeAndSetInput(IWorkbenchPartSelection workbenchPartSelection, boolean forceSelection)
protected boolean isValidSelection(IWorkbenchPartSelection workbenchPartSelection)
protected boolean isIgnored(IWorkbenchPartSelection workbenchPartSelection)
protected java.lang.String computeInput(IWorkbenchPartSelection workbenchPartSelection)
protected java.lang.String computeDescription(IWorkbenchPartSelection workbenchPartSelection)
protected void setInput(java.lang.String input)
protected org.eclipse.jface.text.source.AnnotationModel createAnnotationModel()
protected org.eclipse.jface.text.IDocument createDocument(java.lang.String input)
protected void selectAndReveal(IWorkbenchPartSelection workbenchPartSelection)
protected void setSelection(ITextRegion textSelection, boolean reveal)
protected ITextRegion computeSelectedText(IWorkbenchPartSelection workbenchPartSelection)
protected org.eclipse.swt.widgets.Display getDisplay()
public void setFocus()
setFocus
in interface org.eclipse.ui.IWorkbenchPart
setFocus
in class org.eclipse.ui.part.WorkbenchPart
public void dispose()
dispose
in interface org.eclipse.ui.IWorkbenchPart
dispose
in class org.eclipse.ui.part.WorkbenchPart
protected org.eclipse.core.resources.IStorage getEditorResource(IWorkbenchPartSelection workbenchPartSelection)