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>
The
IEmfValueSelectionModel implementation.-
Constructor Summary
ConstructorsConstructorDescriptionEmfValueSelectionModel(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
Modifier and TypeMethodDescriptionvoiddispose()Disposes this model.Returns theViewerComparator.Returns theIElementComparer.Returns theIStructuredContentProvider.getInput()Returns the input object for contentProvider.Returns theILabelProvider.org.eclipse.core.resources.IProjectReturns theIProjectfor current object.Returns the V8 project.Returns the derived state ids that is needed to wait.booleanisMulti()Returns the multi value flag.booleanReturnstrueif theIAttribute.getObject()is in valid state.Methods inherited from class com._1c.g5.aef2.emf.models.EmfValue
getChange, getObject, getPropertyMethods 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, toStringMethods inherited from class com._1c.g5.aef2.models.EditableModel
isEditable, setEditableMethods inherited from class com._1c.g5.aef2.models.Model
addModelListener, beginExternalUpdate, checkOffline, checkOnline, commit, endExternalUpdate, getComponent, getCurrentChangeOrigin, getRunnableQueue, isOnline, notifyModelChanged, notifyModelCommitted, removeModelListener, setComponent, setOnlineMethods inherited from class com._1c.g5.aef2.validators.Validable
addValidator, removeValidator, validate, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com._1c.g5.aef2.models.IAttribute
getObject, getPropertyMethods inherited from interface com._1c.g5.aef2.models.IModel
addModelListener, commit, discard, getChange, getComponent, isOnline, removeModelListener, setComponentMethods inherited from interface com._1c.g5.aef2.validators.IValidable
addValidator, removeValidator, validate, validateMethods inherited from interface com._1c.g5.aef2.models.value.IValue
addValueListener, createWorkingCopy, get, isEqual, removeValueListener, set
-
Constructor Details
-
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 Details
-
getWaitingPartIds
Description copied from interface:IEmfSelectionModelReturns the derived state ids that is needed to wait.- Specified by:
getWaitingPartIdsin interfaceIEmfSelectionModel<T>- Returns:
- the ids
-
getLabelProvider
Description copied from interface:ISelectionModelReturns theILabelProvider.- Specified by:
getLabelProviderin interfaceISelectionModel- Returns:
- the
ILabelProvider.
-
getContentProvider
Description copied from interface:ISelectionModelReturns theIStructuredContentProvider.- Specified by:
getContentProviderin interfaceISelectionModel- Returns:
- the
IStructuredContentProvider.
-
getComparer
Description copied from interface:ISelectionModelReturns theIElementComparer.- Specified by:
getComparerin interfaceISelectionModel- Returns:
- the
IElementComparer, returnnullif need default comparer.
-
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
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
Description copied from interface:ISelectionModelReturns theViewerComparator.- Specified by:
getComparatorin interfaceISelectionModel- Returns:
- the
ViewerComparator, can benull.
-