public abstract class MarkerView extends TableView
Modifier and Type | Field and Description |
---|---|
protected ActionCopyMarker |
copyAction |
protected org.eclipse.ui.actions.SelectionProviderAction |
deleteAction |
protected java.lang.Object[] |
focusElements |
protected org.eclipse.ui.actions.SelectionProviderAction |
openAction |
protected ActionPasteMarker |
pasteAction |
protected org.eclipse.ui.actions.SelectionProviderAction |
propertiesAction |
protected org.eclipse.ui.operations.RedoActionHandler |
redoAction |
protected org.eclipse.ui.actions.SelectionProviderAction |
revealAction |
protected org.eclipse.ui.actions.SelectionProviderAction |
selectAllAction |
protected org.eclipse.ui.operations.UndoActionHandler |
undoAction |
Constructor and Description |
---|
MarkerView()
Create a new instance of the receiver,
|
Modifier and Type | Method and Description |
---|---|
void |
addUpdateFinishListener(org.eclipse.core.runtime.jobs.IJobChangeListener listener)
Add a listener for the end of the update.
|
protected void |
createActions()
Create the actions for the receiver.
|
protected abstract MarkerFilter |
createFilter(java.lang.String name)
Create a filter called name.
|
protected abstract DialogMarkerFilter |
createFiltersDialog()
Open a filter dialog on the receiver.
|
void |
createPartControl(org.eclipse.swt.widgets.Composite parent) |
protected org.eclipse.swt.widgets.Tree |
createTree(org.eclipse.swt.widgets.Composite parent)
Create the main tree control
|
void |
dispose() |
protected void |
fillContextMenu(org.eclipse.jface.action.IMenuManager manager) |
protected java.util.Collection |
findEnabledFilters()
Find the filters enabled in the view.
|
protected void |
focusSelectionChanged(org.eclipse.ui.IWorkbenchPart part,
org.eclipse.jface.viewers.ISelection selection) |
java.lang.Object |
getAdapter(java.lang.Class adaptable) |
MarkerList |
getCurrentMarkers()
Get the current markers for the receiver.
|
protected MarkerFilter[] |
getEnabledFilters()
Get the filters that are currently enabled.
|
protected MarkerAdapter |
getMarkerAdapter()
Get the marker adapter for the receiver.
|
protected abstract java.lang.String |
getMarkerName()
Return the string name of the specific type of marker shown in this view.
|
protected abstract java.lang.String[] |
getRootTypes() |
protected abstract java.lang.String |
getSectionTag()
Return the memento tag for the receiver.
|
protected abstract java.lang.String |
getStaticContextId() |
protected org.eclipse.core.commands.operations.IUndoContext |
getUndoContext()
Return the undo context associated with operations performed in this view.
|
protected MarkerFilter[] |
getUserFilters()
Get the filters for the receiver.
|
protected MarkerList |
getVisibleMarkers() |
protected void |
handleKeyPressed(org.eclipse.swt.events.KeyEvent event) |
protected void |
handleOpenEvent(org.eclipse.jface.viewers.OpenEvent event) |
void |
init(org.eclipse.ui.IViewSite site,
org.eclipse.ui.IMemento memento) |
protected void |
initDragAndDrop() |
protected void |
initToolBar(org.eclipse.jface.action.IToolBarManager tbm) |
void |
openFiltersDialog()
Open a dialog on the filters
|
protected void |
preserveSelection()
Save the current selection in the update for reselection after update.
|
void |
refreshViewer()
Refresh the contents of the viewer.
|
protected void |
registerGlobalActions(org.eclipse.ui.IActionBars actionBars) |
void |
removeUpdateFinishListener(org.eclipse.core.runtime.jobs.IJobChangeListener listener)
Remove a listener for the end of the update.
|
protected void |
saveSelection(org.eclipse.ui.IMemento memento) |
void |
setSelection(org.eclipse.jface.viewers.IStructuredSelection structuredSelection,
boolean reveal)
Given a selection of IMarker, reveals the corresponding elements in the viewer
|
void |
showBusy(boolean busy) |
protected void |
updateFilterSelection(java.lang.Object[] elements)
Update the focus resources of the filters.
|
protected void |
updateFocusMarkers(java.lang.Object[] elements)
Update the focus markers for the supplied elements.
|
void |
updateForContentsRefresh(org.eclipse.core.runtime.IProgressMonitor monitor)
Update for the change in the contents.
|
protected void |
updateStatusMessage()
Updates the message displayed in the status line.
|
protected void |
updateStatusMessage(org.eclipse.jface.viewers.IStructuredSelection selection)
Updates that message displayed in the status line.
|
protected java.lang.String |
updateSummarySelected(org.eclipse.jface.viewers.IStructuredSelection selection) |
protected java.lang.String |
updateSummaryVisible() |
protected void |
viewerSelectionChanged(org.eclipse.jface.viewers.IStructuredSelection selection) |
protected void |
writeFiltersSettings(org.eclipse.ui.XMLMemento memento)
Write the filter settings to the memento.
|
buildComparator, createColumns, getAllFields, getColumnData, getDefaultColumnLayouts, getDialogSettings, getHeaderListener, getProgressService, getSavedColumnData, getSortDialog, getSortingFields, getTree, getViewer, getViewerInput, initContextMenu, initMenu, saveState, setFocus, setSelection
checkSite, getViewSite, init, setContentDescription, setInitializationData, setPartName
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
protected java.lang.Object[] focusElements
protected ActionCopyMarker copyAction
protected ActionPasteMarker pasteAction
protected org.eclipse.ui.actions.SelectionProviderAction revealAction
protected org.eclipse.ui.actions.SelectionProviderAction openAction
protected org.eclipse.ui.actions.SelectionProviderAction deleteAction
protected org.eclipse.ui.actions.SelectionProviderAction selectAllAction
protected org.eclipse.ui.actions.SelectionProviderAction propertiesAction
protected org.eclipse.ui.operations.UndoActionHandler undoAction
protected org.eclipse.ui.operations.RedoActionHandler redoAction
public MarkerList getCurrentMarkers()
protected MarkerAdapter getMarkerAdapter()
public void updateForContentsRefresh(org.eclipse.core.runtime.IProgressMonitor monitor)
monitor
- public void init(org.eclipse.ui.IViewSite site, org.eclipse.ui.IMemento memento) throws org.eclipse.ui.PartInitException
protected void writeFiltersSettings(org.eclipse.ui.XMLMemento memento)
memento
- protected abstract MarkerFilter createFilter(java.lang.String name)
name
- protected abstract java.lang.String getSectionTag()
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
createPartControl
in interface org.eclipse.ui.IWorkbenchPart
createPartControl
in class TableView
public java.lang.Object getAdapter(java.lang.Class adaptable)
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
getAdapter
in class org.eclipse.ui.part.WorkbenchPart
protected void viewerSelectionChanged(org.eclipse.jface.viewers.IStructuredSelection selection)
viewerSelectionChanged
in class TableView
public void dispose()
dispose
in interface org.eclipse.ui.IWorkbenchPart
dispose
in class org.eclipse.ui.part.WorkbenchPart
protected void createActions()
TableView
createActions
in class TableView
protected void initToolBar(org.eclipse.jface.action.IToolBarManager tbm)
initToolBar
in class TableView
protected void registerGlobalActions(org.eclipse.ui.IActionBars actionBars)
registerGlobalActions
in class TableView
protected void initDragAndDrop()
protected void fillContextMenu(org.eclipse.jface.action.IMenuManager manager)
fillContextMenu
in class TableView
protected final MarkerFilter[] getUserFilters()
protected void handleKeyPressed(org.eclipse.swt.events.KeyEvent event)
handleKeyPressed
in class TableView
protected void handleOpenEvent(org.eclipse.jface.viewers.OpenEvent event)
handleOpenEvent
in class TableView
protected void saveSelection(org.eclipse.ui.IMemento memento)
protected abstract java.lang.String[] getRootTypes()
protected void focusSelectionChanged(org.eclipse.ui.IWorkbenchPart part, org.eclipse.jface.viewers.ISelection selection)
part
- selection
- protected final void updateFilterSelection(java.lang.Object[] elements)
elements
- protected abstract java.lang.String getStaticContextId()
protected void updateFocusMarkers(java.lang.Object[] elements)
elements
- protected void updateStatusMessage()
By default, this method calls updateStatusMessage(IStructuredSelection)
with the current selection
or null
. Classes wishing to override this functionality, should just override the method
updateStatusMessage(IStructuredSelection)
.
protected void updateStatusMessage(org.eclipse.jface.viewers.IStructuredSelection selection)
null
or its size is
0, the status area is blanked out. If only 1 marker is selected, the status area is updated with the contents of
the message attribute of this marker. In other cases (more than one marker is selected) the status area indicates
how many items have been selected.
This method may be overwritten.
This method is called whenever a selection changes in this view.
selection
- a valid selection or null
protected java.lang.String updateSummarySelected(org.eclipse.jface.viewers.IStructuredSelection selection)
selection
- protected java.lang.String updateSummaryVisible()
public final void openFiltersDialog()
public void refreshViewer()
protected abstract DialogMarkerFilter createFiltersDialog()
public void setSelection(org.eclipse.jface.viewers.IStructuredSelection structuredSelection, boolean reveal)
structuredSelection
- reveal
- protected MarkerList getVisibleMarkers()
public void showBusy(boolean busy)
showBusy
in class org.eclipse.ui.part.WorkbenchPart
protected MarkerFilter[] getEnabledFilters()
protected java.util.Collection findEnabledFilters()
public void addUpdateFinishListener(org.eclipse.core.runtime.jobs.IJobChangeListener listener)
listener
- public void removeUpdateFinishListener(org.eclipse.core.runtime.jobs.IJobChangeListener listener)
listener
- protected org.eclipse.swt.widgets.Tree createTree(org.eclipse.swt.widgets.Composite parent)
TableView
createTree
in class TableView
protected void preserveSelection()
protected abstract java.lang.String getMarkerName()
protected org.eclipse.core.commands.operations.IUndoContext getUndoContext()