Fix for Bug338151
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / parsers / IParserProvider.java
index 099653272da9165b66850ef41cff240a07dd0ff3..c47964c0bf2dacb8b978f15a3aedff5ceab52087 100644 (file)
@@ -21,16 +21,75 @@ import org.eclipse.swt.widgets.Composite;
 \r
 public interface IParserProvider {\r
 \r
+       /**\r
+        * Return the readable category name for this parser provider\r
+        * \r
+        * @return the category name\r
+        */\r
     public String getCategory();\r
     \r
+       /**\r
+        * Return a trace instance for a resource given a parser id\r
+        * \r
+        * @param parser the parser id\r
+        * @param resource the resource\r
+        * @return a trace instance or null if the parser id is not handled by this parser provider\r
+        */\r
     public ITmfTrace getTraceForParser(String parser, IResource resource);\r
     \r
+       /**\r
+        * Return a trace instance for a resource given a content type id\r
+        * \r
+        * @param contentTypeId the content type id\r
+        * @param resource the resource\r
+        * @return a trace instance or null if the content type id is not handled by this parser provider\r
+        */\r
     public ITmfTrace getTraceForContentType(String contentTypeId, IResource resource);\r
     \r
-    public String getEditorIdForParser(String parser);\r
-    \r
+       /**\r
+        * Return the parser map for this parser provider\r
+        * Map key: readable parser name\r
+        * Map value: unique parser id\r
+        * \r
+        * @return the parser map\r
+        */\r
     public Map<String, String> getParserMap();\r
 \r
+       /**\r
+        * Return the event type map given a parser id\r
+        * Map key: readable event type name\r
+        * Map value: unique event type id\r
+        * \r
+        * @param parser the parser id\r
+        * @return the event type map or null if the parser id is not handled by this parser provider\r
+        */\r
+    public Map<String, String> getEventTypeMapForParser(String parser);\r
+    \r
+       /**\r
+        * Return the field label array given an event type id\r
+        * Array value: readable field label\r
+        * \r
+        * @param eventType the event type id\r
+        * @return the field label array or null if the event type id is not handled by this parser provider\r
+        */\r
+    public String[] getFieldLabelsForEventType(String eventType);\r
+    \r
+       /**\r
+        * Return the editor id given a parser id\r
+        * \r
+        * @param parser the parser id\r
+        * @return an editor id or null to use the default trace editor\r
+        */\r
+    public String getEditorIdForParser(String parser);\r
+\r
+       /**\r
+        * Return an events table instance for a given trace\r
+        * \r
+        * @param parser the parser id\r
+        * @param parent the parent composite for the table\r
+        * @param cacheSize the desired cache size for the table\r
+        * @return an events table instance or null if the trace is not handled by this parser provider\r
+        */\r
     public TmfEventsTable getEventsTable(ITmfTrace trace, Composite parent, int cacheSize);\r
 \r
 }\r
This page took 0.032064 seconds and 5 git commands to generate.