]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.debug.browser/src/org/simantics/debug/browser/sections/ResourceLookupSection.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.debug.browser / src / org / simantics / debug / browser / sections / ResourceLookupSection.java
1 /*******************************************************************************
2  * Copyright (c) 2016 Association for Decentralized Information Management
3  * in Industry THTH ry.
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
8  *
9  * Contributors:
10  *     THTH ry - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.debug.browser.sections;
13
14 import java.io.PrintWriter;
15
16 import org.simantics.db.ReadGraph;
17 import org.simantics.db.exception.DatabaseException;
18
19 /**
20  * @author Jani Simomaa / Semantum Oy
21  * @since 1.22
22  */
23 public class ResourceLookupSection implements ResourceBrowserSection {
24
25     @Override
26     public double getPriority() {
27         return -1;
28     }
29
30     @Override
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>");
38     }
39
40 }