Topic
  • 7 replies
  • Latest Post - ‏2013-11-08T09:29:16Z by buptxch
buptxch
buptxch
31 Posts

Pinned topic how to hide the codes of a class in a profile

‏2013-10-21T07:48:40Z |

Hi,

i change a package to a profile, and in this profile, i can still see the details of the class, like there are how many attributes in this class and the codes of the operations, but i hope to hide this.

in deed, i have a class and a interface  corresponding to the class, by creating class object and link between interface and their class, user can totally use it correctly.

and problems come here, i don't want users see the details, how can i solve it?

  • AE91_SHINJI_KANAI
    AE91_SHINJI_KANAI
    199 Posts

    Re: how to hide the codes of a class in a profile

    ‏2013-10-23T07:34:11Z  

    Hi buptxch,

    I personally prefer doing what you're trying to do using Rhapsody API and Apps feature (newly introduced in v8.0.3), but what do you think about the idea below:

    To hide Operations tab from your class:

    1. Create a new stereotype "MySecret" with following settings:
         Applicable to : Class
         New Term : On
    2. Go to Model::Stereotype::HideTabsInFeaturesDialog
    3. Add "Operations"
    4. Apply "MySecret" stereotype to your class for which you want to hide operations details. 

    That's it. By adding "Attributes", you can hide attributes detail from Feature Window but not from model browser. 
    Let me know if the above works out for you. 

    Best Regard,

    Shinji

    Updated on 2013-10-23T07:34:32Z at 2013-10-23T07:34:32Z by AE91_SHINJI_KANAI
  • buptxch
    buptxch
    31 Posts

    Re: how to hide the codes of a class in a profile

    ‏2013-10-27T16:47:23Z  

    Hi buptxch,

    I personally prefer doing what you're trying to do using Rhapsody API and Apps feature (newly introduced in v8.0.3), but what do you think about the idea below:

    To hide Operations tab from your class:

    1. Create a new stereotype "MySecret" with following settings:
         Applicable to : Class
         New Term : On
    2. Go to Model::Stereotype::HideTabsInFeaturesDialog
    3. Add "Operations"
    4. Apply "MySecret" stereotype to your class for which you want to hide operations details. 

    That's it. By adding "Attributes", you can hide attributes detail from Feature Window but not from model browser. 
    Let me know if the above works out for you. 

    Best Regard,

    Shinji

    thank you, i will try this later,if it works, it will be very helpful.

  • buptxch
    buptxch
    31 Posts

    Re: how to hide the codes of a class in a profile

    ‏2013-11-01T02:10:53Z  

    Hi buptxch,

    I personally prefer doing what you're trying to do using Rhapsody API and Apps feature (newly introduced in v8.0.3), but what do you think about the idea below:

    To hide Operations tab from your class:

    1. Create a new stereotype "MySecret" with following settings:
         Applicable to : Class
         New Term : On
    2. Go to Model::Stereotype::HideTabsInFeaturesDialog
    3. Add "Operations"
    4. Apply "MySecret" stereotype to your class for which you want to hide operations details. 

    That's it. By adding "Attributes", you can hide attributes detail from Feature Window but not from model browser. 
    Let me know if the above works out for you. 

    Best Regard,

    Shinji

    my version is 7.6.0, and it do not work in this version, thanks for your answers.

  • AE91_SHINJI_KANAI
    AE91_SHINJI_KANAI
    199 Posts

    Re: how to hide the codes of a class in a profile

    ‏2013-11-01T03:57:51Z  
    • buptxch
    • ‏2013-11-01T02:10:53Z

    my version is 7.6.0, and it do not work in this version, thanks for your answers.

    Hi buptxch

    I confirmed it's working with 7.6.0 as well.
    Please see the screenshot which shows the result of 7.5.3 (even older).

    NOTE: You have to specify names of tab you wan to hide exactly as it appears on Feature Window. It is case-sensitive.

    Hope it can be of any help,

    --Shinji

    Attachments

  • buptxch
    buptxch
    31 Posts

    回复:Re: how to hide the codes of a class in a profile

    ‏2013-11-05T13:20:27Z  

    Hi buptxch

    I confirmed it's working with 7.6.0 as well.
    Please see the screenshot which shows the result of 7.5.3 (even older).

    NOTE: You have to specify names of tab you wan to hide exactly as it appears on Feature Window. It is case-sensitive.

    Hope it can be of any help,

    --Shinji

    sorry, i didn't speak it clearly, my need to pass my projects(.sbs) to others, but i don't want the details to be exposed, so i want to hide the Implementation tab, can it be achieved?

    Attachments

  • AE91_SHINJI_KANAI
    AE91_SHINJI_KANAI
    199 Posts

    回复:Re: how to hide the codes of a class in a profile

    ‏2013-11-05T21:10:51Z  
    • buptxch
    • ‏2013-11-05T13:20:27Z

    sorry, i didn't speak it clearly, my need to pass my projects(.sbs) to others, but i don't want the details to be exposed, so i want to hide the Implementation tab, can it be achieved?

    Hi buptxch

    Yes, it is possible to hide Implementation tab but you have to create additional stereotype like "MySecretOpe", please follow the step below.

    1. Create <<MySecretOpe>> stereotype
         Applicable to : Operation
         New Term : On
    2. Go to Model::Stereotype::HideTabsInFeaturesDialog property
    3. Add "Implementation"
    4. Apply <<MySecretOpe>> stereotype to the operation for which you want to hide implementation detail

    Unfortunately, creation of additional stereotype is MUST as the property only works with "new term" in use.

    Let me know if you need further assist.

    --Shinji

  • buptxch
    buptxch
    31 Posts

    回复:Re: how to hide the codes of a class in a profile

    ‏2013-11-08T09:29:16Z  

    Hi buptxch

    Yes, it is possible to hide Implementation tab but you have to create additional stereotype like "MySecretOpe", please follow the step below.

    1. Create <<MySecretOpe>> stereotype
         Applicable to : Operation
         New Term : On
    2. Go to Model::Stereotype::HideTabsInFeaturesDialog property
    3. Add "Implementation"
    4. Apply <<MySecretOpe>> stereotype to the operation for which you want to hide implementation detail

    Unfortunately, creation of additional stereotype is MUST as the property only works with "new term" in use.

    Let me know if you need further assist.

    --Shinji

    Hi, thank you, it did work on V8.0.3. you give me a big hand.