Class ModelQuickFixRegistryImpl
- java.lang.Object
-
- org.eclipse.emf.ecp.quickfix.internal.ModelQuickFixRegistryImpl
-
- All Implemented Interfaces:
ModelQuickFixRegistry
public class ModelQuickFixRegistryImpl extends java.lang.Object implements ModelQuickFixRegistry
- Author:
- Alexandra Buzila
-
-
Constructor Summary
Constructors Constructor Description ModelQuickFixRegistryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<ModelQuickFix>
getAllModelQuickFixes()
java.util.List<ModelQuickFix>
getApplicableModelQuickFixes(org.eclipse.emf.common.util.Diagnostic diagnostic)
void
registerModelQuickFix(ModelQuickFix modelQuickFix)
Register aModelQuickFix
implementation.
-
-
-
Method Detail
-
registerModelQuickFix
public void registerModelQuickFix(ModelQuickFix modelQuickFix)
Register aModelQuickFix
implementation.- Specified by:
registerModelQuickFix
in interfaceModelQuickFixRegistry
- Parameters:
modelQuickFix
- - the implementation to register- See Also:
ModelQuickFixRegistry.registerModelQuickFix(org.eclipse.emf.ecp.quickfix.ModelQuickFix)
-
getApplicableModelQuickFixes
public java.util.List<ModelQuickFix> getApplicableModelQuickFixes(org.eclipse.emf.common.util.Diagnostic diagnostic)
- Specified by:
getApplicableModelQuickFixes
in interfaceModelQuickFixRegistry
- Parameters:
diagnostic
- - the diagnostic- Returns:
- a list of
ModelQuickFix
objects, applicable for the given diagnostic. The list is ordered by the priority of the quick fixes, in descending order. - See Also:
ModelQuickFixRegistry.getApplicableModelQuickFixes(org.eclipse.emf.common.util.Diagnostic)
-
getAllModelQuickFixes
public java.util.List<ModelQuickFix> getAllModelQuickFixes()
- Specified by:
getAllModelQuickFixes
in interfaceModelQuickFixRegistry
- Returns:
- all the quick fixes contained in the registry.
- See Also:
ModelQuickFixRegistry.getAllModelQuickFixes()
-
-