Menu ▾ ▴

Extending PydDev

2009-04-18
2013-03-15
  • attila peterffy

    attila peterffy - 2009-04-18

    Is it any way to skip/simplify the wizzards when creating a new PyDev project?

    We have a lot of projects using the same selections and is important to do it right.

     
    • Fabio Zadrozny

      Fabio Zadrozny - 2009-04-18

      What exactly would you like to simplify? You could create your own wizards that did the things you wanted... Take a look at

      org.python.pydev.ui.wizards.project.PythonProjectWizard

      Cheers,

      Fabio

       
      • attila peterffy

        attila peterffy - 2009-04-18

        Hi Fabio,

        I would like to skip setting other thing that PyDev project name; all other settings are the same.

        How can I pack/distribute a customized wizzard to a lot of users?

        Cheers,
        Attila

         
        • Fabio Zadrozny

          Fabio Zadrozny - 2009-04-18

          You can create a plugin that depends on Pydev (and has just that wizard) and distribute that plugin.

          You can base yourself on the wizard that Pydev provides to create your own (should be pretty simple).

          Cheers,

          Fabio

           
          • attila peterffy

            attila peterffy - 2009-04-18

            Mustn't use any extension point from PyDev?

            When I'm creating a plugin (I'm using Eclipse 3.4.1) there are a lot of plugin types to choose between. Which one is most suitable for this?

            Regards,
            Attila

             
            • Fabio Zadrozny

              Fabio Zadrozny - 2009-04-18

              I've checked and none of the templates seem suitable... Just create a new plugin (file > new > plugin project) and create a new one without using any of the templates.

              You don't have to use a pydev extension point. The extension you need to use is the org.eclipse.ui.newWizards.

              Pydev declares its wizard as below (so, you just have to customize those for your own wizard) -- that's in org.python.pydev/plugin.xml.

                 <extension point="org.eclipse.ui.newWizards">
                    <category
                          id="org.python.pydev.PythonCategory"
                          name="Pydev"/>
                    <wizard
                          canFinishEarly="false"
                          category="org.python.pydev.PythonCategory"
                          class="org.python.pydev.ui.wizards.project.PythonProjectWizard"
                          descriptionImage="icons/python_logo.png"
                          finalPerspective="org.python.pydev.ui.PythonPerspective"
                          hasPages="true"
                          icon="icons/python_16x16.png"
                          id="org.python.pydev.ui.wizards.project.PythonProjectWizard"
                          name="Pydev Project"
                          preferredPerspectives="org.python.pydev.ui.PythonPerspective"
                          project="true"/>
                 </extension>

              Cheers,

              Fabio
                         

               
          • attila peterffy

            attila peterffy - 2009-04-18

            I'will make a try.

            Many thanks for your time!

            Regards,
            Attila