Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 348734 - [SysML Block Definition Diagram] Command “paste with model” does not work
Summary: [SysML Block Definition Diagram] Command “paste with model” does not work
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 0.8.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: SR1   Edit
Assignee: Remi Schnekenburger CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-08 09:25 EDT by Sébastien Gérard CLA
Modified: 2011-12-07 11:26 EST (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 Sébastien Gérard CLA 2011-06-08 09:25:27 EDT
BDD: command “past with model” does not work.
Comment 1 Yann Tanguy CLA 2011-06-08 11:34:08 EDT
The edit policy probably lacks in BDD.
Comment 2 Alain Le Guennec CLA 2011-08-18 12:58:49 EDT
I also observed that pb.
There actually is an exception raised, as displayed in the error log:
java.lang.NullPointerException
	at org.eclipse.papyrus.pastemanager.command.PapyrusDuplicateWrapperCommand.lookForDuplicateCommandOwner(PapyrusDuplicateWrapperCommand.java:140)
	at org.eclipse.papyrus.pastemanager.command.PapyrusDuplicateWrapperCommand.<init>(PapyrusDuplicateWrapperCommand.java:58)
	at org.eclipse.papyrus.pastemanager.service.DefaultPasteCommandProvider.getPasteWithModelCommand(DefaultPasteCommandProvider.java:178)
	at org.eclipse.papyrus.pastemanager.service.PasteCommandService.getPasteWithModelCommand(PasteCommandService.java:152)
	at org.eclipse.papyrus.diagram.common.actions.PasteWithModelAction.run(PasteWithModelAction.java:29)
	at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
	at org.eclipse.jface.action.ActionContributionItem$9.handleEvent(ActionContributionItem.java:1284)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4163)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3752)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
Comment 3 Remi Schnekenburger CLA 2011-11-28 11:27:21 EST
fixed in r6319
Comment 4 Remi Schnekenburger CLA 2011-12-07 11:26:45 EST
missed a case in the renaming. 

fixed in r6374