Runtime

org.eclipse.gmf.runtime.diagram.core.edithelpers
Class RemoveBookmarksAdvice

java.lang.Object
  extended by org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice
      extended by org.eclipse.gmf.runtime.diagram.core.edithelpers.RemoveBookmarksAdvice
All Implemented Interfaces:
IEditHelperAdvice

public class RemoveBookmarksAdvice
extends AbstractEditHelperAdvice

Edit helper advice that provides commands to remove associated bookmarks of all dependents as well as the main destructee.


Constructor Summary
RemoveBookmarksAdvice()
           
 
Method Summary
protected  ICommand getAfterDestroyElementCommand(DestroyElementRequest request)
          Gets my 'after' advice for destroying an element.
 ICommand getAfterEditCommand(IEditCommandRequest request)
          Gets a command to be executed after the base editing behaviour.
 ICommand getBeforeEditCommand(IEditCommandRequest request)
          Gets a command to be executed before the base editing behaviour.
 
Methods inherited from class org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice
approveRequest, configureRequest, createType, createType, getAfterConfigureCommand, getAfterCreateCommand, getAfterCreateRelationshipCommand, getAfterDestroyDependentsCommand, getAfterDestroyReferenceCommand, getAfterDuplicateCommand, getAfterEditContextCommand, getAfterMoveCommand, getAfterReorientReferenceRelationshipCommand, getAfterReorientRelationshipCommand, getAfterSetCommand, getBeforeConfigureCommand, getBeforeCreateCommand, getBeforeCreateRelationshipCommand, getBeforeDestroyDependentsCommand, getBeforeDestroyElementCommand, getBeforeDestroyReferenceCommand, getBeforeDuplicateCommand, getBeforeEditContextCommand, getBeforeMoveCommand, getBeforeReorientReferenceRelationshipCommand, getBeforeReorientRelationshipCommand, getBeforeSetCommand
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoveBookmarksAdvice

public RemoveBookmarksAdvice()
Method Detail

getBeforeEditCommand

public ICommand getBeforeEditCommand(IEditCommandRequest request)
Description copied from interface: IEditHelperAdvice
Gets a command to be executed before the base editing behaviour.

Specified by:
getBeforeEditCommand in interface IEditHelperAdvice
Overrides:
getBeforeEditCommand in class AbstractEditHelperAdvice
Parameters:
request - the request
Returns:
the 'before' command, or null if I do not provide 'before' behaviour.

getAfterEditCommand

public ICommand getAfterEditCommand(IEditCommandRequest request)
Description copied from interface: IEditHelperAdvice
Gets a command to be executed after the base editing behaviour.

Specified by:
getAfterEditCommand in interface IEditHelperAdvice
Overrides:
getAfterEditCommand in class AbstractEditHelperAdvice
Parameters:
request - the request
Returns:
the 'after' command, or null if I do not provide 'after' behaviour.

getAfterDestroyElementCommand

protected ICommand getAfterDestroyElementCommand(DestroyElementRequest request)
Description copied from class: AbstractEditHelperAdvice
Gets my 'after' advice for destroying an element.

Overrides:
getAfterDestroyElementCommand in class AbstractEditHelperAdvice
Parameters:
request - the request
Returns:
the command to execute after the edit helper work is done

Runtime

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.