org.eclipse.emf.edit.ui.action
Class CreateSiblingAction

org.eclipse.emf.edit.ui.action.StaticSelectionCommandAction
  |
  +--org.eclipse.emf.edit.ui.action.CreateSiblingAction

public class CreateSiblingAction
extends StaticSelectionCommandAction

A sibling creation action is implemented by creating a CreateChildCommand.


Field Summary
protected  java.lang.Object descriptor
          This describes the sibling to be created.
 
Fields inherited from class org.eclipse.emf.edit.ui.action.StaticSelectionCommandAction
command, editingDomain
 
Constructor Summary
CreateSiblingAction(org.eclipse.ui.IEditorPart editorPart, org.eclipse.jface.viewers.ISelection selection, java.lang.Object descriptor)
          This constructs an instance of an action that creates a sibling specified by descriptor.
 
Method Summary
protected  Command createActionCommand(EditingDomain editingDomain, java.util.Collection collection)
          This creates the command for StaticSelectionCommandAction.createActionCommand(org.eclipse.emf.edit.domain.EditingDomain, java.util.Collection).
 
Methods inherited from class org.eclipse.emf.edit.ui.action.StaticSelectionCommandAction
configureAction, disable, getDefaultImageDescriptor, objectToImageDescriptor, run
 

Field Detail

descriptor

protected java.lang.Object descriptor
This describes the sibling to be created.
Constructor Detail

CreateSiblingAction

public CreateSiblingAction(org.eclipse.ui.IEditorPart editorPart,
                           org.eclipse.jface.viewers.ISelection selection,
                           java.lang.Object descriptor)
This constructs an instance of an action that creates a sibling specified by descriptor.
Method Detail

createActionCommand

protected Command createActionCommand(EditingDomain editingDomain,
                                      java.util.Collection collection)
This creates the command for StaticSelectionCommandAction.createActionCommand(org.eclipse.emf.edit.domain.EditingDomain, java.util.Collection).
Overrides:
createActionCommand in class StaticSelectionCommandAction

Copyright 2001-2002 IBM Corporation and others.
All Rights Reserved.