public class ModelContentProvider extends ECPContentProvider<ECPProjectManager> implements ECPProjectsChangedObserver, ECPProjectOpenClosedObserver, ECPProjectContentTouchedObserver
TreeContentProvider.ErrorElement, TreeContentProvider.SlowElement, TreeContentProvider.SyntheticElement
Constructor and Description |
---|
ModelContentProvider() |
Modifier and Type | Method and Description |
---|---|
protected void |
connectInput(ECPProjectManager input) |
void |
contentTouched(ECPProject project,
Collection<Object> objects,
boolean structural)
This is called when objects of a project changed.
|
protected void |
disconnectInput(ECPProjectManager input) |
protected void |
fillChildren(Object parent,
InternalChildrenList childrenList) |
void |
projectChanged(ECPProject project,
boolean opened)
This is called when a project is opened or closed.
|
void |
projectsChanged(Collection<ECPProject> oldProjects,
Collection<ECPProject> newProjects)
This is called when a project changes, so if it is either added or removed.
|
dispose, getModelContext, notifyChanged
fillChildrenDetectError, getChildren, getChildrenList, getElements, getParent, getViewer, hasChildren, isSlow, refresh, refreshViewer, update
getInput, inputChanged, refreshViewer
public void projectsChanged(Collection<ECPProject> oldProjects, Collection<ECPProject> newProjects)
projectsChanged
in interface ECPProjectsChangedObserver
oldProjects
- the collection of projects before the changenewProjects
- the collection of projects after the changepublic void projectChanged(ECPProject project, boolean opened)
projectChanged
in interface ECPProjectOpenClosedObserver
project
- the ECPProject
that changedopened
- whether it was opened or closedpublic void contentTouched(ECPProject project, Collection<Object> objects, boolean structural)
contentTouched
in interface ECPProjectContentTouchedObserver
project
- the project where the changed occurred.objects
- the objects that changed and the objects affected by the changestructural
- whether the change was structural that is changes to containment referencesprotected void connectInput(ECPProjectManager input)
connectInput
in class StructuredContentProvider<ECPProjectManager>
protected void disconnectInput(ECPProjectManager input)
disconnectInput
in class StructuredContentProvider<ECPProjectManager>
protected void fillChildren(Object parent, InternalChildrenList childrenList)
fillChildren
in class ECPContentProvider<ECPProjectManager>
Copyright © 2016. All rights reserved.