com.change_vision.jude.api.inf.editor
Interface BlockDefinitionDiagramEditor

com.change_vision.jude.api.inf.editor.BlockDefinitionDiagramEditor
All Superinterfaces:
BasicDiagramEditor, DiagramEditor, StructureDiagramEditor
All Implemented Interfaces:
BasicDiagramEditor, DiagramEditor, StructureDiagramEditor

public BlockDefinitionDiagramEditor
extends StructureDiagramEditor

Interface to edit (create/delete) Block Definition diagrams. Throws Exception when invalid models are generated.


Method Summary
abstract  IBlockDefinitionDiagram createBlockDefinitionDiagram(INamedElement owner, String name)
          Create a Block Definition Diagram in a parent package.
 
Methods inherited from class com.change_vision.jude.api.inf.editor.StructureDiagramEditor
createContainmentGroup, createContainmentLinkPresentation, createGeneralizationGroup, createLinkPresentation, createNodePresentation, createNodePresentation, getContainmentGroup, getGeneralizationGroup
 
Methods inherited from class com.change_vision.jude.api.inf.editor.BasicDiagramEditor
createNote, createNoteAnchor, createNoteAnchor, createProblemNote, createRationaleNote
 
Methods inherited from class com.change_vision.jude.api.inf.editor.DiagramEditor
createImage, createLine, createRect, createText, delete, deleteDiagram, deletePresentation, getDiagram, setDiagram
 

Method Detail

createBlockDefinitionDiagram

abstract IBlockDefinitionDiagram createBlockDefinitionDiagram(INamedElement owner,
                                                              String name)
Create a Block Definition Diagram in a parent package. Diagram is set to DiagramEditor (DiagramEditor.setDiagram(IDiagram diagram)) if the diagram is created successfully.

Parameters:
owner - Parent
name - name
Returns:
Block Definition Diagram
Throws:
InvalidEditingException - InvalidEditingException occurs.
Keys: 
      PARAMETER_ERROR_KEY - if a parameter is not set properly. 
      ILLEGALMODELTYPE_ERROR_KEY - if the model type is illegal. 
      NO_NAME_ERROR_KEY - if the name is empty. 
      NAME_DOUBLE_ERROR_KEY - An element with the same name already exists. 
      BAD_TRANSACTION_KEY - Bad Transaction. 
      HAS_EXCEPTION_KEY - if an exception has occurred.
Values: 
      Error messages for exceptions.