<% /******************************************************************************* * Copyright (c) 2001, 2004 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ %> <%@ page contentType="text/html; charset=UTF-8" import="java.util.Enumeration, java.util.Vector, org.eclipse.wst.ws.internal.explorer.platform.util.QuickSort, org.eclipse.wst.ws.internal.explorer.platform.perspective.*, org.eclipse.wst.ws.internal.explorer.platform.constants.*, org.eclipse.wst.ws.internal.explorer.platform.datamodel.*, org.eclipse.wst.ws.internal.explorer.platform.favorites.constants.*, org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective.FavoritesPerspective, org.eclipse.wst.ws.internal.explorer.platform.favorites.actions.*, org.eclipse.wst.ws.internal.explorer.platform.favorites.datamodel.*" %> <% String divFavoriteUDDIServiceTable = "divFavoriteUDDIServiceTable"; String xdivFavoriteUDDIServiceTable = "xdivFavoriteUDDIServiceTable"; FavoritesPerspective favoritesPerspective = controller.getFavoritesPerspective(); NodeManager nodeManager = favoritesPerspective.getNodeManager(); Node selectedNode = nodeManager.getSelectedNode(); TreeElement selectedElement = selectedNode.getTreeElement(); %> <%=favoritesPerspective.getMessage("VIEW_TITLE_UDDI_SERVICE_LIST")%> ">
<% String titleImagePath = "wsil/images/list_UDDI_service_highlighted.gif"; String title = favoritesPerspective.getMessage("ALT_LIST_FAVORITE_UDDI_SERVICE"); %> <%@ include file = "/forms/formheader.inc" %>
<%=favoritesPerspective.getMessage("FORM_LABEL_LIST_FAVORITE_UDDI_SERVICE_DESC")%>
<% if (selectedElement instanceof FavoritesUDDIServiceFolderElement) { %>
" alt="<%=controller.getMessage("ALT_TWIST_CLOSED")%>" class="twist"> <%=favoritesPerspective.getMessage("FORM_LABEL_FAVORITE_UDDI_SERVICE")%>
" height=2 width="100%">
<% Enumeration e = ((FavoritesUDDIServiceFolderElement)selectedElement).getAllFavorites(); Vector sortedVector = new Vector(); while (e.hasMoreElements()) { sortedVector.add(e.nextElement()); } QuickSort.sort(sortedVector); e = sortedVector.elements(); while (e.hasMoreElements()) { FavoritesUDDIServiceElement favUDDIServiceElement = (FavoritesUDDIServiceElement)e.nextElement(); %> <% } %>
"> <%=favoritesPerspective.getMessage("FORM_LABEL_NAME")%>
"> <%=favUDDIServiceElement.getName()%>
" onClick="setFormLocationAndSubmit('<%=divFavoriteUDDIServiceTable%>', this.form, '<%=response.encodeURL(controller.getPathWithContext(AddToUDDIPerspectiveAction.getBaseActionLink()))%>')" class="button"> " onClick="setFormLocationAndSubmit('<%=divFavoriteUDDIServiceTable%>', this.form, '<%=response.encodeURL(controller.getPathWithContext(RemoveFavoritesAction.getBaseActionLink()))%>')" class="button">  
<% } %>