Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Problems about pageDesignerExtension (I want to add some attributes to the Element)
Problems about pageDesignerExtension [message #890418] Fri, 22 June 2012 05:11 Go to previous message
Wang Zhaoliang is currently offline Wang Zhaoliang
Messages: 9
Registered: April 2012
Junior Member
In my project, I have declared a tagConverterFactory with extending the pageDesignerExtension extension. And when I drag a custom tag from the palette, I want to add some custom attributes to the element in the method createConverter(for example: element.setAttribute("id", "XXX")). The operation finished normaly, but when I want to drag another tag to the editor, problem comes, I can't drop it anywhere.

Is there any other way to realize my request? Just like MetaDataFile and other extension.

I have tried to use MetaDataFile like below:

<entity id="attrSiteMap" type="tag">
<trait id="tag-create">
<value xsi:type="pi:TagCreationInfo">
<attribute id="id" value="XXXX" />
<attribute id="name" value="XXXX" />
</value>
</trait>
</entity>

it works, but unfortunately I want to use dynamic attribute value, so I need some help.


Thanks and best regards!! Shocked Shocked
 
Read Message
Read Message
Read Message
Previous Topic:Where is the Eclipse 4.2/3.8 Platform SDK download?
Next Topic:Eclipse 3.8 M7 unstable on Linux?
Goto Forum:
  


Current Time: Tue Jun 18 04:00:41 EDT 2013

Powered by FUDForum. Page generated in 0.13407 seconds