Title: A question about Property Files
The gotcha here is that the dependency is actually known as a "Uses".  Anyways, here's a short RoseScript that adds a property for dependencies:
 
Sub Main
 'msgbox roseapp.currentmodel.getselectedclasses.getat(1).getclassdependencies.getat(1).getpropertyclassname
 
 
 If Not roseapp.currentmodel.defaultproperties.createdefaultpropertyset("Uses", "test", "default") Then
  msgbox "fail"
 End If
 If Not roseapp.currentmodel.defaultproperties.adddefaultproperty("Uses", "test", "default", "test field", "String", "") Then
  msgbox "fail"
 End If
 
End Sub
 
-----Original Message-----
From: Peter Hazlehurst [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 29, 2001 2:21 PM
To: ROSE_FORUM
Subject: (ROSE) A question about Property Files

Hi, we'd like to add a property bag/properties to a Dependency. Is this a known "feature" that you can't do that? You can do it for associations... just not dependencies....?

Thx

P

________________________
Peter Hazlehurst
Chief Technology Officer
Mercari Technologies

http:  www.mercaritech.com
w:  202.244.0900 x367
c:   703.597.1750
f:    202.244.1951
efax: 801.457.9458  (PrivateLine)

Reply via email to