1 /*******************************************************************************
2 * Copyright (c) 2016 Association for Decentralized Information Management
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * THTH ry - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.debug.browser.sections;
14 import java.io.PrintWriter;
16 import org.simantics.db.ReadGraph;
17 import org.simantics.db.exception.DatabaseException;
20 * @author Jani Simomaa / Semantum Oy
23 public class ResourceLookupSection implements ResourceBrowserSection {
26 public double getPriority() {
31 public void toHtml(ReadGraph graph, PrintWriter out) throws DatabaseException {
32 out.println("<div class=\"resourceLookupSection\">");
33 out.println("<form class=\"resource-search\" method=\"POST\">");
34 out.println("<input type=\"text\" name=\"resource-input\" placeholder=\"Enter resource URI or ID\" />");
35 out.println("<button type=\"submit\">Search</button>");
36 out.println("</form>");
37 out.println("</div>");