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 90212 - Allow the user to create new palette items at runtime
Summary: Allow the user to create new palette items at runtime
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Palette (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on: 92962
Blocks: 90211
  Show dependency tree
 
Reported: 2006-11-28 17:34 UTC by Stanislav Aubrecht
Modified: 2008-12-22 10:12 UTC (History)
6 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
proposed implementation (12.37 KB, patch)
2007-01-19 18:13 UTC, Stanislav Aubrecht
Details | Diff
proposed implementation - better xml syntax (12.75 KB, patch)
2007-01-22 14:50 UTC, Stanislav Aubrecht
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stanislav Aubrecht 2006-11-28 17:34:53 UTC
the current api for palette items for text-based editors enforces the usage of
resource bundles for item display name. therefore it isn't possible to create
new palette items at runtime upon user's request (e.g. new code snippets)
Comment 1 Geertjan Wielenga 2006-11-29 13:29:35 UTC
+1. This would be excellent and is much needed.
Comment 2 Joelle Lam 2006-11-30 03:45:04 UTC
+1
Comment 3 Antonin Nebuzelsky 2006-12-19 14:32:31 UTC
Plan to do in 6.0 M7.
Comment 4 Stanislav Aubrecht 2007-01-19 18:13:48 UTC
Created attachment 37535 [details]
proposed implementation
Comment 5 _ edwingo 2007-01-19 18:37:35 UTC
What about creating new palette categories at runtime that are fully i18n-able?
Comment 6 Stanislav Aubrecht 2007-01-22 14:47:55 UTC
> What about creating new palette categories at runtime that are fully i18n-able?

what's the use case for this feature and how is it supposed to work?
Comment 7 Stanislav Aubrecht 2007-01-22 14:50:47 UTC
Created attachment 37568 [details]
proposed implementation - better xml syntax
Comment 8 Libor Kotouc 2007-01-22 15:57:25 UTC
Example of the inline-description/tooltip tag should contain <![CDATA[...]]>
section, otherwise it's content is not valid regarding the DTD 1.1
Comment 9 Joelle Lam 2007-01-22 16:58:49 UTC
The case for adding palette items at runtime that are fully i18n-able would be
like adding new components into VWP.  Wether we have component authoring or a
user wants import components, we need to be able to add them at runtime.  Edwin,
can you please confirm this?
Comment 10 _ edwingo 2007-01-22 18:37:51 UTC
This is in response to "saubrecht Mon Jan 22 14:47:55 +0000 2007" about the use
case for creating i18n-ed palette categories dynamically. I think it makes sense
to break this out into a separate issue so I have created
http://www.netbeans.org/issues/show_bug.cgi?id=92987 to keep track of it.
Comment 11 Marian Mirilovic 2007-02-22 09:29:20 UTC
Standa,
please reevaluate.
Comment 12 Stanislav Aubrecht 2007-02-27 10:52:36 UTC
the api has already been extended to allow dynamically created items, see issue
92962. now it's up to each palette provider to implement their own logic for
item creation.
closing as fixed.