Manually Editing Widgets and IDs

I’ve been doing some work on creating widgets with live-text enablement. I’m looking to copy and modify the XML, and I notice there are IDs for palleteItem and fragmentInstance. It looks like I need to change those.

What is the logic behind how those numbers are calculated? I want to try to understand that to work out how to create a unique entry.

Subject: I would too

I have written an agent that just randomized the ids (to automatically create the plugin.xml file). But, an official api would be good.

Howard

Subject: The main reason I’m looking for it…

…is that I didn’t change the IDs all the way through, and ended up with actions that didn’t work properly. When I deleted the widget, I still had the orphaned actions! It took a lot of hunting around to find out how to remove them, eventually I found them in \workspace.metadata.plugins\com.ibm.rcp.dynamic.extensions\dynamicRegistry.xml. Once I deleted the entries from that XML file, I finally got rid of my orphaned actions.

So my concern was that without knowing the logic behind the IDs, I (or a user) might accidentally a similar conflict and the problems associated.

Paul