Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » [Closed] Tutorial: Creating custom setuptask?
icon5.gif  [Closed] Tutorial: Creating custom setuptask? [message #1722926] Wed, 10 February 2016 10:41 Go to next message
Steffen Holzer is currently offline Steffen HolzerFriend
Messages: 59
Registered: January 2016
Member

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 11:31]

Report message to a moderator

Re: Tutorial: Creating custom setuptask? [message #1722933 is a reply to message #1722926] Wed, 10 February 2016 11:03 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
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 :?


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Tutorial: Creating custom setuptask? [message #1722941 is a reply to message #1722933] Wed, 10 February 2016 12:03 Go to previous messageGo to next message
Steffen Holzer is currently offline Steffen HolzerFriend
Messages: 59
Registered: January 2016
Member

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 10:20 Go to previous messageGo to next message
Steffen Holzer is currently offline Steffen HolzerFriend
Messages: 59
Registered: January 2016
Member

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 10:37]

Report message to a moderator

Re: Tutorial: Creating custom setuptask? [message #1723064 is a reply to message #1723058] Thu, 11 February 2016 10:50 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
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 :)


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Tutorial: Creating custom setuptask? [message #1723159 is a reply to message #1723064] Fri, 12 February 2016 09:20 Go to previous messageGo to next message
Steffen Holzer is currently offline Steffen HolzerFriend
Messages: 59
Registered: January 2016
Member

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 680 times)
  • Attachment: Setup.PNG
    (Size: 10.76KB, Downloaded 446 times)


"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live" - John Woods
Re: Tutorial: Creating custom setuptask? [message #1723176 is a reply to message #1723159] Fri, 12 February 2016 10:55 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
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
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Tutorial: Creating custom setuptask? [message #1723254 is a reply to message #1723176] Fri, 12 February 2016 18:27 Go to previous messageGo to next message
Steffen Holzer is currently offline Steffen HolzerFriend
Messages: 59
Registered: January 2016
Member

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 425 times)


"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live" - John Woods
Re: Tutorial: Creating custom setuptask? [message #1723274 is a reply to message #1723254] Sat, 13 February 2016 07:33 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
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 :)
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Tutorial: Creating custom setuptask? [message #1723283 is a reply to message #1723274] Sat, 13 February 2016 10:34 Go to previous message
Steffen Holzer is currently offline Steffen HolzerFriend
Messages: 59
Registered: January 2016
Member

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]


"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live" - John Woods
Previous Topic:Oomph for automated builds
Next Topic:Zip file of installer
Goto Forum:
  


Current Time: Fri Apr 19 21:36:12 GMT 2024

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

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

Back to the top