Currently when I want to change the name of a relationship, I search out all references in all files ending in . and change manually. Is there an easier way to do this? A safe way that serclipse? Relationship contextual menu “Rename” for example?
jbader:
Currently when I want to change the name of a relationship, I search out all references in all files ending in . and change manually. Is there an easier way to do this? A safe way that serclipse? Relationship contextual menu “Rename” for example?
When renaming relations, forms, and other Servoy things that are also stored in a file of the same name, I’ve found it best to manually rename each individual thing in its respective editor and then do what you said with Ctrl-H. The reason for this is so that the actual file gets renamed as well.
If there’s a better way, I’d be happy to know of it too.
Right. Good point. thanks.
Servoy folk… is there a safe rename of relationships feature?
Hi Jeff,
Right now when you rename a form for instance you also do it in the editor (properties pane in this case) and all your references that Servoy handles are taken care for you. But any textual references in your methods are not so you need to rename those yourself.
Same thing for relationships.
Editing any the files directly outside of Eclipse (other than JS code) is kinda asking for trouble since Eclipse keeps track of a lot of meta data. I know, I’ve been there.
in servoy 6 we have through the solution explorer view under many nodes (currently: relation,valuelist,form,scriptvariable and scriptmethod) a menu item: Search References
This will search everywhere for you by uuid if needed and by name, and we let you know where we know these are really the one or that could be the one (inexact matches) because js is a bit dynamic it could be that it finds matches that are not completely correct.
That result will help you now with the rename, maybe we can improve that more so that it also can do the rename for you.
WONDERFUL!!
maybe we can improve that more so that it also can do the rename for you.
that would really be very helpful. Thanks!