Skip to main content



      Home
Home » Eclipse Projects » Oomph » Executing SetupTasks only once per Workspace
Executing SetupTasks only once per Workspace [message #1778794] Thu, 21 December 2017 09:36 Go to next message
Eclipse UserFriend
Hey everyone,

I'm looking for a way to predefine some settings which could be overwritten by users.

Let me explain. I got a project setup with a few setup tasks. I know there are different triggers like BOOTSTRAP, STARTUP and MANUAL.

Question is: is there a way to execute some setup tasks only once per workspace creation? So values will get predefined with different values than the default value but could be overwritten by the user without wiping away these changes at startup.

Example: Let's say I got a setup task to disable the spell checker
      <setupTask
          xsi:type="setup:PreferenceTask"
          key="/instance/org.eclipse.ui.editors/spellingEnabled"
          value="false"/>
      </setupTask>


  • BOOTSTRAP trigger has no effect (because there is no workspace at this time)
  • STARTUP trigger is called on every startup and wipes away user changes
  • MANUAL trigger is not executed at first startup, so not setting my default value

Does anyone have an idea? Maybe via filtering?

Yours
Alex
Re: Executing SetupTasks only once per Workspace [message #1778884 is a reply to message #1778794] Fri, 22 December 2017 15:50 Go to previous message
Eclipse UserFriend
No, there's no way to do a task only once (expect for task specifically designed to run only one). If your user doesn't like what the preference task does, they can record the preference as a preference task differently in their user.setup, their installation.setup, or their workspace.setup to override the one you provide.
Previous Topic:Authetication error for my eclipse ID
Next Topic:Modular target resolution
Goto Forum:
  


Current Time: Tue Jul 01 01:10:19 EDT 2025

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

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

Back to the top