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 40966 - Do not expose keys to WizardDescriptor.put/getProperty
Summary: Do not expose keys to WizardDescriptor.put/getProperty
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 4.x
Hardware: All All
: P1 blocker (vote)
Assignee: Petr Hrebejk
URL:
Keywords: API
Depends on:
Blocks: 40703
  Show dependency tree
 
Reported: 2004-03-12 16:57 UTC by Jaroslav Tulach
Modified: 2005-12-14 16:32 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 Jaroslav Tulach 2004-03-12 16:57:56 UTC
Instead of exposing keys to access various
WizardDescriptor properties, provide static
find/set methods. This provide more flexible
evolution for future.


This has been observed in
Templates.WIZARD_KEY_PROJECT which we suggest to
replace with Project Templates.findProject
(WizardDescriptor)


It would be even nicer to use new Object as key
and not String, so one could be sure that someone
is not missusing the string name, but that would
need change in WizardDescriptor.
Comment 1 Jesse Glick 2004-03-23 17:42:56 UTC
Petr will take care of template-related stuff.
Comment 2 Jesse Glick 2004-04-03 02:17:33 UTC
I believe this is already FIXED?
Comment 3 Petr Hrebejk 2004-04-08 14:34:41 UTC
See the static methods for getting all the importatnt information from
the wizards
Comment 4 Jaroslav Tulach 2004-04-09 14:30:22 UTC
Please fix the typo: WizardIteartor
Otherwise ok.
Comment 5 Jesse Glick 2004-04-14 01:34:41 UTC
Typo in the Javadoc I guess you mean.
Comment 6 Petr Hrebejk 2004-04-19 13:44:54 UTC
Done. See the utility methods. in:
org.netbeans.spi.project.ui.templates.support.Templates 
Comment 7 Marian Mirilovic 2005-12-14 16:32:54 UTC
no additional informations for long time - closing