Package org.eclipse.emf.ecp.spi.ui
Class ECPDeleteServiceImpl
- java.lang.Object
-
- org.eclipse.emf.ecp.spi.ui.ECPDeleteServiceImpl
-
- All Implemented Interfaces:
DeleteService
,ViewModelService
public class ECPDeleteServiceImpl extends java.lang.Object implements DeleteService
ECP specific implementation of theDeleteService
.- Since:
- 1.6
- Author:
- jfaltermeier
-
-
Constructor Summary
Constructors Constructor Description ECPDeleteServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteElement(java.lang.Object toDelete)
Deletes the given object from the containment tree.void
deleteElements(java.util.Collection<java.lang.Object> toDelete)
Deletes the given objects from the containment tree.void
dispose()
Dispose.int
getPriority()
Returns the priority for this view service.void
instantiate(ViewModelContext context)
Instantiate the view service.
-
-
-
Method Detail
-
instantiate
public void instantiate(ViewModelContext context)
Instantiate the view service.- Specified by:
instantiate
in interfaceViewModelService
- Parameters:
context
- theViewModelContext
- See Also:
ViewModelService.instantiate(org.eclipse.emf.ecp.view.spi.context.ViewModelContext)
-
dispose
public void dispose()
Dispose.- Specified by:
dispose
in interfaceViewModelService
- See Also:
ViewModelService.dispose()
-
getPriority
public int getPriority()
Returns the priority for this view service.- Specified by:
getPriority
in interfaceViewModelService
- Returns:
- the priority
- See Also:
ViewModelService.getPriority()
-
deleteElements
public void deleteElements(java.util.Collection<java.lang.Object> toDelete)
Deletes the given objects from the containment tree. This will cut all references to the deleted objects.- Specified by:
deleteElements
in interfaceDeleteService
- Parameters:
toDelete
- the objects to delete- See Also:
EMFDeleteServiceImpl.deleteElements(java.util.Collection)
-
deleteElement
public void deleteElement(java.lang.Object toDelete)
Deletes the given object from the containment tree. This will cut all references to the deleted object.- Specified by:
deleteElement
in interfaceDeleteService
- Parameters:
toDelete
- the object to delete- See Also:
EMFDeleteServiceImpl.deleteElement(java.lang.Object)
-
-