Nested Packages

0 votes
asked Oct 16, 2023 in Question / help by Matthias

In an older PlantUML version, a package with a name containing dots was displayed in a single box. In more recent versions, a separate box is drawn for each subpackage.

@startuml

package zone.informatik.java.template
{
  class Main
  {
    + {static} main(args: String[])
  }
}

@enduml

How can I enforce the old behaviour?

1 Answer

0 votes
answered Oct 16, 2023 by plantuml (295,000 points)
 
Best answer

You can use set separator none :

@startuml
set separator none
package zone.informatik.java.template
{
  class Main
  {
    + {static} main(args: String[])
  }
}
@enduml

Hope this helps!

commented Oct 16, 2023 by Matthias
This is exactly what I was looking for.
...