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 String |
computeDescription(IWorkbenchPartSelection workbenchPartSelection) |
protected String |
computeInput(IWorkbenchPartSelection workbenchPartSelection) |
protected ITextRegion |
computeSelectedText(IWorkbenchPartSelection workbenchPartSelection) |
protected org.eclipse.jface.text.source.AnnotationModel |
createAnnotationModel() |
protected org.eclipse.jface.text.IDocument |
createDocument(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 String |
getBackgroundColorKey() |
protected org.eclipse.swt.widgets.Display |
getDisplay() |
protected org.eclipse.core.resources.IStorage |
getEditorResource(IWorkbenchPartSelection workbenchPartSelection) |
String |
getLanguageName() |
protected org.eclipse.jface.text.source.SourceViewer |
getSourceViewer() |
protected 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(String input) |
protected void |
setSelection(ITextRegion textSelection,
boolean reveal) |
protected void |
setWorkbenchPartSelection(IWorkbenchPartSelection workbenchPartSelection) |
checkSite, getViewSite, init, init, saveState, setContentDescription, setInitializationData, setPartNameaddPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusyaddListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic IWorkbenchPartSelection getWorkbenchPartSelection()
protected void setWorkbenchPartSelection(IWorkbenchPartSelection workbenchPartSelection)
protected org.eclipse.jface.text.source.SourceViewer getSourceViewer()
public String getLanguageName()
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
createPartControl in interface org.eclipse.ui.IWorkbenchPartcreatePartControl in class org.eclipse.ui.part.WorkbenchPartprotected abstract org.eclipse.jface.text.source.SourceViewer createSourceViewer(org.eclipse.swt.widgets.Composite parent)
protected void inititalizeColors()
protected String getBackgroundColorKey()
protected void inititalizeFont()
protected String getViewerFontName()
public void selectionChanged(org.eclipse.ui.IWorkbenchPart workbenchPart,
org.eclipse.jface.viewers.ISelection selection)
selectionChanged in interface org.eclipse.ui.ISelectionListenerpublic void propertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
propertyChange in interface org.eclipse.jface.util.IPropertyChangeListenerpublic void partVisible(org.eclipse.ui.IWorkbenchPartReference ref)
partVisible in interface org.eclipse.ui.IPartListener2public void partHidden(org.eclipse.ui.IWorkbenchPartReference ref)
partHidden in interface org.eclipse.ui.IPartListener2public void partInputChanged(org.eclipse.ui.IWorkbenchPartReference ref)
partInputChanged in interface org.eclipse.ui.IPartListener2public void partActivated(org.eclipse.ui.IWorkbenchPartReference ref)
partActivated in interface org.eclipse.ui.IPartListener2public void partBroughtToTop(org.eclipse.ui.IWorkbenchPartReference ref)
partBroughtToTop in interface org.eclipse.ui.IPartListener2public void partClosed(org.eclipse.ui.IWorkbenchPartReference ref)
partClosed in interface org.eclipse.ui.IPartListener2public void partDeactivated(org.eclipse.ui.IWorkbenchPartReference ref)
partDeactivated in interface org.eclipse.ui.IPartListener2public void partOpened(org.eclipse.ui.IWorkbenchPartReference ref)
partOpened in interface org.eclipse.ui.IPartListener2protected 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 String computeInput(IWorkbenchPartSelection workbenchPartSelection)
protected String computeDescription(IWorkbenchPartSelection workbenchPartSelection)
protected void setInput(String input)
protected org.eclipse.jface.text.source.AnnotationModel createAnnotationModel()
protected org.eclipse.jface.text.IDocument createDocument(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.IWorkbenchPartsetFocus in class org.eclipse.ui.part.WorkbenchPartpublic void dispose()
dispose in interface org.eclipse.ui.IWorkbenchPartdispose in class org.eclipse.ui.part.WorkbenchPartprotected org.eclipse.core.resources.IStorage getEditorResource(IWorkbenchPartSelection workbenchPartSelection)
Copyright © 2016. All Rights Reserved.