From 0ec9eac8c646fbf3fa39bc1f36aa69e5eadf5383 Mon Sep 17 00:00:00 2001 From: Olivier Mourez Date: Thu, 9 Apr 2020 18:31:15 +0200 Subject: [PATCH] feat : Add Ability to distinct Abstract classes with (A) icon and italic --- .../info/leadinglight/umljavadoclet/model/ModelClass.java | 4 +++- .../umljavadoclet/printer/PumlDiagramPrinter.java | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/info/leadinglight/umljavadoclet/model/ModelClass.java b/src/main/java/info/leadinglight/umljavadoclet/model/ModelClass.java index 31d0963..8036eb1 100644 --- a/src/main/java/info/leadinglight/umljavadoclet/model/ModelClass.java +++ b/src/main/java/info/leadinglight/umljavadoclet/model/ModelClass.java @@ -28,7 +28,7 @@ public enum Visibility { } public enum ClassType { - INTERFACE, ENUM, CLASS + INTERFACE, ENUM, CLASS, ABSTRACT } public static class VisibilityItem { @@ -168,6 +168,8 @@ public ClassType type() { return ClassType.INTERFACE; } else if (_classDoc.isEnum()) { return ClassType.ENUM; + } else if (_classDoc.isAbstract()) { + return ClassType.ABSTRACT; } else { return ClassType.CLASS; } diff --git a/src/main/java/info/leadinglight/umljavadoclet/printer/PumlDiagramPrinter.java b/src/main/java/info/leadinglight/umljavadoclet/printer/PumlDiagramPrinter.java index 85bc8b1..9bafa56 100644 --- a/src/main/java/info/leadinglight/umljavadoclet/printer/PumlDiagramPrinter.java +++ b/src/main/java/info/leadinglight/umljavadoclet/printer/PumlDiagramPrinter.java @@ -180,6 +180,9 @@ public void classType(ModelClass modelClass) { case ENUM: print("enum"); break; + case ABSTRACT: + print("abstract"); + break; default: print("class"); }