Class AbstractDtGranularEditorManagingModel
- java.lang.Object
-
- com._1c.g5.aef2.validators.Validable
-
- com._1c.g5.aef2.models.Model
-
- com._1c.g5.v8.dt.ui.editor.aef.model.AbstractDtGranularEditorManagingModel
-
- All Implemented Interfaces:
IModel
,IManagingModel
,IValidable
,IModelApiAwareModel
,IDtGranularEditorManagingModel
public abstract class AbstractDtGranularEditorManagingModel extends Model implements IDtGranularEditorManagingModel
TheIDtGranularEditorManagingModel
abstract implmentation.
-
-
Constructor Summary
Constructors Constructor Description AbstractDtGranularEditorManagingModel(IDtGranularEditorManagingDefinition definition, IV8ProjectManager v8projectManager, org.eclipse.ui.contexts.IContextService contextService)
Creates a new model.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IRuleInput
createRuleInput()
Creates and returns a newly created rule input.void
dispose()
Disposes this model.IChange
getChange()
org.eclipse.ui.contexts.IContextService
getContextService()
Returns theIContextService
instance.IDtGranularEditorManagingDefinition
getDefinition()
Returns theIManagingDefinition
instance.IModelApi
getModelApi()
Returns the model API.void
setModelApi(IModelApi modelApi)
Sets the specified API to the model.String
toString()
-
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
-
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.standard.definitions.models.IManagingModel
getObjects
-
Methods inherited from interface com._1c.g5.aef2.models.IModel
addModelListener, commit, createWorkingCopy, discard, getComponent, isOnline, removeModelListener, setComponent
-
Methods inherited from interface com._1c.g5.aef2.validators.IValidable
addValidator, removeValidator, validate, validate
-
-
-
-
Constructor Detail
-
AbstractDtGranularEditorManagingModel
public AbstractDtGranularEditorManagingModel(IDtGranularEditorManagingDefinition definition, IV8ProjectManager v8projectManager, org.eclipse.ui.contexts.IContextService contextService)
Creates a new model.- Parameters:
definition
- theIDtGranularEditorManagingDefinition
instance, cannot benull
.v8projectManager
- theIV8ProjectManager
instance, cannot benull
.contextService
- theIContextService
instance.
-
-
Method Detail
-
getChange
public final IChange getChange()
-
getDefinition
public IDtGranularEditorManagingDefinition getDefinition()
Description copied from interface:IManagingModel
Returns theIManagingDefinition
instance.- Specified by:
getDefinition
in interfaceIDtGranularEditorManagingModel
- Specified by:
getDefinition
in interfaceIManagingModel
- Returns:
- the
IManagingDefinition
instance, nevernull
.
-
createRuleInput
public IRuleInput createRuleInput()
Description copied from interface:IManagingModel
Creates and returns a newly created rule input.- Specified by:
createRuleInput
in interfaceIManagingModel
- Returns:
IRuleInput
instance, nevernull
.
-
getContextService
public org.eclipse.ui.contexts.IContextService getContextService()
Description copied from interface:IDtGranularEditorManagingModel
Returns theIContextService
instance.- Specified by:
getContextService
in interfaceIDtGranularEditorManagingModel
- Returns:
- the
IContextService
instance, nevernull
.
-
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
.
-
dispose
public void dispose()
Description copied from interface:IModel
Disposes this model.
-
-