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

Bug 362220

Summary: UnspecifiedTypeCreationTool uses different cursors than CreationTool
Product: [Modeling] GMF-Runtime Reporter: Andreas Mayer <an.mayer>
Component: GeneralAssignee: Project Inbox <gmf-runtime-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: an.mayer
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Andreas Mayer CLA 2011-10-27 13:01:04 EDT
Build Identifier: M20110909-1335

org.eclipse.gmf.runtime.diagram.ui.tools.CreationTool defines two private cursors to replace the ones configured by its supercalls org.eclipse.gef.tools.CreationTool. However, only CreationTool(IElementType) does this, while the default constructor CreationTool() keeps the GEF cursors. 

org.eclipse.gmf.runtime.diagram.ui.tools.UnspecifiedTypeCreationTool has no single element type has no single element type, therefore calls CreationTool's default constructor and also keeps the GEF cursors. So you end up with different cursors for similar tools in your editor.

To fix this, all constructors of CreationTool should install the cursors or the cursors should be accessible by subclasses (see bug 238812), so that they can configure them on their own. 

Reproducible: Always