Package com._1c.g5.v8.dt.ui.aef.models
Class EmfValueSelectionModel<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.aef2.models.value.Value<T>
-
- com._1c.g5.aef2.emf.models.EmfValue<T>
-
- com._1c.g5.v8.dt.ui.aef.models.EmfValueSelectionModel<T>
-
- All Implemented Interfaces:
IAttribute<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EStructuralFeature>,IEditableModel,IEmfAttribute<org.eclipse.emf.ecore.EObject>,IModel,IEmfValueAttribute<T,org.eclipse.emf.ecore.EObject>,IValue<T>,IValidable,IEmfSelectionModel<org.eclipse.emf.ecore.EObject>,IEmfValueSelectionModel<T,org.eclipse.emf.ecore.EObject>,ISelectionModel
- Direct Known Subclasses:
EmfTreeToSingleItemSelectionModel
public class EmfValueSelectionModel<T> extends EmfValue<T> implements IEmfValueSelectionModel<T,org.eclipse.emf.ecore.EObject>
TheIEmfValueSelectionModelimplementation.
-
-
Constructor Summary
Constructors Constructor Description EmfValueSelectionModel(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, IV8Project v8project, IElementComparer comparer, IStructuredContentProvider contentProvider, ILabelProvider labelProvider, String... waitingPartIds)Creates a new model.EmfValueSelectionModel(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, IV8Project v8project, IStructuredContentProvider contentProvider, ILabelProvider labelProvider, String... waitingPartIds)Creates a new model.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()Disposes this model.ViewerComparatorgetComparator()Returns theViewerComparator.IElementComparergetComparer()Returns theIElementComparer.IStructuredContentProvidergetContentProvider()Returns theIStructuredContentProvider.ObjectgetInput()Returns the input object for contentProvider.ILabelProvidergetLabelProvider()Returns theILabelProvider.org.eclipse.core.resources.IProjectgetProject()Returns theIProjectfor current object.IV8ProjectgetV8project()Returns the V8 project.Collection<String>getWaitingPartIds()Returns the derived state ids that is needed to wait.booleanisMulti()Returns the multi value flag.booleanisValidState()Returnstrueif theIAttribute.getObject()is in valid state.-
Methods inherited from class com._1c.g5.aef2.emf.models.EmfValue
getChange, getObject, getProperty
-
Methods inherited from class com._1c.g5.aef2.models.value.Value
addValueListener, createWorkingCopy, discard, get, getCommittedValue, getUncommittedValue, getValidatorTarget, isEqual, notifyValueChanged, queueNotifyValueChanged, removeValueListener, set, setCommittedValue, setUncommittedValue, setValue, toString
-
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, endExternalUpdate, getComponent, getCurrentChangeOrigin, getRunnableQueue, isOnline, notifyModelChanged, notifyModelCommitted, removeModelListener, setComponent, setOnline
-
Methods inherited from class com._1c.g5.aef2.validators.Validable
addValidator, 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.IAttribute
getObject, getProperty
-
Methods inherited from interface com._1c.g5.aef2.models.IModel
addModelListener, commit, discard, 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
-
EmfValueSelectionModel
public EmfValueSelectionModel(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, IV8Project v8project, IElementComparer comparer, IStructuredContentProvider contentProvider, ILabelProvider labelProvider, String... waitingPartIds)Creates a new model.- Parameters:
object- the object, cannot benullfeature- the feature, cannot benullv8project- the V8 project, cannot benullcomparer- the element comparer, can benullcontentProvider- the content provider that produces elements in dialog, can benulllabelProvider- the label provider, can benullwaitingPartIds- the waiting part ids, can benull
-
EmfValueSelectionModel
public EmfValueSelectionModel(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, IV8Project v8project, IStructuredContentProvider contentProvider, ILabelProvider labelProvider, String... waitingPartIds)Creates a new model. With default element comparer.- Parameters:
object- the object, cannot benullfeature- the feature, cannot benullprojectParameters- project parameters, cannot benullcontentProvider- the content provider that produces elements in dialog, can benulllabelProvider- the label provider, can benullwaitingPartIds- the waiting part ids, can benull
-
-
Method Detail
-
getWaitingPartIds
public Collection<String> getWaitingPartIds()
Description copied from interface:IEmfSelectionModelReturns the derived state ids that is needed to wait.- Specified by:
getWaitingPartIdsin interfaceIEmfSelectionModel<T>- Returns:
- the ids
-
getLabelProvider
public ILabelProvider getLabelProvider()
Description copied from interface:ISelectionModelReturns theILabelProvider.- Specified by:
getLabelProviderin interfaceISelectionModel- Returns:
- the
ILabelProvider.
-
getContentProvider
public IStructuredContentProvider getContentProvider()
Description copied from interface:ISelectionModelReturns theIStructuredContentProvider.- Specified by:
getContentProviderin interfaceISelectionModel- Returns:
- the
IStructuredContentProvider.
-
getComparer
public IElementComparer getComparer()
Description copied from interface:ISelectionModelReturns theIElementComparer.- Specified by:
getComparerin interfaceISelectionModel- Returns:
- the
IElementComparer, returnnullif need default comparer.
-
getInput
public Object getInput()
Description copied from interface:ISelectionModelReturns the input object for contentProvider. In the most cases it is the same object to#getObject().- Specified by:
getInputin interfaceISelectionModel- Returns:
- the input object.
-
isMulti
public boolean isMulti()
Description copied from interface:ISelectionModelReturns the multi value flag.- Specified by:
isMultiin interfaceISelectionModel- Returns:
- the multi value flag.
-
getProject
public org.eclipse.core.resources.IProject getProject()
Description copied from interface:ISelectionModelReturns theIProjectfor current object.- Specified by:
getProjectin interfaceISelectionModel- Returns:
- the
IProject.
-
dispose
public void dispose()
Description copied from interface:IModelDisposes this model.
-
getV8project
public IV8Project getV8project()
Description copied from interface:ISelectionModelReturns the V8 project.- Specified by:
getV8projectin interfaceISelectionModel- Returns:
- the V8 project, never
null.
-
isValidState
public boolean isValidState()
Description copied from interface:IEmfSelectionModelReturnstrueif theIAttribute.getObject()is in valid state.- Specified by:
isValidStatein interfaceIEmfSelectionModel<T>- Returns:
- the
trueif theIAttribute.getObject()is in valid state.
-
getComparator
public ViewerComparator getComparator()
Description copied from interface:ISelectionModelReturns theViewerComparator.- Specified by:
getComparatorin interfaceISelectionModel- Returns:
- the
ViewerComparator, can benull.
-
-