<%-- /******************************************************************************* * Copyright (c) 2012-2013 University of Stuttgart. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * and the Apache License 2.0 which both accompany this distribution, * and are available at http://www.eclipse.org/legal/epl-v10.html * and http://www.apache.org/licenses/LICENSE-2.0 * * Contributors: * Uwe Breitenbücher - initial API and implementation and/or initial documentation * Oliver Kopp - improvements *******************************************************************************/ --%> <%@tag language="java" pageEncoding="UTF-8" description="Renders the palette on the left"%> <%@attribute name="repositoryURL" required="true" type="java.lang.String"%> <%@attribute name="client" required="true" description="IWineryRepository" type="org.eclipse.winery.common.interfaces.IWineryRepository"%> <%@attribute name="relationshipTypes" description="the known relationship types" required="true" type="java.util.Collection"%> <%@tag import="javax.xml.namespace.QName" %> <%@tag import="java.util.Collection"%> <%@tag import="java.util.UUID"%> <%@tag import="java.util.List"%> <%@tag import="org.eclipse.winery.common.interfaces.IWineryRepository" %> <%@tag import="org.eclipse.winery.model.tosca.TNodeType"%> <%@tag import="org.eclipse.winery.common.Util" %> <%@taglib prefix="nt" tagdir="/WEB-INF/tags/common/templates/nodetemplates" %>
Palette
<% Collection allNodeTypes = client.getAllTypes(TNodeType.class); if (allNodeTypes.isEmpty()) { %> <% } for (TNodeType nodeType: allNodeTypes) { if (nodeType.getName() == null) { System.err.println("Invalid nodetype in ns " + nodeType.getTargetNamespace()); continue; } %>
<%= nodeType.getName() %>
<% } %>