Bug 362220 - UnspecifiedTypeCreationTool uses different cursors than CreationTool
Summary: UnspecifiedTypeCreationTool uses different cursors than CreationTool
Status: NEW
Alias: None
Product: GMF-Runtime
Classification: Modeling
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-27 13:01 EDT by Andreas Mayer CLA
Modified: 2011-10-27 13:01 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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