[OS-JIRA] Created: (WOL-631) Entity Modeler Does not Copy Whole Entities properly

From: Jake Fisher (JIRA) ("Jake)
Date: Mon Nov 05 2007 - 12:36:58 EST

  • Next message: Daryl Lee: "Re: r4599 - in trunk/woproject/wolips/core/plugins/org.objectstyle.wolips.templateengine/templates: . d2w_bas_application_52 d2w_neu_application_52 d2w_wol_application_52"

    Entity Modeler Does not Copy Whole Entities properly
    ----------------------------------------------------

                     Key: WOL-631
                     URL: http://issues.objectstyle.org/jira/browse/WOL-631
                 Project: WOProject/WOLips
              Issue Type: Bug
             Environment: OSX 10.5 Eclipse 3.3.1 WOLips 3.3.4603 (current Nightly build)
                Reporter: Jake Fisher

    Sadly I can't make much more sense of this bug then to say what I did and what happened.

    1.) Opened two Models at the same time. Both were tabbed in the editor window.
    2.) Selected An Entity in Model 1 Editor and used ctrl-C to copy
    3.) Moved to other Model tab
    4.) Selected Entity Editor List Area used ctrl-P
    5.) ** Error Portion ** Paste caused Entity to be duplicated in model 1 rather than copied to model 2.
    ** Note when using the same method to copy attributes from one model1->Entity to another model2->Entity it copied correctly

    --------------- Somewhat related but can't reliably duplicate -------------
    When trying a bunch of different iterations of this using the menu and the keyboard etc I can eventually cause this NPE. Can't track it to any one thing though :-(

    org.eclipse.core.commands.ExecutionException: While executing the operation, an exception occurred
            at org.eclipse.core.commands.operations.DefaultOperationHistory.execute(DefaultOperationHistory.java:519)
            at org.objectstyle.wolips.eomodeler.actions.PasteAction.run(Unknown Source)
            at org.objectstyle.wolips.eomodeler.actions.PasteAction.runWithEvent(Unknown Source)
            at org.eclipse.ui.actions.RetargetAction.runWithEvent(RetargetAction.java:229)
            at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)
            at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
            at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
            at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1495)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1519)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1504)
            at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1295)
            at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3350)
            at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2954)
            at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
            at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
            at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
            at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
            at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
            at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
            at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
            at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
            at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
            at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
            at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
            at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
            at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
            at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
            at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
    Caused by: java.lang.NullPointerException
            at org.objectstyle.wolips.eomodeler.core.model.EOJoin.pasted(Unknown Source)
            at org.objectstyle.wolips.eomodeler.core.model.EORelationship.pasted(Unknown Source)
            at org.objectstyle.wolips.eomodeler.core.model.EOEntity.pasted(Unknown Source)
            at org.objectstyle.wolips.eomodeler.core.model.EOModel.addEntity(Unknown Source)
            at org.objectstyle.wolips.eomodeler.core.model.EOModel.addEntity(Unknown Source)
            at org.objectstyle.wolips.eomodeler.core.model.EOEntity._addToModelParent(Unknown Source)
            at org.objectstyle.wolips.eomodeler.core.model.EOEntity._addToModelParent(Unknown Source)
            at org.objectstyle.wolips.eomodeler.actions.AddOperation.execute(Unknown Source)
            at org.objectstyle.wolips.eomodeler.actions.SimpleCompositeOperation.execute(Unknown Source)
            at org.eclipse.core.commands.operations.DefaultOperationHistory.execute(DefaultOperationHistory.java:511)

    -- 
    This message is automatically generated by JIRA.
    -
    If you think it was sent incorrectly contact one of the administrators: http://issues.objectstyle.org/jira/secure/Administrators.jspa
    -
    For more information on JIRA, see: http://www.atlassian.com/software/jira
    



    This archive was generated by hypermail 2.0.0 : Mon Nov 05 2007 - 12:38:27 EST