Class DeleteKeyHandler
- java.lang.Object
-
- org.eclipse.core.commands.common.EventManager
-
- org.eclipse.core.commands.AbstractHandler
-
- com._1c.g5.v8.dt.bp.scheme.ui.handlers.DeleteKeyHandler
-
- All Implemented Interfaces:
org.eclipse.core.commands.IHandler
,org.eclipse.core.commands.IHandler2
public class DeleteKeyHandler extends org.eclipse.core.commands.AbstractHandler
Handler for "Delete" action.
-
-
Constructor Summary
Constructors Constructor Description DeleteKeyHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete(Collection<BpEntity> entities, Collection<BpRelation> relations)
Deletes givenentities
andrelations
from active diagram.Object
execute(org.eclipse.core.commands.ExecutionEvent event)
Collection<BpEntity>
getEntitiesToRemove(BpScheme bpScheme)
Returns entities to remove.Collection<BpRelation>
getRelationsToRemove(BpScheme bpScheme)
Returns relations to remove.-
Methods inherited from class org.eclipse.core.commands.AbstractHandler
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabled
-
-
-
-
Method Detail
-
delete
public void delete(Collection<BpEntity> entities, Collection<BpRelation> relations)
Deletes givenentities
andrelations
from active diagram.- Parameters:
entities
- - entities to remove. Can't benull
.relations
- - relations to remove. Can't benull
-
execute
public Object execute(org.eclipse.core.commands.ExecutionEvent event) throws org.eclipse.core.commands.ExecutionException
- Throws:
org.eclipse.core.commands.ExecutionException
-
getEntitiesToRemove
public Collection<BpEntity> getEntitiesToRemove(BpScheme bpScheme)
Returns entities to remove. (entities associated with selected figures)- Parameters:
bpScheme
- - BP scheme. Can't benull
.- Returns:
- entities to remove. (entities associated with selected figures). Can't return
null
.
-
getRelationsToRemove
public Collection<BpRelation> getRelationsToRemove(BpScheme bpScheme)
Returns relations to remove. (deletable relations associated with selected connections).- Parameters:
bpScheme
- - BP scheme. Can't benull
- Returns:
- relations to remove. (deletable relations associated with selected connections). Can't return
null
.
-
-