Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Restrict Target Platform to Neon+
Restrict Target Platform to Neon+ [message #1763502] Tue, 16 May 2017 18:29 Go to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 392
Registered: December 2015
Senior Member
Can I tell the installer to offer only Neon and Later as eclipse.target.platform values, or do I have to make a new variable?
Re: Restrict Target Platform to Neon+ [message #1763512 is a reply to message #1763502] Tue, 16 May 2017 21:31 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
You can define the variable locally with its own choices to override the global definition and its choices.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Restrict Target Platform to Neon+ [message #1763526 is a reply to message #1763512] Wed, 17 May 2017 06:01 Go to previous messageGo to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 392
Registered: December 2015
Senior Member
Ok, thank you.
Re: Restrict Target Platform to Neon+ [message #1763547 is a reply to message #1763526] Wed, 17 May 2017 10:09 Go to previous messageGo to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 392
Registered: December 2015
Senior Member
I can't get it to work. I have added the values I want to accept, but the installer still proposes all the other values declared in the index:/org.eclipse.projects.setup model. (None, Ganymede through Oxygen)

<?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="eclipse.target.platform"
defaultValue="Neon"
storageURI="scope://Workspace">
<annotation
source="http://www.eclipse.org/oomph/setup/GlobalVariable"/>
<choice value="Oxygen"
label="Eclipse Oxygen - 4.7"/>
<choice value="Neon"
label="Eclipse Neon - 4.6"/>
</setup:VariableTask>
Re: Restrict Target Platform to Neon+ [message #1763548 is a reply to message #1763547] Wed, 17 May 2017 10:12 Go to previous messageGo to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 392
Registered: December 2015
Senior Member
If I add a 'new' value, e.g. 'test', that one is proposed in addition, but it seems not possible to remove the values declared by the project catalog itself.
Re: Restrict Target Platform to Neon+ [message #1763585 is a reply to message #1763548] Wed, 17 May 2017 15:54 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Sorry, yes, you're right. The choices are always merged. You could define a differently named variable, and set the value of the existing variable to that new variable's value and then the new variable can have any choices you want.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Restrict Target Platform to Neon+ [message #1763614 is a reply to message #1763585] Wed, 17 May 2017 20:00 Go to previous message
Felix Dorner is currently offline Felix DornerFriend
Messages: 392
Registered: December 2015
Senior Member
Ok I will do that then.
Previous Topic:Empty variables dialog on startup
Next Topic:Suppress Warning "The installation process is taking longer than usual"
Goto Forum:
  


Current Time: Sat Apr 20 00:18:52 GMT 2024

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

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

Back to the top