Class EmfRefreshContributor
- java.lang.Object
-
- com._1c.g5.v8.dt.form.ui.editor.refresher.RefreshContributor
-
- com._1c.g5.v8.dt.form.ui.editor.refresher.EmfRefreshContributor
-
- All Implemented Interfaces:
IFormEditorStateListener
- Direct Known Subclasses:
BmModelRefreshContributor
public abstract class EmfRefreshContributor extends RefreshContributor
This refresh contributor works with EMF objects. In it there is a description of the refresh rules based onEClass
andEStructuralFeature
- See Also:
EmfRefreshContributor.RuleBuilder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
EmfRefreshContributor.RuleBuilder
The rule builder
-
Constructor Summary
Constructors Modifier Constructor Description protected
EmfRefreshContributor(IRefresher refresher)
Creates a emf refresh contributor
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
createRules(EmfRefreshContributor.RuleBuilder builder)
The method serves for setups rules through buildervoid
refresh(org.eclipse.emf.ecore.EObject item, Collection<org.eclipse.emf.ecore.EStructuralFeature> features)
Refreshes ui component byEObject
and itsEStructuralFeature
s If rules on refresh don't exist then do nothing.-
Methods inherited from class com._1c.g5.v8.dt.form.ui.editor.refresher.RefreshContributor
activate, changeState, deactivate
-
-
-
-
Constructor Detail
-
EmfRefreshContributor
protected EmfRefreshContributor(IRefresher refresher)
Creates a emf refresh contributor- Parameters:
clazz
- the class of TId's array
-
-
Method Detail
-
refresh
public void refresh(org.eclipse.emf.ecore.EObject item, Collection<org.eclipse.emf.ecore.EStructuralFeature> features)
Refreshes ui component byEObject
and itsEStructuralFeature
s If rules on refresh don't exist then do nothing. If rules on refresh exist then send id of ui component to the refresher.- Parameters:
item
- the emf objectfeatures
- the features of emf object
-
createRules
protected abstract void createRules(EmfRefreshContributor.RuleBuilder builder)
The method serves for setups rules through builder- Parameters:
builder
- the builder for creating rule
-
-