This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 52081 - ASK_FOR default value not displayed properly
Summary: ASK_FOR default value not displayed properly
Status: RESOLVED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: vcsgeneric (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-05 19:41 UTC by Steve Benigan
Modified: 2005-01-17 11:10 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Benigan 2004-12-05 19:41:56 UTC
Default values aren't being displayed when using
ASK_FOR.  For example, I want to default a
checkbox to checked using a variable that equals
"true".  A command will output the correct value
of true for the variable but it isn't displayed
correctly as the default of the ASK_FOR checkbox.

From a profile:
...
<variable basic="false" name="TEST_D">
  <value xml:space="preserve">true</value>
</variable>
...
<command displayName="Test" name="TEST_CMD">
...
  <property name="exec">
    <value xml:space="preserve">echo
TEST_U=${TEST_U},TEST_D=${TEST_D}</value>
  </property>
  <property name="inputDescriptor">
    <value xml:space="preserve">ASK_FOR(TEST_U,
test, "${TEST_D}")</value>
  </property>
...

exec echos the correct values but the checkbox is
unchecked in the dialog.

Netbeans build 041130
Comment 1 Martin Entlicher 2004-12-06 10:31:17 UTC
It's likely that the "${TEST_D}" is not expanded (replaced with the
value of TEST_D variable) and therefore it stays unchecked. Should be
easy to fix...
Comment 2 Martin Entlicher 2005-01-17 11:10:41 UTC
Fixed in trunk:

/cvs/vcscore/src/org/netbeans/modules/vcscore/util/VariableInputDescriptor.java,v
 <--  VariableInputDescriptor.java
new revision: 1.26; previous revision: 1.25