Class FixSession
java.lang.Object
com.e1c.g5.v8.dt.internal.check.qfix.FixSession
- All Implemented Interfaces:
IFixSession
The EDT implementation of the
IFixSession
service-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionFixSession
(Marker marker, CheckUid checkUid, IDtProject dtProject, IBmModelManager bmModelManager) Creates the instance of the fix session -
Method Summary
Modifier and TypeMethodDescriptionvoid
addContext
(IFixContext context) Adds quick fix contextvoid
addVariant
(IFixContext context, FixVariantDescriptor descriptor, IFixVariant<?> fixVariant) Adds quick fix variantProvides theIBmModelManager
Provides the check UIDgetContext
(Class<? extends IFixContext> contextType) Provides the quick fix context by context typeProvides the DT projectProvides the problem markergetModelObject
(long targetObjectId) Provides the model object by object IDgetModule
(org.eclipse.emf.common.util.URI targetModuleUri) Provides the module by itsURI
Provides the selected fix contextIFixVariant<?>
Provides the selected quick fix variantProvides the quick fix session statevoid
selectVariant
(FixVariantDescriptor descriptor) Selects the particular quick fix variant by fix variant descriptorvoid
setSessionState
(FixSession.SessionState sessionState) Sets the current quick fix session state
-
Constructor Details
-
FixSession
public FixSession(Marker marker, CheckUid checkUid, IDtProject dtProject, IBmModelManager bmModelManager) Creates the instance of the fix session- Parameters:
marker
- the problem marker, cannot benull
checkUid
- the check UID, cannot benull
dtProject
- the DT project, cannot benull
bmModelManager
- the BM model manager, cannot benull
-
-
Method Details
-
addContext
Adds quick fix context- Parameters:
context
- the fix context to be added, cannot benull
-
addVariant
public void addVariant(IFixContext context, FixVariantDescriptor descriptor, IFixVariant<?> fixVariant) Adds quick fix variant- Parameters:
context
- the fix context, cannot benull
descriptor
- the fix descriptor, cannot benull
fixVariant
- the fix variant to be added, cannot benull
-
getCheckUid
Provides the check UID- Returns:
- the checkUid, never
null
-
getContext
Provides the quick fix context by context type- Parameters:
contextType
- the context type, canno benull
- Returns:
- the fix context, never
null
-
getDtProject
Description copied from interface:IFixSession
Provides the DT project- Specified by:
getDtProject
in interfaceIFixSession
- Returns:
- DT project, nevr
null
-
getMarker
Provides the problem marker- Returns:
- the marker, never
null
-
getModelObject
Description copied from interface:IFixSession
Provides the model object by object ID- Specified by:
getModelObject
in interfaceIFixSession
- Parameters:
targetObjectId
- object id- Returns:
IBmObject
, can benull
-
getModule
Description copied from interface:IFixSession
Provides the module by itsURI
- Specified by:
getModule
in interfaceIFixSession
- Parameters:
targetModuleUri
- module URI, cannot benull
- Returns:
- module, can be
null
-
getSessionState
Provides the quick fix session state- Returns:
- the sessionState, never
null
-
selectVariant
Selects the particular quick fix variant by fix variant descriptor- Parameters:
descriptor
- the fix variant descriptor, cannot benull
-
setSessionState
Sets the current quick fix session state- Parameters:
sessionState
- the sessionState to set, cannot benull
-
getSelectedFixVariant
Provides the selected quick fix variant- Returns:
- selectedFixVariant, may return
null
-
getSelectedFixContext
Provides the selected fix context- Returns:
- selectedFixContext, may return
null
-
getBmModelManager
Description copied from interface:IFixSession
Provides theIBmModelManager
- Specified by:
getBmModelManager
in interfaceIFixSession
- Returns:
- the
IBmModelManager
, nevernull
-