Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 354329

Summary: GraphicalNodeEditPolicy.getConnectionCreateCommand() javadoc is incorrect
Product: [Tools] GEF Reporter: Arieh Bibliowicz <vainolo>
Component: GEF-Legacy GEF (MVC)Assignee: Alexander Nyßen <nyssen>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: P3 CC: nyssen
Version: unspecified   
Target Milestone: 3.7.1 (Indigo SR1)   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Arieh Bibliowicz CLA 2011-08-10 02:37:18 EDT
Build Identifier: 20110615-0604

Javadoc states that "This Command will be passed to the target node EditPart." but this is not automatic and must be implemented using request.setStartCommand(). Confuses the used of the framework.

Reproducible: Always

Steps to Reproduce:
1. Implement GraphicalNodeEditPolicy.getConnectionCreateCommand() and GraphicalNodeEditPolicy.getConnectionCompleteCommand(). In first function create a simple command and in the second function test if the command can be fetched.
2. Connect two nodes in the diagram
Comment 1 Alexander Nyßen CLA 2011-08-23 16:40:27 EDT
Changed javadoc to clarify that setting the start command lies within the responsibility of the implementor. Changed in 3.7 maintenance branch (3.7.1) and in HEAD (3.8).