]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.workbench.search/src/org/simantics/workbench/search/QueryResult.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.workbench.search / src / org / simantics / workbench / search / QueryResult.java
index 7cb43919440388b38eb5127f6ece93456708d843..27daf96f187077faa8e7bf4fc6da6c2f7fc042cb 100644 (file)
@@ -1,48 +1,48 @@
-/*******************************************************************************\r
- * Copyright (c) 2011 Association for Decentralized Information Management in\r
- * Industry THTH ry.\r
- * All rights reserved. This program and the accompanying materials\r
- * are made available under the terms of the Eclipse Public License v1.0\r
- * which accompanies this distribution, and is available at\r
- * http://www.eclipse.org/legal/epl-v10.html\r
- *\r
- * Contributors:\r
- *     VTT Technical Research Centre of Finland - initial API and implementation\r
- *******************************************************************************/\r
-package org.simantics.workbench.search;\r
-\r
-import org.simantics.utils.datastructures.map.Tuple;\r
-\r
-/**\r
- * @author Tuukka Lehtonen\r
- */\r
-public class QueryResult extends Tuple {\r
-\r
-    public QueryResult(String html, int hits) {\r
-        this("",html,"", hits);\r
-    }\r
-    \r
-    public QueryResult(String header, String content, String footer, int hits) {\r
-        super(header,content,footer, hits);\r
-    }\r
-    \r
-    public String getHeader() {\r
-        return (String) getField(0);\r
-    }\r
-    public String getContent() {\r
-        return (String) getField(1);\r
-    }\r
-    \r
-    public String getFooter() {\r
-        return (String) getField(2);\r
-    }\r
-\r
-    public String getHtml() {\r
-        return getHeader() + getContent() + getFooter();\r
-    }\r
-\r
-    public int getHitCount() {\r
-        return (Integer) getField(3);\r
-    }\r
-\r
+/*******************************************************************************
+ * Copyright (c) 2011 Association for Decentralized Information Management in
+ * Industry THTH ry.
+ * 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:
+ *     VTT Technical Research Centre of Finland - initial API and implementation
+ *******************************************************************************/
+package org.simantics.workbench.search;
+
+import org.simantics.utils.datastructures.map.Tuple;
+
+/**
+ * @author Tuukka Lehtonen
+ */
+public class QueryResult extends Tuple {
+
+    public QueryResult(String html, int hits) {
+        this("",html,"", hits);
+    }
+    
+    public QueryResult(String header, String content, String footer, int hits) {
+        super(header,content,footer, hits);
+    }
+    
+    public String getHeader() {
+        return (String) getField(0);
+    }
+    public String getContent() {
+        return (String) getField(1);
+    }
+    
+    public String getFooter() {
+        return (String) getField(2);
+    }
+
+    public String getHtml() {
+        return getHeader() + getContent() + getFooter();
+    }
+
+    public int getHitCount() {
+        return (Integer) getField(3);
+    }
+
 }
\ No newline at end of file