diff --git a/src/main/java/org/umlgraph/doclet/ClassGraph.java b/src/main/java/org/umlgraph/doclet/ClassGraph.java index 29f411b..7d2d1a1 100644 --- a/src/main/java/org/umlgraph/doclet/ClassGraph.java +++ b/src/main/java/org/umlgraph/doclet/ClassGraph.java @@ -1174,7 +1174,7 @@ class ClassGraph { bgcolor = " bgcolor=\""+ opt.nodeFillColor + "\""; String href = ""; if (url != null) - href = " href=\"" + url + "\""; + href = " href=\"" + url + "\" target=\"_parent\""; w.print("<" + - "\"Package" + + "" + ""; + private static final String EXPANDABLE_UML_STYLE = "font-family: Arial,Helvetica,sans-serif;font-size: 1.5em; display: block; width: 250px; height: 20px; background: #009933; padding: 5px; text-align: center; border-radius: 8px; color: white; font-weight: bold;"; + //Format string for the java script tag. private static final String EXPANDABLE_UML = "\n" + "
\n" + " \n" + - " %2$s \n" + + " %2$s \n" + "
"; /** @@ -198,7 +195,6 @@ public class UmlGraphDoc { File output = new File(outputFolder, packageName.replace(".", "/")); File htmlFile = new File(output, htmlFileName); File alteredFile = new File(htmlFile.getAbsolutePath() + ".uml"); - File mapFile = new File(output, className + ".map"); if (!htmlFile.exists()) { System.err.println("Expected file not found: " + htmlFile.getAbsolutePath()); return; @@ -220,10 +216,6 @@ public class UmlGraphDoc { writer.newLine(); if (!matched && insertPointPattern.matcher(line).matches()) { matched = true; - if (mapFile.exists()) - insertClientSideMap(mapFile, writer); - else - root.printWarning("Could not find map file " + mapFile); String tag = String.format(UML_DIV_TAG, className); if (opt.collapsibleDiagrams) @@ -254,25 +246,6 @@ public class UmlGraphDoc { } } - /** - * Reads the map file and outputs in to the specified writer - * @throws IOException - */ - private static void insertClientSideMap(File mapFile, BufferedWriter writer) throws IOException { - BufferedReader reader = null; - try { - reader = new BufferedReader(new FileReader(mapFile)); - String line = null; - while ((line = reader.readLine()) != null) { - writer.write(line); - writer.newLine(); - } - } finally { - if (reader != null) - reader.close(); - } - } - /** * Returns the output path specified on the javadoc options */