public class ValidityView
extends org.eclipse.ui.part.ViewPart
implements org.eclipse.ui.ISelectionListener
Modifier and Type | Class and Description |
---|---|
protected class |
ValidityView.ChangeSelectionJob
The ChangeSelectionJob performs the work for a setSelection() without clogging up the UI.
|
static class |
ValidityView.ValidityViewLabelProvider
ValidityViewLabelProvider extends the standard AdapterFactoryLabelProvider to provide icons for
non-standard Java objects such as Method.
|
Modifier and Type | Field and Description |
---|---|
protected FilteredCheckboxTree |
filteredConstrainingNodesTree |
protected FilteredCheckboxTree |
filteredValidatableNodesTree |
static java.lang.String |
ID
The ID of the view as specified by the extension.
|
protected org.eclipse.emf.ecore.resource.ResourceSet |
modelResourceSet |
protected IDEValidityManager |
validityManager |
Constructor and Description |
---|
ValidityView() |
Modifier and Type | Method and Description |
---|---|
void |
addFilter(boolean isValidatableFilterAction,
IVisibilityFilter filter) |
void |
addFilteredSeverity(Severity severity) |
void |
createPartControl(org.eclipse.swt.widgets.Composite parent)
This is a callback that will allow us
to create the viewer and initialize it.
|
protected static org.eclipse.jface.action.ToolBarManager |
createSectionToolBar(org.eclipse.ui.forms.widgets.Section section)
Creates a tool bar for the given section.
|
protected void |
createValidityViewForm(org.eclipse.ui.forms.widgets.FormToolkit toolkit,
org.eclipse.swt.widgets.Composite parent)
This will be called in order to create the actual body of the validity view, the "Validity" form.
|
void |
dispose() |
org.eclipse.jface.viewers.CheckboxTreeViewer |
getConstrainingNodesViewer()
gets the Constraining Nodes Viewer
|
protected org.eclipse.ui.forms.widgets.Form |
getForm()
Returns the validity view form.
|
org.eclipse.core.resources.IResource |
getSelectedResource()
Return the most recent selection as IResource, if it can be converted possibly by resolving the Resource of an EObject.
|
org.eclipse.jface.viewers.CheckboxTreeViewer |
getValidatableNodesViewer()
gets the validatable Nodes Viewer
|
IDEValidityManager |
getValidityManager()
gets the Validity Manager
|
protected void |
initializeFilters() |
void |
redraw()
Schedule a redraw of validatable and constraining trees.
|
void |
removeFilter(boolean isValidatableFilterAction,
IVisibilityFilter filter) |
void |
removeFilteredSeverity(Severity severity) |
void |
selectionChanged(org.eclipse.ui.IWorkbenchPart part,
org.eclipse.jface.viewers.ISelection selection) |
void |
setFocus()
Passing the focus request to the viewer's control.
|
protected void |
setSelection(org.eclipse.emf.common.notify.Notifier newSelection) |
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
@NonNull public static final java.lang.String ID
protected FilteredCheckboxTree filteredValidatableNodesTree
protected FilteredCheckboxTree filteredConstrainingNodesTree
@NonNull protected final IDEValidityManager validityManager
protected org.eclipse.emf.ecore.resource.ResourceSet modelResourceSet
public void addFilter(boolean isValidatableFilterAction, @NonNull IVisibilityFilter filter)
public void addFilteredSeverity(@NonNull Severity severity)
protected static final org.eclipse.jface.action.ToolBarManager createSectionToolBar(org.eclipse.ui.forms.widgets.Section section)
section
- The section for which we need a tool bar.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 void createValidityViewForm(org.eclipse.ui.forms.widgets.FormToolkit toolkit, org.eclipse.swt.widgets.Composite parent)
toolkit
- Toolkit that can be used to create the form.parent
- Parent composite of the form.@Nullable public org.eclipse.core.resources.IResource getSelectedResource()
protected org.eclipse.ui.forms.widgets.Form getForm()
public void dispose()
dispose
in interface org.eclipse.ui.IWorkbenchPart
dispose
in class org.eclipse.ui.part.WorkbenchPart
@NonNull public org.eclipse.jface.viewers.CheckboxTreeViewer getConstrainingNodesViewer()
@NonNull public IDEValidityManager getValidityManager()
@NonNull public org.eclipse.jface.viewers.CheckboxTreeViewer getValidatableNodesViewer()
protected void initializeFilters()
public void redraw()
public void removeFilter(boolean isValidatableFilterAction, @NonNull IVisibilityFilter filter)
public void removeFilteredSeverity(@NonNull Severity severity)
public void selectionChanged(org.eclipse.ui.IWorkbenchPart part, org.eclipse.jface.viewers.ISelection selection)
selectionChanged
in interface org.eclipse.ui.ISelectionListener
protected void setSelection(org.eclipse.emf.common.notify.Notifier newSelection)
public void setFocus()
setFocus
in interface org.eclipse.ui.IWorkbenchPart
setFocus
in class org.eclipse.ui.part.WorkbenchPart