Bug 508125 - [UsecaseDiagram] Canceling Subject metaclass selection causes exception
Summary: [UsecaseDiagram] Canceling Subject metaclass selection causes exception
Status: NEW
Alias: None
Product: Papyrus
Classification: Modeling
Component: Diagram (show other bugs)
Version: 3.0.0   Edit
Hardware: PC Windows NT
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-24 10:02 EST by Abel Hegedus CLA
Modified: 2017-08-02 11:55 EDT (History)
1 user (show)

See Also:


Attachments
Stack trace (5.89 KB, text/plain)
2016-11-24 10:02 EST, Abel Hegedus CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Abel Hegedus CLA 2016-11-24 10:02:58 EST
Created attachment 265562 [details]
Stack trace

I can see that the Subject palette item is a "Component" intentionally (bug 312598 and bug 281977 ).

Adding Subject to a Use Case diagram causes the Metaclass selection dialog to open, _except_ when it is added to a Package, in which case it creates a Component.

Additionally, I found that clicking Cancel on the "Metaclass selection" causes an exception (full stack trace attached):

Caused by: java.lang.IllegalArgumentException: The class 'Classifier' is not a valid classifier
	at org.eclipse.uml2.uml.internal.impl.UMLFactoryImpl.create(UMLFactoryImpl.java:666)
	at org.eclipse.papyrus.infra.gmfdiag.common.commands.CreateEditBasedElementCommand$CreateEditBasedElementTransactionalCommand.prepareCommand(CreateEditBasedElementCommand.java:236)
	at org.eclipse.papyrus.infra.gmfdiag.common.commands.CreateEditBasedElementCommand$CreateEditBasedElementTransactionalCommand.doExecuteWithResult(CreateEditBasedElementCommand.java:92)