Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 1522: Refactor across project boundaries

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
bugfix Posted - Jun 11 2006 : 02:53:16 AM
Refactoring across project boundaries seems to be missing, e.g.

solution:
proj0: pluginbase
proj1: pluginimp0 : pluginbase
proj2: pluginimp1 : pluginbase

If I go to declaration of some method in proj0: pluginbase for refactoring it will only show symbol occurrences of proj0 and not of proj1 and proj2.

-bugfix

6   L A T E S T    R E P L I E S    (Newest First)
support Posted - Oct 06 2006 : 7:55:48 PM
Fixed in 1538.

Rename in a base class changes overriding names in derived classes. Rename of a overriding member in a derived class does not rename within a base class.
feline Posted - Jun 12 2006 : 5:24:07 PM
i am assuming you mean something like this:

class PathologyResult
{
public:
    PathologyResult();
    virtual const char *displayResult() = 0;
    virtual const PathologyResult *cloneResult() = 0;
};

class PathologyBurnsResult : public PathologyResult
{
public:
    PathologyBurnsResult();
    const char *displayResult() { return "burns format"; }
    const PathologyResult *cloneResult() { return new PathologyBurnsResult; }
};

class PathologyXMLResult : public PathologyResult
{
public:
    PathologyXMLResult();
    const char *displayResult() { return "XML format"; }
    const PathologyResult *cloneResult() { return new PathologyXMLResult; }
};


which is actually drawn from one of my programs. in this case find results for cloneResult() and displayResult() only find for the current class, not for the other classes in this class tree.

the problem i can see here is what happens when you are deriving your class from a core library class that has virtual members? find references is fairly safe, it does not make any changes, but if you want rename or change signature to work then it gets more tricky.

i have already found myself wanting this, so lets see what the developers make of this.

case=1287
bugfix Posted - Jun 11 2006 : 12:36:47 PM
proj0 contains header(s) w/ interface classes and some util functions
proj1+2 implement interface(s) declared in proj0
rhummer Posted - Jun 11 2006 : 12:32:53 PM
Do the other two projects use pluginbase or are they derived from pluginbase and use that?
bugfix Posted - Jun 11 2006 : 12:28:21 PM
Ups forgot to mention, I was doing a rename.
rhummer Posted - Jun 11 2006 : 12:25:53 PM
Do you mean by running a Find References? or doing a Rename that has it run Find References?

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000