Added command support for enabling/disabling events (first part)
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.ui / src / org / eclipse / linuxtools / lttng / ui / views / control / model / ITraceControlComponent.java
index f876506d03bf22a35a9c4fa56e419a6bee2c8046..a528b8371fa65e10f2b685b547ce772d4c1a36b7 100644 (file)
@@ -25,7 +25,7 @@ import org.eclipse.swt.graphics.Image;
  * </p>
  */
 public interface ITraceControlComponent extends IAdaptable {
-    
+
     // ------------------------------------------------------------------------
     // Accessors
     // ------------------------------------------------------------------------
@@ -34,7 +34,6 @@ public interface ITraceControlComponent extends IAdaptable {
      * @return the name of the component
      */
     public String getName();
-    
     /**
      * Sets the name of the component to the given value.
      * @param name - name to set
@@ -55,11 +54,11 @@ public interface ITraceControlComponent extends IAdaptable {
      * @param image - image to the image location
      */
     public void setImage(Image image);
+
     /**
      * @return tool tip with information about the component.
      */
     public String getToolTip();
-    
     /**
      * Sets the tool tip with information about the component.
      * @param toolTip - the tool tip to set.
@@ -80,7 +79,6 @@ public interface ITraceControlComponent extends IAdaptable {
      * @return returns the parent component.
      */
     public ITraceControlComponent getParent();
-    
     /**
      * Sets the parent component.
      * @param parent - the parent to set.
@@ -91,31 +89,35 @@ public interface ITraceControlComponent extends IAdaptable {
      * @return the children components
      */
     public ITraceControlComponent[] getChildren();
-    
     /**
      * Sets the children components.
      * @param children - the children to set.
      */
     public void setChildren(List<ITraceControlComponent> children);
-    
     /**
      * Returns the child component with given name.
      * @param name - name of child to find.
      * @return child component or null.
      */
     public ITraceControlComponent getChild(String name);
+    /**
+     * Gets children for given class type.
+     * @param clazz - a class type to get
+     * @return list of trace control components matching given class type. 
+     */
+    public List<ITraceControlComponent> getChildren(Class<? extends ITraceControlComponent> clazz);
 
     /**
      * @return the LTTng control service implementation.
      */
     public ILttngControlService getControlService();
-    
+
     /**
      * Sets the LTTng control service implementation.
      * @param service - the service to set.
      */
     public void setControlService(ILttngControlService service); 
-    
+
     // ------------------------------------------------------------------------
     // Operations
     // ------------------------------------------------------------------------
@@ -171,18 +173,18 @@ public interface ITraceControlComponent extends IAdaptable {
      * @param parent - the parent where the child was added.
      * @param component - the child that was added.
      */
-    public void fireCompenentAdded(ITraceControlComponent parent, ITraceControlComponent component);
+    public void fireComponentAdded(ITraceControlComponent parent, ITraceControlComponent component);
     
     /**
      * Notifies listeners about the removal of a child.
      * @param parent - the parent where the child was removed.
      * @param component - the child that was removed.
      */
-    public void fireCompenentRemoved(ITraceControlComponent parent, ITraceControlComponent component);
+    public void fireComponentRemoved(ITraceControlComponent parent, ITraceControlComponent component);
     
     /**
      * Notifies listeners about the change of a component.
      * @param component - the component that was changed.
      */
-    public void fireCompenentChanged(ITraceControlComponent component);
+    public void fireComponentChanged(ITraceControlComponent component);
 }
This page took 0.025128 seconds and 5 git commands to generate.