Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Managed Build Definitions - making visibility of option depending on another option doesnt work
Managed Build Definitions - making visibility of option depending on another option doesnt work [message #552485] Thu, 12 August 2010 11:12 Go to next message
Sebastian Wagner is currently offline Sebastian WagnerFriend
Messages: 13
Registered: June 2010
Junior Member
I created a plugin using the Managed Build Definitions extension. I inserted 2 enumerated options which work fine both.
Now I would like to make the option "Optimization Level (Speed)" only visible if "Optimization Level (Size)==None". For this I added en enablement with checkOption.

This is the extraction of my plugin.xml:

<option
browseType="none"
category=" org.eclipse.cdt.valeo.iarm16ctoolchain.compiler.optimization "
id=" org.eclipse.cdt.valeo.iarm16ctoolchain.compiler.optimization .sizeoptlev "
isAbstract="false"
name="Optimization Level (Size)"
valueType="enumerated">
<enumeratedOptionValue
id=" org.eclipse.cdt.valeo.iarm16ctoolchain.compiler.sizeoptlev.n one "
isDefault="false"
name="None">
</enumeratedOptionValue>
<enumeratedOptionValue
command="-zdebug"
id=" org.eclipse.cdt.valeo.iarm16ctoolchain.compiler.sizeoptlev.d ebug "
isDefault="false"
name="Debug (-zdebug)">
</enumeratedOptionValue>
<enumeratedOptionValue
command="-zlow"
id=" org.eclipse.cdt.valeo.iarm16ctoolchain.compiler.sizeoptlev.l ow "
isDefault="false"
name="Low (-zlow)">
</enumeratedOptionValue>
<enumeratedOptionValue
command="-zmedium"
id=" org.eclipse.cdt.valeo.iarm16ctoolchain.compiler.sizeoptlev.m edium "
isDefault="true"
name="Medium (-zmedium)">
</enumeratedOptionValue>
<enumeratedOptionValue
command="-zhigh"
id=" org.eclipse.cdt.valeo.iarm16ctoolchain.compiler.sizeoptlev.h igh "
isDefault="false"
name="High (-zhigh)">
</enumeratedOptionValue>
</option>
<option
browseType="none"
category=" org.eclipse.cdt.valeo.iarm16ctoolchain.compiler.optimization "
id=" org.eclipse.cdt.valeo.iarm16ctoolchain.compiler.optimization .speedoptlev "
isAbstract="false"
name="Optimization Level (Speed)"
valueType="enumerated">
<enumeratedOptionValue
id=" org.eclipse.cdt.valeo.iarm16ctoolchain.compiler.speedoptlev. none "
isDefault="true"
name="None">
</enumeratedOptionValue>
<enumeratedOptionValue
command="-sdebug"
id=" org.eclipse.cdt.valeo.iarm16ctoolchain.compiler.speedoptlev. debug "
isDefault="false"
name="Debug (-sdebug)">
</enumeratedOptionValue>
<enumeratedOptionValue
command="-slow"
id=" org.eclipse.cdt.valeo.iarm16ctoolchain.compiler.speedoptlev. low "
isDefault="false"
name="Low (-slow)">
</enumeratedOptionValue>
<enumeratedOptionValue
command="-smedium"
id=" org.eclipse.cdt.valeo.iarm16ctoolchain.compiler.speedoptlev. medium "
isDefault="false"
name="Medium (-smedium)">
</enumeratedOptionValue>
<enumeratedOptionValue
command="-shigh"
id=" org.eclipse.cdt.valeo.iarm16ctoolchain.compiler.speedoptlev. high "
isDefault="false"
name="High (-shigh)">
</enumeratedOptionValue>
<enablement
type="UI_VISIBILITY">
<checkOption
isRegex="false"
optionId=" org.eclipse.cdt.valeo.iarm16ctoolchain.compiler.optimization .sizeoptlev "
value=" org.eclipse.cdt.valeo.iarm16ctoolchain.compiler.optimization .sizeoptlev.none ">
</checkOption>
</enablement>
</option>

However, the "Optimization Level (Speed)" is never displayed. I don't understand why. If I use an boolean option and compare to false or true it works fine, but not for the enumerated value.

Can anyone give me a help on this?

Thank you in advance

Sebastian
Re: Managed Build Definitions - making visibility of option depending on another option doesnt work [message #945289 is a reply to message #552485] Mon, 15 October 2012 10:32 Go to previous message
Dragos Mihailescu is currently offline Dragos MihailescuFriend
Messages: 1
Registered: October 2012
Junior Member
Hi Sebastian,

Did you find a resolution to your reported problem. On my side I have the same problem as yours.

Thanks,
Dragos
Previous Topic:gtkmm/c++/eclipse/glade, how?
Next Topic:Include directories not accessible in Remote C++ project
Goto Forum:
  


Current Time: Fri Nov 28 15:03:24 GMT 2014

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

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