Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Problem initiating code generation

Help
Tefnet
2009-06-08
2013-04-16
  • Tefnet
    Tefnet
    2009-06-08

    Hello,

    I have conducted following steps to try to generate some code:

    1. Installed eclipse and some additional "software" as shown here:
    http://tefnet.pl/tmp/eclipse/installed.png

    2. Set up Window -> Preferences -> Pydev -> Interpreter - Python like this:

    http://tefnet.pl/tmp/eclipse/python_interpreters.png

    3. File -> New -> Other -> Pydev Project -> Next:
    http://tefnet.pl/tmp/eclipse/pydev_project.png and then Finish

    now the workspace looks like this:
    http://tefnet.pl/tmp/eclipse/workspace_1.png

    4. Right-clicked on root item in "Pydev Package Explorer" (tefserwis)  and selected "Create/Synchronize UML Model" (first from four pyuml icon does nothing) to get: http://tefnet.pl/tmp/eclipse/workspace_2.png.
    The uml editor did _not_ open automatically.

    5. Right-clicked on tefserwis -> PyUML -> tefserwis.uml and selected "Initialize Class Diagram", clicked Finish

    6. Editor got opened, I have created a new package:
    http://tefnet.pl/tmp/eclipse/package_core.png

    7. Double clicked on a rectangle above core package's name and created a TefObject class with an "id" attribute:
    http://tefnet.pl/tmp/eclipse/tefobject_class.png

    8. Saved and closed the diagrams

    9. Second pyuml icon (with a green snake) did nothing

    10. Right-clicked on root item in "Pydev Package Explorer" (tefserwis) and selected "Create/Synchronize Code", but nothing has appeared under src (an information window popped up for a fraction of a second).

    after 10. eclipse spits out an exception on stderr:

    java.lang.reflect.InvocationTargetException
        at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:479)
        at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
        at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
        at pyUML.actions.SyncCodeAction.run(SyncCodeAction.java:76)
        at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
        at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
        at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
        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:1158)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3401)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3033)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
        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:386)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
    Caused by: java.lang.NoSuchMethodError: org.python.pydev.core.IPythonPathNature.getProjectSourcePathSet()Ljava/util/Set;
        at pyUML.backend.EclipseHelperMethods.getPythonSrcDirs(EclipseHelperMethods.java:239)
        at pyUML.pythonTree.PythonTreeRoot.<init>(PythonTreeRoot.java:136)
        at pyUML.actions.SyncCodeAction.doSync(SyncCodeAction.java:138)
        at pyUML.actions.SyncCodeAction.run(SyncCodeAction.java:231)
        at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
        ... 31 more

    Does anybody happen to have any suggestions about making it work :)?

    regards,
    Filip Zyzniewski

     
    • Martin Dittmar
      Martin Dittmar
      2009-06-08

      Hello Filip,

      thanks for your request!

      The problem is that pyDev released the new version 1.4.6 that changed the interface and is no longer compatible to PyUML.

      I created a new PyUML version 1.2.1 that works with pyDev 1.4.6.

      Please use the update manager to install PyUML 1.2.1, then everything should work again!

      Regards,

      Martin

       
    • Tefnet
      Tefnet
      2009-06-10

      Thanks for help, it works now :).