Class ExchangePlanContentModel
- 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.ui.aef.models.NavigatorTreeModel
-
- com._1c.g5.v8.dt.md.ui.editor.aef.descriptor.exchangeplan.ExchangePlanContentModel
-
- All Implemented Interfaces:
IEditableModel
,IModel
,IValidable
,IModelApiAwareModel
,IDynamicTreeModel<Object>
public class ExchangePlanContentModel extends NavigatorTreeModel implements IModelApiAwareModel
The AEF 2.0 component for the exchange plan content.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com._1c.g5.v8.dt.ui.aef.models.NavigatorTreeModel
NavigatorTreeModel.PredicateFilter
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.ui.aef.models.NavigatorTreeModel
features
-
-
Constructor Summary
Constructors Constructor Description ExchangePlanContentModel(ExchangePlan exchangePlan, Configuration configuration, org.eclipse.core.resources.IProject project, org.eclipse.xtext.naming.IQualifiedNameProvider qualifiedNameProvider, IFilteredNavigatorContentProvider filteredNavigatorContentProvider)
Creates a new instance ofExchangePlanContentModel
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<ExchangePlanContentItem>
findContentItem(MdObject mdObject)
Finds the content item for the provided metadata object in exchange plan content.Optional<AutoRegistrationChanges>
getContentItemAutoRecord(MdObject mdObject)
Returns the current auto registration for the provided metadata object in exchange plan content.protected ExchangePlan
getExchangePlan()
Returns the exchange plan.IFilteredNavigatorContentProvider
getFilteredNavigatorContentProvider()
Gets actualIFilteredNavigatorContentProvider
.Object
getInput()
IModelApi
getModelApi()
Returns the model API.org.eclipse.xtext.naming.IQualifiedNameProvider
getQualifiedNameProvider()
Gets actualIQualifiedNameProvider
void
setContentItemAutoRecord(MdObject mdObject, AutoRegistrationChanges changes)
Sets the auto registration for the provided metadata object in exchange plan content.void
setModelApi(IModelApi modelApi)
Sets the specified API to the model.-
Methods inherited from class com._1c.g5.v8.dt.ui.aef.models.NavigatorTreeModel
createLabelProvider, createTreeContentProvider, dispose, getChange, getCheckStateProvider, getContentService, getFeatures, getFilter, getFilters, getLabelProvider, getTrackingFeatures, getTrackingObjectFeatures, getTreeContentProvider, setSubtreeInducer
-
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, createWorkingCopy, discard, endExternalUpdate, getComponent, getCurrentChangeOrigin, getRunnableQueue, isOnline, 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, createWorkingCopy, discard, dispose, getChange, getComponent, isOnline, removeModelListener, setComponent
-
Methods inherited from interface com._1c.g5.aef2.validators.IValidable
addValidator, removeValidator, validate, validate
-
-
-
-
Constructor Detail
-
ExchangePlanContentModel
public ExchangePlanContentModel(ExchangePlan exchangePlan, Configuration configuration, org.eclipse.core.resources.IProject project, org.eclipse.xtext.naming.IQualifiedNameProvider qualifiedNameProvider, IFilteredNavigatorContentProvider filteredNavigatorContentProvider)
Creates a new instance ofExchangePlanContentModel
.- Parameters:
exchangePlan
- the exchange plan, cannot benull
configuration
- the configuration, cannot benull
project
- the project, cannot benull
qualifiedNameProvider
- the actualIQualifiedNameProvider
, cannot benull
filteredNavigatorContentProvider
- actualIFilteredNavigatorContentProvider
, cannot benull
-
-
Method Detail
-
getInput
public Object getInput()
- Specified by:
getInput
in interfaceIDynamicTreeModel<Object>
- Overrides:
getInput
in classNavigatorTreeModel
- Returns:
- the input for content provider
-
getModelApi
public IModelApi getModelApi()
Description copied from interface:IModelApiAwareModel
Returns the model API.- Specified by:
getModelApi
in interfaceIModelApiAwareModel
- Returns:
- the model API or
null
if it is not set.
-
setModelApi
public void setModelApi(IModelApi modelApi)
Description copied from interface:IModelApiAwareModel
Sets the specified API to the model.- Specified by:
setModelApi
in interfaceIModelApiAwareModel
- Parameters:
modelApi
- the API, can benull
.
-
getContentItemAutoRecord
public Optional<AutoRegistrationChanges> getContentItemAutoRecord(MdObject mdObject)
Returns the current auto registration for the provided metadata object in exchange plan content.- Parameters:
mdObject
- the metadata object, cannot benull
- Returns:
- the current auto registration for the provided metadata object in exchange plan content
-
setContentItemAutoRecord
public void setContentItemAutoRecord(MdObject mdObject, AutoRegistrationChanges changes)
Sets the auto registration for the provided metadata object in exchange plan content.- Parameters:
mdObject
- the metadata object, cannot benull
changes
- the auto registration value to set, cannot benull
-
findContentItem
public Optional<ExchangePlanContentItem> findContentItem(MdObject mdObject)
Finds the content item for the provided metadata object in exchange plan content.- Parameters:
mdObject
- the metadata object, cannot benull
- Returns:
- the content item for the provided metadata object
-
getQualifiedNameProvider
public org.eclipse.xtext.naming.IQualifiedNameProvider getQualifiedNameProvider()
Gets actualIQualifiedNameProvider
- Returns:
- actual
IQualifiedNameProvider
, nevernull
-
getFilteredNavigatorContentProvider
public IFilteredNavigatorContentProvider getFilteredNavigatorContentProvider()
Gets actualIFilteredNavigatorContentProvider
.- Returns:
- actual
IFilteredNavigatorContentProvider
, cannot benull
-
getExchangePlan
protected ExchangePlan getExchangePlan()
Returns the exchange plan.- Returns:
- the exchange plan, never
null
-
-