[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.webtools.jsf] Re: Customizing palette in Web Page Editor

Cameron Bateman wrote:
Yes, the org.eclipse.jst.pagedesigner.pageDesignerExtension has an elementEditFactory option. You can implement an elementEditFactory for your taglib uri(s) by extending AbstractElementEditFactory. You can then return an object that extends AbstractElementEdit. Your element edit can then return an IDropCustomizer. The IDropCustomizer provides a call back interface to allow you to open a dialog and return custom creation data (see Javadocs). If you want to further control how this creation data gets translated into the actual tag that is added to the document, your element edit can also return its own ITagCreator by implementing getTagCreator.


--Cam


Hi,

I followed your suggestion and was able to open a dialog when a tag was added to the WPE from the palette. However, this only works when I select a tag in the palette with one mouse click (mouse down+up) and then click again in the editor. If I just do a drag-and-drop (mouse down in the palette area, hold, move the cursor to editor, and release the mouse button) the dialog never shows up. Is this by design or there is something I missed?

Thanks