Skip to main content



      Home
Home » Eclipse Projects » Oomph » Which newWizardId to use for the Oomph Eclipse Importer
Which newWizardId to use for the Oomph Eclipse Importer [message #1731876] Tue, 10 May 2016 11:27 Go to next message
Eclipse UserFriend
We would like to offer a shortcut to the Oomph Eclipse Importer on the Welcome screen in the Scout EPP.

Could you please point us to the right <???> to use for the newWizardId in the code snippet below?

<extension
         point="org.eclipse.ui.intro.quicklinks">
...
      <command
            id="org.eclipse.ui.file.import(importWizardId=org.eclipse.oomph.<???>)"
            label="%ql.importOomph.label"
            resolution="launchbar">
      </command>
...


A working example for "Import Projects from Git" looks like this:

<extension
         point="org.eclipse.ui.intro.quicklinks">
...
      <command
            id="org.eclipse.ui.file.import(importWizardId=org.eclipse.egit.ui.internal.clone.GitCloneWizard)"
            label="%ql.checkoutGitProject.label"
            resolution="launchbar">
      </command>
...


Thanks!
Re: Which newWizardId to use for the Oomph Eclipse Importer [message #1731878 is a reply to message #1731876] Tue, 10 May 2016 11:43 Go to previous messageGo to next message
Eclipse UserFriend
Matthias,

We have two ways of bringing up the wizard. One is via the drop-down
handler.

<command
categoryId="org.eclipse.oomph.setup.category"
id="org.eclipse.oomph.setup.editor.importProjects"
name="Import Projects">
</command>


<handler
class="org.eclipse.oomph.setup.presentation.handlers.ImportProjectsHandler"
commandId="org.eclipse.oomph.setup.editor.importProjects">
<enabledWhen>
<test
forcePluginActivation="true"
property="org.eclipse.oomph.setup.ui.starting"
value="false">
</test>
</enabledWhen>
</handler>

This brings up a non-modal dialog.

There's also which is the one you get from the File -> Import menu.

<extension
point="org.eclipse.ui.importWizards">
<wizard
category="org.eclipse.oomph.importWizards"
class="org.eclipse.oomph.setup.ui.wizards.SetupWizard$Importer"
icon="icons/oomph16.png"
id="org.eclipse.oomph.setup.ui.ImportWizard"
name="Projects into Workspace">
<description>
Import projects from the Oomph catalogs into the workspace.
</description>
</wizard>
</extension>

I'm not sure if either could be used. The former is a bit nicer I think...

On 10.05.2016 17:27, Matthias Zimmermann wrote:
> We would like to offer a shortcut to the Oomph Eclipse Importer on the
> Welcome screen in the Scout EPP.
>
> Could you please point us to the right <???> to use for the
> newWizardId in the code snippet below?
> <extension
> point="org.eclipse.ui.intro.quicklinks">
> ..
> <command
> id="org.eclipse.ui.file.import(importWizardId=org.eclipse.oomph.<???>)"
> label="%ql.importOomph.label"
> resolution="launchbar">
> </command>
> ..
>
> A working example for "Import Projects from Git" looks like this:
>
> <extension
> point="org.eclipse.ui.intro.quicklinks">
> ..
> <command
> id="org.eclipse.ui.file.import(importWizardId=org.eclipse.egit.ui.internal.clone.GitCloneWizard)"
> label="%ql.checkoutGitProject.label"
> resolution="launchbar">
> </command>
> ..
>
> Thanks!
Re: Which newWizardId to use for the Oomph Eclipse Importer [message #1731903 is a reply to message #1731878] Tue, 10 May 2016 14:11 Go to previous message
Eclipse UserFriend
hi Ed, org.eclipse.oomph.setup.ui.ImportWizard did the trick, this was exactely what i was looking for Smile
Previous Topic:TextModifyTask not modifying text in file
Next Topic:Access unhashed value of password field
Goto Forum:
  


Current Time: Wed Aug 20 01:58:08 EDT 2025

Powered by FUDForum. Page generated in 0.03715 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top