Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic Rhapsody (steve huntington)
Decrease font size
Increase font size
Topic Title: Copy a class?
Topic Summary:
Created On: 14-Sep-2006 14:07
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 14-Sep-2006 14:07
User is offline View Users Profile Print this message


Paul Coene

Posts: 10
Joined: 15-Dec-2005

Hi everyone,

Is there a way to make a complete copy of a class? I want to eventually move a couple of classes into their own package, but I want to make a copy first, get the new package setup and working and them slowly migrate the use of the class in the old package to the new one.

So, I'd like to make a copy of the classes, get them working in the new package and then delete the old ones and reconnect.
Report this to a Moderator Report this to a Moderator
 15-Sep-2006 07:04
User is offline View Users Profile Print this message


Charlie Lane

Posts: 86
Joined: 16-Sep-2005

Hi Paul,

A typical way would be to click and then ctrl-click to select the two classes (works on Rhapsody 6.2), then ctrl-drag them to a package. If you drag to the same package the copies will be given names with the suffix _copy, but you could drag them to your new package. Does that do what you want?

Regards, Charlie
Report this to a Moderator Report this to a Moderator
 15-Sep-2006 11:13
User is offline View Users Profile Print this message


Paul Coene

Posts: 10
Joined: 15-Dec-2005

Yes.... Interestingly it gave them the same name, in the new package. As it turns out, the code generation ended up writing only 1 .cpp file for the class instead of 2. I imagine one overwrote the other during code gen, as the filename was simply class.cpp.

It's cool, now that I have the full copy, I'll just rename the new one.

I feel like a newb now, seeing the answer. I'm too much of an old school command line guy to remember the standard sequences in windows.

Thanks,

Paul
Report this to a Moderator Report this to a Moderator
 19-Sep-2006 13:14
User is offline View Users Profile Print this message


Paul Urban

Posts: 220
Joined: 30-Jun-2004

Select the class in the browser and drag while holding the ctrl key to make a copy.

Regards
Paul
Report this to a Moderator Report this to a Moderator
 29-Sep-2006 17:34
User is offline View Users Profile Print this message


Jan Diep

Posts: 18
Joined: 31-May-2005

If you want it to generate a file for each class, then in the properties, change it so that it generates the .cpp/.hpp files in a folder for each package.
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic Rhapsody forum.
There are currently 1 users logged in.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.