Can’t hide fields

About Forums Getting Started with PlantText Can’t hide fields

Viewing 1 reply thread
  • Author
    Posts
    • #475
      Kurt McCall
      Guest

      I have some PlantText code generated by a script (that I didn’t create), and I’d like to edit it and insert the “hide fields” command near the end to make the class data members invisible, but not the methods. I used your website to generate the class diagram, but the fields are still visible. The command “hide members” does work correctly though — it hides both methods and data members. Here is the code. I’d rather not have to delete all of the {field} lines…

      @startuml
       title <b>KurtsTestUML</b>
               class Data << (H,#E6FFE6)  >> [[matlab:matlab.desktop.editor.openDocument('C:\Users\kmccall\Documents\Projects\DOLILU\constraint_checker2\trunk\src\Data.m'){This class holds an array for a single trajectory variable.  It is a}]] {
                   {field} -len [[  {No tooltip} ]]
                   {field} -values [[  {No tooltip} ]]
                   {field} -varName [[  {No tooltip} ]]
                   {field} -varUnits [[  {No tooltip} ]]
                  ____
                   +Data() 
               }
               
               class GraphDefBase << (H,#E6FFE6)  >> [[matlab:matlab.desktop.editor.openDocument('C:\Users\kmccall\Documents\Projects\DOLILU\constraint_checker2\trunk\src\GraphDefBase.m'){The base class for the KnockdownDef and EnvelopeDef classes, both of}]] {
                   {field} -bigName [[  {No tooltip} ]]
                   {field} -depVarName [[  {No tooltip} ]]
                   {field} -factorData [[  {No tooltip} ]]
                   {field} -fileName [[  {No tooltip} ]]
                   {field} -indepData [[  {No tooltip} ]]
                   {field} -indVarName [[  {No tooltip} ]]
                   {field} -littleName [[  {No tooltip} ]]
                   {field} -name [[  {No tooltip} ]]
                   {field} -title [[  {No tooltip} ]]
                  ____
                   +GraphDefBase() 
                   +splitName() 
               }
               class EnvelopeDataDef << (H,#E6FFE6)  >> [[matlab:matlab.desktop.editor.openDocument('C:\Users\kmccall\Documents\Projects\DOLILU\constraint_checker2\trunk\src\EnvelopeDataDef.m'){this class holds the Envelope data from a single input file,}]] {
                   {field} +ENVELOPE_1SIG_HI [[  {No tooltip} ]]
                   {field} +ENVELOPE_1SIG_LO [[  {No tooltip} ]]
                   {field} +ENVELOPE_3SIG_HI [[  {No tooltip} ]]
                   {field} +ENVELOPE_3SIG_LO [[  {No tooltip} ]]
                   {field} -anonFunc [[  {No tooltip} ]]
                   {field} -depVarIsFunction [[  {No tooltip} ]]
                   {field} -EnvelopeCurveName [[  {No tooltip} ]]
                   {field} -EnvelopeName [[  {No tooltip} ]]
                   {field} -isLowerBound [[  {No tooltip} ]]
                   {field} -type [[  {No tooltip} ]]
                  ____
                   #EnvelopeDataDef() 
               }
               hide fields
           EnvelopeDataDef  -up-|>  GraphDefBase  
           GraphDefBase *-- Data
       @enduml
      
    • #1813
      Arwen Vaughan
      Keymaster

      Interesting. The open source project I am using to do this is maintained by another person. This is the link to his Github page. You can add an issue and he will fix it. If he does, I will add his fix to PlanText so it is reflected. Cheers.

      https://github.com/bafolts/plantuml-code-generator/issues

Viewing 1 reply thread
  • You must be logged in to reply to this topic.