How to prevent some tags from showing in palette [message #474189] |
Wed, 23 May 2007 13:30  |
Eclipse User |
|
|
|
Originally posted by: dhampson.usa.net
I am working on a JSF project and it includes 2 custom component
libraries. I want prevent tags in one of the component libraries from
showing up in palette of VPD. How can i develop a plugin to do so? Which
extension point to use?
Thanks a lot
Dan
|
|
|
|
|
|
Re: How to prevent some tags from showing in palette [message #476124 is a reply to message #476118] |
Thu, 30 April 2009 21:41  |
Eclipse User |
|
|
|
Unfortunately, we don't currently offer that in a metadata driven way.
Instead you could use the IElementEdit.getTagCreator to return the
UserCustomizedTagCreator instead of the default tag creator.
UserCustomizedTagCreator allows you to provide a ICustomizationData object
that specifies a list of parent tags that you want dropped with your
target tag. Note that you can can also you use it to add child tags.
This functionality has only been added in Galileo.
Thanks,
Cameron
shilpa wrote:
> Can you please tell me how to change the behaviour of the below metadata
> configuration of palette
> <trait id="requires-html-form">
> <value>true</value>
> </trait>
> Currently, this configuration makes the <h:form> tag enclose the dragged
> JSF tag. But I want to reuse this functionality to perform the same
> behaviour for my custom tag library.
|
|
|
Re: How to prevent some tags from showing in palette [message #610965 is a reply to message #474189] |
Wed, 23 May 2007 14:31  |
Eclipse User |
|
|
|
The palette is controlled by providing xml files of metadata. In fact,
many areas of the JSF Tooling is controlled through these metadata files.
In the org.eclipse.jst.jsf.standard.tagsupport plugin and each of the
pagedesigner plugins, you will find a folder of metadata files. A plugin
registers metadata files using the
org.eclipse.jst.jsf.common.StandardMetaDataFiles extension-point.
Some of the files in the pagedesigner plugins include a "PaletteInfos"
trait, where you can control which palette items are displayed. By
using this trait, if an item is included in the list, it will be displayed
on the palette. If you look at some of the the other "traits" of a tag
"entity", you will see how other aspects of a palette item is controlled.
We hope to produce some developer documentation in the near future on this
topic, but hopefully the above will get you by for now. If not, please
continue to post questions to this newsgroup.
|
|
|
|
Re: How to prevent some tags from showing in palette [message #618746 is a reply to message #474190] |
Thu, 30 April 2009 07:04  |
Eclipse User |
|
|
|
Can you please tell me how to change the behaviour of the below metadata
configuration of palette
<trait id="requires-html-form">
<value>true</value>
</trait>
Currently, this configuration makes the <h:form> tag enclose the dragged
JSF tag. But I want to reuse this functionality to perform the same
behaviour for my custom tag library.
|
|
|
Re: How to prevent some tags from showing in palette [message #618752 is a reply to message #476118] |
Thu, 30 April 2009 21:41  |
Eclipse User |
|
|
|
Unfortunately, we don't currently offer that in a metadata driven way.
Instead you could use the IElementEdit.getTagCreator to return the
UserCustomizedTagCreator instead of the default tag creator.
UserCustomizedTagCreator allows you to provide a ICustomizationData object
that specifies a list of parent tags that you want dropped with your
target tag. Note that you can can also you use it to add child tags.
This functionality has only been added in Galileo.
Thanks,
Cameron
shilpa wrote:
> Can you please tell me how to change the behaviour of the below metadata
> configuration of palette
> <trait id="requires-html-form">
> <value>true</value>
> </trait>
> Currently, this configuration makes the <h:form> tag enclose the dragged
> JSF tag. But I want to reuse this functionality to perform the same
> behaviour for my custom tag library.
|
|
|
Powered by
FUDForum. Page generated in 0.05566 seconds