Author: tyrell
Date: Mon Jul 14 04:50:27 2008
New Revision: 19249
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=19249

Log:
Invoking the mashup editor or the DS editor  depending on the service.

Modified:
   trunk/mashup/java/modules/www/taskbar.jsp

Modified: trunk/mashup/java/modules/www/taskbar.jsp
URL: 
http://wso2.org/svn/browse/wso2/trunk/mashup/java/modules/www/taskbar.jsp?rev=19249&r1=19248&r2=19249&view=diff
==============================================================================
--- trunk/mashup/java/modules/www/taskbar.jsp   (original)
+++ trunk/mashup/java/modules/www/taskbar.jsp   Mon Jul 14 04:50:27 2008
@@ -118,7 +118,20 @@
 </li>
 
 <li id="edit-service">
-    <a 
href="editor.jsp?action=edit&mashup=<%=paramMashup%>&author=<%=author%>&bounceback=<%=URLEncoder.encode(thisPage,
 "UTF-8")%>">Edit this mashup</a>
+    <%
+       String mediaType = userRegistry.get(paramPath).getMediaType();
+
+        if(mediaType.equals(MashupConstants.MASHUP_MEDIA_TYPE)){
+            %>
+        <a 
href="editor.jsp?action=edit&mashup=<%=paramMashup%>&author=<%=author%>&bounceback=<%=URLEncoder.encode(thisPage,
 "UTF-8")%>">Edit this mashup</a>
+    <%
+        }else if (mediaType.equals(MashupConstants.DATA_SERVICE_MEDIA_TYPE)){
+            %>
+        <a 
href="edit_ds.jsp?serviceName=<%=paramMashup%>&bounceback=<%=URLEncoder.encode(thisPage,
 "UTF-8")%>">Edit this Data Service</a>
+    <%
+        }
+    %>
+
 </li>
 
 <li id="delete-service">

_______________________________________________
Mashup-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev

Reply via email to