Class StandardObjectValueSelectionModel<T>
- java.lang.Object
-
- com._1c.g5.aef2.validators.Validable
-
- com._1c.g5.aef2.models.Model
-
- com._1c.g5.aef2.models.EditableModel
-
- com._1c.g5.v8.dt.md.ui.aef.models.StandardObjectSwitchingSourceModel<M>
-
- com._1c.g5.v8.dt.md.ui.aef.models.StandardObjectSwitchingSourceValue<T,IEmfValueSelectionModel<T,?>>
-
- com._1c.g5.v8.dt.md.ui.aef.models.StandardObjectValueSelectionModel<T>
-
- All Implemented Interfaces:
IAttribute<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EStructuralFeature>
,IEditableModel
,IEmfAttribute<org.eclipse.emf.ecore.EObject>
,IModel
,IValue<T>
,IValidable
,IModelApiAwareModel
,IEmfSelectionModel<org.eclipse.emf.ecore.EObject>
,IEmfValueSelectionModel<T,org.eclipse.emf.ecore.EObject>
,ISelectionModel
public class StandardObjectValueSelectionModel<T> extends StandardObjectSwitchingSourceValue<T,IEmfValueSelectionModel<T,?>> implements IEmfValueSelectionModel<T,org.eclipse.emf.ecore.EObject>
TheIEmfValueSelectionModel
for standard attributes.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com._1c.g5.v8.dt.md.ui.aef.models.StandardObjectSwitchingSourceModel
StandardObjectSwitchingSourceModel.IStandardAttributeModelCreator<T extends IModel>
-
-
Constructor Summary
Constructors Constructor Description StandardObjectValueSelectionModel(StandardObjectProxy proxy, org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, IDerivedDataManagerProvider derivedDataManagerProvider, IV8Project v8project, IStructuredContentProvider contentProvider, ILabelProvider labelProvider, IModelEditingSupport modelEditingSupport, String... waitingPartIds)
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ViewerComparator
getComparator()
Returns theViewerComparator
.IElementComparer
getComparer()
Returns theIElementComparer
.IStructuredContentProvider
getContentProvider()
Returns theIStructuredContentProvider
.Object
getInput()
Returns the input object for contentProvider.ILabelProvider
getLabelProvider()
Returns theILabelProvider
.org.eclipse.emf.ecore.EObject
getObject()
Returns the object that keeps the attribute.org.eclipse.core.resources.IProject
getProject()
Returns theIProject
for current object.org.eclipse.emf.ecore.EStructuralFeature
getProperty()
Returns the property.IV8Project
getV8project()
Returns the V8 project.Collection<String>
getWaitingPartIds()
Returns the derived state ids that is needed to wait.boolean
isMulti()
Returns the multi value flag.boolean
isValidState()
Returnstrue
if theIAttribute.getObject()
is in valid state.-
Methods inherited from class com._1c.g5.v8.dt.md.ui.aef.models.StandardObjectSwitchingSourceValue
addValueListener, createWorkingCopy, get, isEqual, removeValueListener, set
-
Methods inherited from class com._1c.g5.v8.dt.md.ui.aef.models.StandardObjectSwitchingSourceModel
dispose, getChange, getModelApi, getProxy, getWrappedModel, isOnline, setModelApi
-
Methods inherited from class com._1c.g5.aef2.models.EditableModel
isEditable, setEditable
-
Methods inherited from class com._1c.g5.aef2.models.Model
addModelListener, beginExternalUpdate, checkOffline, checkOnline, commit, discard, endExternalUpdate, getComponent, getCurrentChangeOrigin, getRunnableQueue, notifyModelChanged, notifyModelCommitted, removeModelListener, setComponent, setOnline, toString
-
Methods inherited from class com._1c.g5.aef2.validators.Validable
addValidator, getValidatorTarget, removeValidator, validate, validate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com._1c.g5.aef2.models.IModel
addModelListener, commit, discard, dispose, getChange, getComponent, isOnline, removeModelListener, setComponent
-
Methods inherited from interface com._1c.g5.aef2.validators.IValidable
addValidator, removeValidator, validate, validate
-
Methods inherited from interface com._1c.g5.aef2.models.value.IValue
addValueListener, createWorkingCopy, get, isEqual, removeValueListener, set
-
-
-
-
Constructor Detail
-
StandardObjectValueSelectionModel
public StandardObjectValueSelectionModel(StandardObjectProxy proxy, org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, IDerivedDataManagerProvider derivedDataManagerProvider, IV8Project v8project, IStructuredContentProvider contentProvider, ILabelProvider labelProvider, IModelEditingSupport modelEditingSupport, String... waitingPartIds)
The constructor.- Parameters:
proxy
- theStandardAttributeProxy
object, cannot benull
.object
- theStandardAttribute
instance, cannot benull
.feature
- the feature, cannot benull
.derivedDataManagerProvider
- derived data manager provider, cannot benull
.v8project
- the V8 project, cannot benull
.contentProvider
- the content provider that produces elements in dialog, can benull
.labelProvider
- the label provider, can benull
.modelEditingSupport
- the model editing support, can benull
.waitingPartIds
- the waiting part ids, can benull
.
-
-
Method Detail
-
isValidState
public boolean isValidState()
Description copied from interface:IEmfSelectionModel
Returnstrue
if theIAttribute.getObject()
is in valid state.- Specified by:
isValidState
in interfaceIEmfSelectionModel<T>
- Returns:
- the
true
if theIAttribute.getObject()
is in valid state.
-
getWaitingPartIds
public Collection<String> getWaitingPartIds()
Description copied from interface:IEmfSelectionModel
Returns the derived state ids that is needed to wait.- Specified by:
getWaitingPartIds
in interfaceIEmfSelectionModel<T>
- Returns:
- the ids
-
isMulti
public boolean isMulti()
Description copied from interface:ISelectionModel
Returns the multi value flag.- Specified by:
isMulti
in interfaceISelectionModel
- Returns:
- the multi value flag.
-
getLabelProvider
public ILabelProvider getLabelProvider()
Description copied from interface:ISelectionModel
Returns theILabelProvider
.- Specified by:
getLabelProvider
in interfaceISelectionModel
- Returns:
- the
ILabelProvider
.
-
getContentProvider
public IStructuredContentProvider getContentProvider()
Description copied from interface:ISelectionModel
Returns theIStructuredContentProvider
.- Specified by:
getContentProvider
in interfaceISelectionModel
- Returns:
- the
IStructuredContentProvider
.
-
getComparer
public IElementComparer getComparer()
Description copied from interface:ISelectionModel
Returns theIElementComparer
.- Specified by:
getComparer
in interfaceISelectionModel
- Returns:
- the
IElementComparer
, returnnull
if need default comparer.
-
getInput
public Object getInput()
Description copied from interface:ISelectionModel
Returns the input object for contentProvider. In the most cases it is the same object to#getObject()
.- Specified by:
getInput
in interfaceISelectionModel
- Returns:
- the input object.
-
getProject
public org.eclipse.core.resources.IProject getProject()
Description copied from interface:ISelectionModel
Returns theIProject
for current object.- Specified by:
getProject
in interfaceISelectionModel
- Returns:
- the
IProject
.
-
getV8project
public IV8Project getV8project()
Description copied from interface:ISelectionModel
Returns the V8 project.- Specified by:
getV8project
in interfaceISelectionModel
- Returns:
- the V8 project, never
null
.
-
getObject
public org.eclipse.emf.ecore.EObject getObject()
Description copied from interface:IAttribute
Returns the object that keeps the attribute.- Specified by:
getObject
in interfaceIAttribute<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EStructuralFeature>
- Returns:
- the object that keeps the attribute.
-
getProperty
public org.eclipse.emf.ecore.EStructuralFeature getProperty()
Description copied from interface:IAttribute
Returns the property.- Specified by:
getProperty
in interfaceIAttribute<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EStructuralFeature>
- Returns:
- the property.
-
getComparator
public ViewerComparator getComparator()
Description copied from interface:ISelectionModel
Returns theViewerComparator
.- Specified by:
getComparator
in interfaceISelectionModel
- Returns:
- the
ViewerComparator
, can benull
.
-
-