Skip to main content



      Home
Home » Eclipse Projects » Oomph » [Closed] Tutorial: Creating custom setuptask?
icon5.gif  [Closed] Tutorial: Creating custom setuptask? [message #1722926] Wed, 10 February 2016 05:41 Go to next message
Eclipse UserFriend
Hello everybody,

I intend on creating my own setuptask. At the moment I try to follow the structure of the Git Task (
org.eclipse.oomph.setup.git
). I have an ECore model and generated my tasks. But it all feels like flying blind since I absolutly have no idea what purpose different structures serve.

Is there some kind of tutorial on how a custom setup task can made and integrate into oomph?

Thanks in advance Confused

[Updated on: Tue, 23 February 2016 06:31] by Moderator

Re: Tutorial: Creating custom setuptask? [message #1722933 is a reply to message #1722926] Wed, 10 February 2016 06:03 Go to previous messageGo to next message
Eclipse UserFriend
Steffen,

If you install org.eclipse.oomph.setup.ui.ide.feature.group, there is a
wizard, File -> New -> Project -> Oomph -> Setup Task Extension.
Unfortunately course it's not nicely documented either... That's all
there is...


On 10.02.2016 11:41, Steffen Holzer wrote:
> Hello everybody,
> I intend on creating my own setuptask. At the moment I try to follow
> the structure of the Git Task (org.eclipse.oomph.setup.git). I have an
> ECore model and generated my tasks. But it all feels like flying blind
> since I absolutly have no idea what purpose different structures serve.
> Is there some kind of tutorial on how a custom setup task can made and
> integrate into oomph?
>
> Thanks in advance :?
Re: Tutorial: Creating custom setuptask? [message #1722941 is a reply to message #1722933] Wed, 10 February 2016 07:03 Go to previous messageGo to next message
Eclipse UserFriend
Thank you for your response. The Wizard in eclipse actually took most of my (strange) errors and warnings from my code.
Re: Tutorial: Creating custom setuptask? [message #1723058 is a reply to message #1722941] Thu, 11 February 2016 05:20 Go to previous messageGo to next message
Eclipse UserFriend
So I (think that I) created my own SetuTask now. How can I with the Eclipse installer or the Setup-Development in Eclipse (i.e How can I tell Eclipse that I would like to add this new Task to a setup file)?

Do I export them via JAR-File or as "Deployable plug-ins and fragements"?

Is there a folder where I can drop the jar files?

Thanks in advance Smile

[Updated on: Thu, 11 February 2016 05:37] by Moderator

Re: Tutorial: Creating custom setuptask? [message #1723064 is a reply to message #1723058] Thu, 11 February 2016 05:50 Go to previous messageGo to next message
Eclipse UserFriend
Steffen,

If you launch an IDE with your task extension installed, e.g., a debug
launch from your development environment, your derived task should be in
the list of tasks you can create. Of course to deploy your extension
and have other people be able to use it, you need to consider a number
of other issues. For example, you'll need to ensure that your Ecore
model is published somewhere accessible on the web (i.e., that it has a
public schemaLocation) so that dynamic instances can be properly
created. The Ecore model itself should be annotated so that the
installer will know the location of the p2 update site where the
implementation of the model can be installed, and the installable unit
ID that needs to be installed for that purpose; this is the reason for
all those values in the wizard. Note that if your Ecore model were
registered in the Index, i.e., in "org.eclipse.setup", your extended
task would be listed in the "Additional Tasks" submenu.


On 11.02.2016 11:20, Steffen Holzer wrote:
> So I (think that I) created my own SetuTask now. How can I with the
> Eclipse installer or the Setup-Development in Eclipse (i.e How can I
> tell Eclipse that I would like to add this new Task to a setup file)?
>
> Thanks in advance :)
Re: Tutorial: Creating custom setuptask? [message #1723159 is a reply to message #1723064] Fri, 12 February 2016 04:20 Go to previous messageGo to next message
Eclipse UserFriend
Thank you very much,

I've got a (hopefully) last question. How can I set the attributes of my task ? My task has two attributes that need to be set but I haven't found the right way to do so yet. I tried it with mimiking other projects and used annotations. But neither InducedChoice nor Enablement worked for me. Eclipse keeps telling me that my setup isn't valid

I included a screen of my model and my setup.

Thanks in advance
index.php/fa/24962/0/
index.php/fa/24963/0/
  • Attachment: Model.PNG
    (Size: 16.39KB, Downloaded 733 times)
  • Attachment: Setup.PNG
    (Size: 10.76KB, Downloaded 496 times)
Re: Tutorial: Creating custom setuptask? [message #1723176 is a reply to message #1723159] Fri, 12 February 2016 05:55 Go to previous messageGo to next message
Eclipse UserFriend
Steffen,

Of course if you double click on your task, the properties view opens
and here you can set the values. Are you trying to do something beyond
that?

On 12.02.2016 10:20, Steffen Holzer wrote:
> Thank you very much,
>
> I've got a (hopefully) last question. How can I set the attributes of my task ? My task has two attributes that need to be set but I haven't found the right way to do so yet. I tried it with mimiking other projects and used annotations. But neither InducedChoice nor Enablement worked for me. Eclipse keeps telling me that my setup isn't valid
>
> I included a screen of my model and my setup.
>
> Thanks in advance
>
>
Re: Tutorial: Creating custom setuptask? [message #1723254 is a reply to message #1723176] Fri, 12 February 2016 13:27 Go to previous messageGo to next message
Eclipse UserFriend
Ed,

I tried double clicking but all properties I can set there is an ID and a Description. Even if I open the 'advanced' properties, those I defined don't show up

Maybe I simply overlooked something but I cannot see what it is.

Thank you for your patience with me Smile
index.php/fa/24981/0/
  • Attachment: Unbenannt.JPG
    (Size: 22.10KB, Downloaded 498 times)
Re: Tutorial: Creating custom setuptask? [message #1723274 is a reply to message #1723254] Sat, 13 February 2016 02:33 Go to previous messageGo to next message
Eclipse UserFriend
Steffen,

In this context, is your generated model installed? I suppose so,
because your schemaLocation value looks like a dummy value. In the
generated DauzItemProvider, is there an addResourcePropertyDescriptor
method? If not, your GenFeatures for these features probably probably
specifies None for Property Type.


On 12.02.2016 19:27, Steffen Holzer wrote:
> Ed,
>
> I tried double clicking but all properties I can set there is an ID and a Description. Even if I open the 'advanced' properties, those I defined don't show up
>
> Maybe I simply overlooked something but I cannot see what it is.
>
> Thank you for your patience with me :)
>
Re: Tutorial: Creating custom setuptask? [message #1723283 is a reply to message #1723274] Sat, 13 February 2016 05:34 Go to previous message
Eclipse UserFriend
Ed,

Thank you. That did it. Maybe the problem was also that I only executed the "generate model code" and forgot the "generate edit code"

Thanks for your help Smile

[Closed]
Previous Topic:Oomph for automated builds
Next Topic:Zip file of installer
Goto Forum:
  


Current Time: Sat Jul 12 13:55:53 EDT 2025

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

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

Back to the top