|[eclipse 3.6 WPE] How to add palette items into Web Page Editor automatically [message #795401]
||Fri, 10 February 2012 12:42
| Riichi Yamashita
Registered: February 2012
In Eclipse 3.3, custom palette is automatically shown only by placing the TLD file in the project and XML described palette infomation registered at the extension point of "org.eclipse.jst.jsf.common.standardMetaDataFiles".|
This time, in Eclipse 3.6, I tried to show a palette as well as I have done in Eclipse 3.3. But the custom palette are no longer displayed.
Please tell me the specific ways to show a customized palette in Eclipse 3.6.
If possible, I'd like to avoid using the methods in internal package.
* NOTE that The method "org.eclipse.jst.pagedesigner.editors.palette.implPaletteItemManager # registerTldFromClasspath" has been removed in Eclipse 3.6.
I have currently implemented as follows:
・Generate a paletteFactory class for the extension point of "org.eclipse.jst.pagedesigner.pageDesignerExtension"
・Read all TLD files in the project by "TaglibIndex.getAvailableTaglibRecords" in the method of "createPaletteRoot" which is in the class of paletteFactory.
・Generate PaletteDrawers by "PaletteHelper.configPaletteItemsByTLD" and add them into the PaletteRoot.
・Add "PaletteRoot" that generated in "PaletteHelper.configPaletteItemsByTLD"
Thank you for your help in this matter.
[Updated on: Fri, 10 February 2012 12:43]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01737 seconds