Re: Refactoring and WOD files

From: Anders Peterson (anders_peterso..ptimatika.se)
Date: Thu Nov 29 2007 - 04:47:04 EST

  • Next message: Irina Popova (JIRA): "[OS-JIRA] Created: (WOL-680) Team/Synchronize With Repository does not does not show properly differences in EOModel files"

    Just doing a search&replace on the wod-files is surprisingly accurate.
    Typically you search for something like:

    : MyComponent {

    or

    .myProperty

    Perhaps when you refactor a component you could (optionally) be
    presented with a preconfigured search dialog.

    /Anders

    Clark Mueller wrote:
    > Cool, I will remember to keep an eye out for that.
    >
    > Clark
    >
    > On 28 Nov 07, at 7:25 PM, Mike Schrag wrote:
    >
    >> Currently it renames the component but does NOT refactor to references
    >> ... It's been an open bug for a while and it's only not there because
    >> it's really expensive to do -- you have to traverse ALL the components
    >> in all the projects that reference the project containing the
    >> refactored component. But this has always bugged me. Similarly
    >> refactoring methods that are used in bindings do not get refactored in
    >> WOD's either.
    >>
    >> ms
    >>
    >> On Nov 28, 2007, at 6:29 PM, Clark Mueller wrote:
    >>
    >>> Hello,
    >>>
    >>> Per
    >>> http://wiki.objectstyle.org/confluence/display/WOL/Rename+a+WOComponent,
    >>> I see that refactoring a WOComponent is done as a refactor operation
    >>> on the class file, but should this ALSO be adjusting references to
    >>> the old component name in other .wod files? Or is that function just
    >>> not part of the operation?
    >>>
    >>> Thanks,
    >>> Clark
    >>
    >>
    >
    >



    This archive was generated by hypermail 2.0.0 : Thu Nov 29 2007 - 04:48:07 EST