Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Setting Enum of String Variable
Setting Enum of String Variable [message #1755942] Thu, 09 March 2017 13:06 Go to next message
Velizar Nenov is currently offline Velizar NenovFriend
Messages: 13
Registered: July 2016
Junior Member
Hello,

I want to have a dropdown variable in my Project.setup file similar to Target Platform option. However don't know what type to set as there are several types:
STRING, TEXT, PASSWORD, PATTERN, URI, FOLDER, RESOURCE, CONTAINER, PROJECT, BOOLEAN, FLOAT, JRE, INTEGER, but there is no Enum-of_string.

Am I missing something?

Regards,
Velizar

Re: Setting Enum of String Variable [message #1755944 is a reply to message #1755942] Thu, 09 March 2017 13:10 Go to previous messageGo to next message
Abel Hegedus is currently offline Abel HegedusFriend
Messages: 197
Registered: September 2015
Senior Member
Providing options in a dropdown is a bit orthogonal to the type of the variable, you can define the values with choice values as children of the variable, see (implicit STRING type):

<?xml version="1.0" encoding="UTF-8"?>
<setup:VariableTask
    xmi:version="2.0"
    xmlns:xmi="http://www.omg.org/XMI"
    xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
    name="viatra.repository.url"
    label="VIATRA Update site">
  <choice value="http://download.eclipse.org/viatra/updates/integration"
      label="Integration"/>
  <choice value="https://hudson.eclipse.org/viatra/job/viatra-master/lastSuccessfulBuild/artifact/releng/org.eclipse.viatra.update/target/repository/"
      label="CI"/>
  <description>Select Integration unless you need to check a very recent change</description>
</setup:VariableTask>
Re: Setting Enum of String Variable [message #1755946 is a reply to message #1755944] Thu, 09 March 2017 13:17 Go to previous message
Velizar Nenov is currently offline Velizar NenovFriend
Messages: 13
Registered: July 2016
Junior Member
Thank you very much! It works perfectly fine!
Previous Topic:Oomph Setup Configuration Model how to
Next Topic:File reference of a modular target in project profile?
Goto Forum:
  


Current Time: Sat Dec 14 13:40:02 GMT 2024

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

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

Back to the top