camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r566768 - /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/view/RouteDotGenerator.java
Date Thu, 16 Aug 2007 16:31:27 GMT
Author: jstrachan
Date: Thu Aug 16 09:31:24 2007
New Revision: 566768

URL: http://svn.apache.org/viewvc?view=rev&rev=566768
Log:
added nice URLs to most of the site

Modified:
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/view/RouteDotGenerator.java

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/view/RouteDotGenerator.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/view/RouteDotGenerator.java?view=diff&rev=566768&r1=566767&r2=566768
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/view/RouteDotGenerator.java
(original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/view/RouteDotGenerator.java
Thu Aug 16 09:31:24 2007
@@ -207,7 +207,6 @@
             data.image = imagePrefix + "MessageFilterIcon.gif";
             data.edgeLabel = getLabel(filterType.getExpression());
             data.nodeType = "Message Filter";
-            data.url = "";
         }
         else if (node instanceof ChoiceType) {
             ChoiceType choiceType = (ChoiceType) node;
@@ -262,6 +261,9 @@
             else {
                 data.tooltop = data.label;
             }
+        }
+        if (isNullOrBlank(data.url) && isNotNullAndNonEmpty(data.nodeType)) {
+            data.url = "http://activemq.apache.org/camel/" + data.nodeType.toLowerCase().replace('
', '-') + ".html";
         }
     }
 



Mime
View raw message