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: Predefined Types
Topic Summary:
Created On: 27-Jul-2004 21:42
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.
 27-Jul-2004 21:42
User is offline View Users Profile Print this message


Justin DYER

Posts: 548
Joined: 30-Jun-2004

Hello,
If I wanted to change or add to the "Predefined Types" package in Rhapsody, what would be the recomeneded way to do this?

Thanks,
Justin
Report this to a Moderator Report this to a Moderator
 27-Jul-2004 21:43
User is offline View Users Profile Print this message


Edmund Mayer

Posts: 98
Joined: 30-Jun-2004

Justin,

Amos wrote the following about hiding predefined types.

++++++++++++++++++++
To hide the predefined package from the browser set the Browesr::Setting::ShowPredefinedPackage to False (uncheck) at the project level.

Create a new property (can be done using VBA or in the site.prp) called General::Model:redefinedTypesInComboBox (type: String, value: ??). For example, if you want to show just char and bool, set the value to "bool, char".

As a result, the only visible predefined type is going to be int and it will be available only until a different selection was made.

? A vba macro to create the PredefinedTypesInComboBox property Sub AvoidPredefinedTypesInComboBox()
Dim p As RPProject
Set p = getProject
Call p.addProperty("General.Model.PredefinedTypesInComboBox", "String", "") End Sub
++++++++++++++++++++

Concerning adding to the types list, the process (at least in the past) has been to do Add to model of the Predefined.sbs and/or the PredefinedC++.sbs files. Add to the list, don't delete. Instead of deleting original types, just hide them as shown above. Save and then copy over the default Predefined .sbs files. Make sure to make backups of the originals.

Let me know how this works for you, as I haven't tried it with 5.x.

Ed
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic Rhapsody forum.
There are currently 0 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.