|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.ViewPart
org.eclipse.ocl.examples.emf.validation.validity.ui.view.ValidityView
public class ValidityView
The ValidityView provides a dual view of ValidatableNode model elements and ConstrainingNode model classes to browse, filter and control model validation.
Nested Class Summary | |
---|---|
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. |
Field Summary | |
---|---|
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
|
Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
---|
PROP_TITLE |
Constructor Summary | |
---|---|
ValidityView()
|
Method Summary | |
---|---|
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.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)
|
Methods inherited from class org.eclipse.ui.part.ViewPart |
---|
checkSite, getViewSite, init, init, saveState, 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.ui.IWorkbenchPart |
---|
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Field Detail |
---|
@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
Constructor Detail |
---|
public ValidityView()
Method Detail |
---|
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.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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |