Glenn,

I can't code the complete stuff, but as a starter, here's a VB script
that displays the list of displayed operations.

What's next?
- compare the displayed operations with the class operations
  (you might need to typecast the myOs.GetAt(o) roseitem to an operation)
- build GUI around that (confirm, select, rollback, backup, ...)

I hope you have enough experience with Rose Scripting /REI, so that
this example is useful.

With kind regards,
Volker
(cut & paste this into VB or VBA, e.g. in Word VB Editor) It may be
that lines are truncated due to mail text handling.
-------------------------------------------------------------------------
Sub DisplayedOperations()
Dim myR As RoseApplication
Dim myM As RoseModel
Dim myD As RoseClassDiagram
Dim myCs As RoseClassCollection
Dim myCV As RoseClassView
Dim myOs As RoseItemCollection
Dim strMsg As String


Set myR = GetObject(, "Rose.Application")
Set myM = myR.CurrentModel
Set myD = myM.GetActiveDiagram

Set myCs = myD.GetClasses

strMsg = "Operation List for Diagram '" & myD.Name & "'" & vbCrLf
'Get all Classes on Diagram
For c = 1 To myCs.Count
    Set myCV = myD.GetClassView(myCs.GetAt(c))
    If myCV.ShowAllOperations Then
        strMsg = strMsg & "Class '" & myCV.Name & "' shows all operations" &
vbCrLf
    Else
        Set myOs = myCV.GetDisplayedOperations
        strMsg = strMsg & "Displayed Operations for Class '" & myCV.Name & _
          "' (" & Trim$(str$(myOs.Count)) & ")" & vbCrLf
        For o = 1 To myOs.Count
            strMsg = strMsg & vbTab & myOs.GetAt(o).Name & vbCrLf
        Next o
    End If
Next c
MsgBox strMsg
End Sub
----------------------------------------------------------------------------
----------

Rational @ Siemens - living the partnership that drives succesful projects
**************************************************************************
                              Volker Kopetzky
 Senior Systems Engineer/Expert             Phone: +49 / 89 - 62838 - 293
 Rational Software                          eFax:  +49 / 89 - 62838 - 593
 Keltenring 15                              Fax:   +49 / 89 - 62838 - 269
 D-82041 Oberhaching                         MailTo:[EMAIL PROTECTED]
 Germany                          URL: http://rational.volker-kopetzky.de
**************************************************************************
Rational...
-> Suite:                        
   http://www.rational.com/products/rs/index.jtmpl
-> Requisite Pro:            
   http://www.rational.com/products/reqpro/index.jtmpl
-> Unified Process:             
   http://www.rational.com/products/rup/index.jtmpl
-> Rose - unoffical website:                       
   http://www.rationalrose.com
-> Upgrades: 
   http://www.rational.com/sitewide/support/upgrades/


-----Urspr�ngliche Nachricht-----
Von: Glenn Molano [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 17. April 2002 16:14
An: 'Kopetzky, Volker'; [EMAIL PROTECTED]
Betreff: RE: (ROSE) List of Methods


Volker,

This is required for class diagrams and the intention is to remove those
methods which are not used


Thanks again.



Glenn

-----Mensaje original-----
De: Kopetzky, Volker [mailto:[EMAIL PROTECTED]]
Enviado el: Martes, 16 de Abril de 2002 05:33 p.m.
Para: Glenn Molano; [EMAIL PROTECTED]
Asunto: AW: (ROSE) List of Methods


Glenn,

this might become tricky...

Before going into unneeded detail, please let me ask some
questions.

- For what UML diagrams would you need this info?
- What will you do with the results & why?
  (Maybe there are other ways to come to the same result/benefit)

With kind regards & thanx for your time,
Volker

-----Ursprungliche Nachricht-----
Von: Glenn Molano [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 11. April 2002 19:11
An: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Betreff: (ROSE) List of Methods



Hi there,

Can some body tell me how can I get a list of methods which are not being
used in my UML diagram?


Thanks in advance,


Glenn


************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Post or Reply to: [EMAIL PROTECTED]
* Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
*    http://www.rational.com/support/usergroups/rose/rose_forum.jsp
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*    To: [EMAIL PROTECTED]
*    Subject: <BLANK>
*    Body: unsubscribe rose_forum
*************************************************************************

************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Post or Reply to: [EMAIL PROTECTED]
* Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
*    http://www.rational.com/support/usergroups/rose/rose_forum.jsp
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*    To: [EMAIL PROTECTED]
*    Subject: <BLANK>
*    Body: unsubscribe rose_forum
*************************************************************************

Reply via email to