facebook

Viewing contraints on the diagram

  1. MyEclipse Archived
  2.  > 
  3. UML Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #239431 Reply

    si_hutch
    Member

    Hi – Is there a way to display constraints created using the OCL editor on the main diagram?

    #239486 Reply

    Riyad Kalla
    Member

    OCL editor? Can you clarify what you mean and which constraints in particular you are asking about?

    #239538 Reply

    si_hutch
    Member

    The tabbed dialogue used for editing properties etc… includes a tab named “Constraints” which assists with the creation of constraints using the Object Constraint Language – Typically these contraints (whether OCL or natural language) would be displayed between curly braces after the element they restrict – alternatively a dashed line can be used to link them to an element via a note – I have created an OCL constraint but can’t seem to display it anywhere on the diagram.

    e.g

    +newAttr : int {context C inv: self.newAttr > 0}

    #239565 Reply

    Kapil Kapre
    Member

    si_hutch,
    At the moment , you cannot display constraints in a comment/note, The only way is to check the constraints tab.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Viewing contraints on the diagram

You must be logged in to post in the forum log in