Page 1 of 1
any way to see which componant is referencing another?
Posted: Sun Jun 05, 2011 1:06 am
by Paradan
I was doing some spring cleaning in the project tree, and occasionally ran into component that I had thought was no longer in use, but I was unable to delete. This would result in me having to look at every expression until I found the offending code. Is there anyway to select a component and get a list of other components that reference it?
Posted: Sun Jun 05, 2011 8:17 am
by Kjell
Hi Paradan,
This is currently not possible no. However, to detect which expressions use a component there's a little trick. Simply rename the component you want to delete, and then Preview your App. The IDE will automatically go to the expression / line that uses the component. After deleting the line that uses the Component, press Play again to find the next reference.
This "trick" doesn't work for components that are used directly as property by other Components. For those situations it's easiest to click on the XML button, and search ( Ctrl+F in XML window ) for the component's name in parentheses to see where it is used.
K